diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java new file mode 100644 index 0000000000..c480f6f358 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java @@ -0,0 +1,83 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class AbstractOpenApiSchemaFluent> extends BaseFluent{ + public AbstractOpenApiSchemaFluent() { + } + + public AbstractOpenApiSchemaFluent(AbstractOpenApiSchema instance) { + this.copyInstance(instance); + } + private Boolean isNullable; + private String schemaType; + + protected void copyInstance(AbstractOpenApiSchema instance) { + if (instance != null) { + this.withSchemaType(instance.getSchemaType()); + } + } + + public Boolean getIsNullable() { + return this.isNullable; + } + + public A withIsNullable(Boolean isNullable) { + this.isNullable = isNullable; + return (A) this; + } + + public boolean hasIsNullable() { + return this.isNullable != null; + } + + public String getSchemaType() { + return this.schemaType; + } + + public A withSchemaType(String schemaType) { + this.schemaType = schemaType; + return (A) this; + } + + public boolean hasSchemaType() { + return this.schemaType != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o; + if (!java.util.Objects.equals(isNullable, that.isNullable)) return false; + if (!java.util.Objects.equals(schemaType, that.schemaType)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(isNullable, schemaType, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (isNullable != null) { sb.append("isNullable:"); sb.append(isNullable + ","); } + if (schemaType != null) { sb.append("schemaType:"); sb.append(schemaType); } + sb.append("}"); + return sb.toString(); + } + + public A withIsNullable() { + return withIsNullable(true); + } + + +} \ No newline at end of file diff --git a/kubernetes/.github/workflows/maven.yml b/kubernetes/.github/workflows/maven.yml new file mode 100644 index 0000000000..e6fadf5668 --- /dev/null +++ b/kubernetes/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build Kubernetes + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES new file mode 100644 index 0000000000..0eaecb51fe --- /dev/null +++ b/kubernetes/.openapi-generator/FILES @@ -0,0 +1,1253 @@ +.github/workflows/maven.yml +api/openapi.yaml +docs/AdmissionregistrationApi.md +docs/AdmissionregistrationV1Api.md +docs/AdmissionregistrationV1ServiceReference.md +docs/AdmissionregistrationV1WebhookClientConfig.md +docs/AdmissionregistrationV1alpha1Api.md +docs/AdmissionregistrationV1beta1Api.md +docs/ApiextensionsApi.md +docs/ApiextensionsV1Api.md +docs/ApiextensionsV1ServiceReference.md +docs/ApiextensionsV1WebhookClientConfig.md +docs/ApiregistrationApi.md +docs/ApiregistrationV1Api.md +docs/ApiregistrationV1ServiceReference.md +docs/ApisApi.md +docs/AppsApi.md +docs/AppsV1Api.md +docs/AuthenticationApi.md +docs/AuthenticationV1Api.md +docs/AuthenticationV1TokenRequest.md +docs/AuthenticationV1alpha1Api.md +docs/AuthenticationV1beta1Api.md +docs/AuthorizationApi.md +docs/AuthorizationV1Api.md +docs/AutoscalingApi.md +docs/AutoscalingV1Api.md +docs/AutoscalingV2Api.md +docs/BatchApi.md +docs/BatchV1Api.md +docs/CertificatesApi.md +docs/CertificatesV1Api.md +docs/CertificatesV1alpha1Api.md +docs/CoordinationApi.md +docs/CoordinationV1Api.md +docs/CoreApi.md +docs/CoreV1Api.md +docs/CoreV1EndpointPort.md +docs/CoreV1Event.md +docs/CoreV1EventList.md +docs/CoreV1EventSeries.md +docs/CustomObjectsApi.md +docs/DiscoveryApi.md +docs/DiscoveryV1Api.md +docs/DiscoveryV1EndpointPort.md +docs/EventsApi.md +docs/EventsV1Api.md +docs/EventsV1Event.md +docs/EventsV1EventList.md +docs/EventsV1EventSeries.md +docs/FlowcontrolApiserverApi.md +docs/FlowcontrolApiserverV1beta2Api.md +docs/FlowcontrolApiserverV1beta3Api.md +docs/InternalApiserverApi.md +docs/InternalApiserverV1alpha1Api.md +docs/LogsApi.md +docs/NetworkingApi.md +docs/NetworkingV1Api.md +docs/NetworkingV1alpha1Api.md +docs/NodeApi.md +docs/NodeV1Api.md +docs/OpenidApi.md +docs/PolicyApi.md +docs/PolicyV1Api.md +docs/RbacAuthorizationApi.md +docs/RbacAuthorizationV1Api.md +docs/ResourceApi.md +docs/ResourceV1alpha2Api.md +docs/SchedulingApi.md +docs/SchedulingV1Api.md +docs/StorageApi.md +docs/StorageV1Api.md +docs/StorageV1TokenRequest.md +docs/V1APIGroup.md +docs/V1APIGroupList.md +docs/V1APIResource.md +docs/V1APIResourceList.md +docs/V1APIService.md +docs/V1APIServiceCondition.md +docs/V1APIServiceList.md +docs/V1APIServiceSpec.md +docs/V1APIServiceStatus.md +docs/V1APIVersions.md +docs/V1AWSElasticBlockStoreVolumeSource.md +docs/V1Affinity.md +docs/V1AggregationRule.md +docs/V1AttachedVolume.md +docs/V1AzureDiskVolumeSource.md +docs/V1AzureFilePersistentVolumeSource.md +docs/V1AzureFileVolumeSource.md +docs/V1Binding.md +docs/V1BoundObjectReference.md +docs/V1CSIDriver.md +docs/V1CSIDriverList.md +docs/V1CSIDriverSpec.md +docs/V1CSINode.md +docs/V1CSINodeDriver.md +docs/V1CSINodeList.md +docs/V1CSINodeSpec.md +docs/V1CSIPersistentVolumeSource.md +docs/V1CSIStorageCapacity.md +docs/V1CSIStorageCapacityList.md +docs/V1CSIVolumeSource.md +docs/V1Capabilities.md +docs/V1CephFSPersistentVolumeSource.md +docs/V1CephFSVolumeSource.md +docs/V1CertificateSigningRequest.md +docs/V1CertificateSigningRequestCondition.md +docs/V1CertificateSigningRequestList.md +docs/V1CertificateSigningRequestSpec.md +docs/V1CertificateSigningRequestStatus.md +docs/V1CinderPersistentVolumeSource.md +docs/V1CinderVolumeSource.md +docs/V1ClaimSource.md +docs/V1ClientIPConfig.md +docs/V1ClusterRole.md +docs/V1ClusterRoleBinding.md +docs/V1ClusterRoleBindingList.md +docs/V1ClusterRoleList.md +docs/V1ComponentCondition.md +docs/V1ComponentStatus.md +docs/V1ComponentStatusList.md +docs/V1Condition.md +docs/V1ConfigMap.md +docs/V1ConfigMapEnvSource.md +docs/V1ConfigMapKeySelector.md +docs/V1ConfigMapList.md +docs/V1ConfigMapNodeConfigSource.md +docs/V1ConfigMapProjection.md +docs/V1ConfigMapVolumeSource.md +docs/V1Container.md +docs/V1ContainerImage.md +docs/V1ContainerPort.md +docs/V1ContainerResizePolicy.md +docs/V1ContainerState.md +docs/V1ContainerStateRunning.md +docs/V1ContainerStateTerminated.md +docs/V1ContainerStateWaiting.md +docs/V1ContainerStatus.md +docs/V1ControllerRevision.md +docs/V1ControllerRevisionList.md +docs/V1CronJob.md +docs/V1CronJobList.md +docs/V1CronJobSpec.md +docs/V1CronJobStatus.md +docs/V1CrossVersionObjectReference.md +docs/V1CustomResourceColumnDefinition.md +docs/V1CustomResourceConversion.md +docs/V1CustomResourceDefinition.md +docs/V1CustomResourceDefinitionCondition.md +docs/V1CustomResourceDefinitionList.md +docs/V1CustomResourceDefinitionNames.md +docs/V1CustomResourceDefinitionSpec.md +docs/V1CustomResourceDefinitionStatus.md +docs/V1CustomResourceDefinitionVersion.md +docs/V1CustomResourceSubresourceScale.md +docs/V1CustomResourceSubresources.md +docs/V1CustomResourceValidation.md +docs/V1DaemonEndpoint.md +docs/V1DaemonSet.md +docs/V1DaemonSetCondition.md +docs/V1DaemonSetList.md +docs/V1DaemonSetSpec.md +docs/V1DaemonSetStatus.md +docs/V1DaemonSetUpdateStrategy.md +docs/V1DeleteOptions.md +docs/V1Deployment.md +docs/V1DeploymentCondition.md +docs/V1DeploymentList.md +docs/V1DeploymentSpec.md +docs/V1DeploymentStatus.md +docs/V1DeploymentStrategy.md +docs/V1DownwardAPIProjection.md +docs/V1DownwardAPIVolumeFile.md +docs/V1DownwardAPIVolumeSource.md +docs/V1EmptyDirVolumeSource.md +docs/V1Endpoint.md +docs/V1EndpointAddress.md +docs/V1EndpointConditions.md +docs/V1EndpointHints.md +docs/V1EndpointSlice.md +docs/V1EndpointSliceList.md +docs/V1EndpointSubset.md +docs/V1Endpoints.md +docs/V1EndpointsList.md +docs/V1EnvFromSource.md +docs/V1EnvVar.md +docs/V1EnvVarSource.md +docs/V1EphemeralContainer.md +docs/V1EphemeralVolumeSource.md +docs/V1EventSource.md +docs/V1Eviction.md +docs/V1ExecAction.md +docs/V1ExternalDocumentation.md +docs/V1FCVolumeSource.md +docs/V1FlexPersistentVolumeSource.md +docs/V1FlexVolumeSource.md +docs/V1FlockerVolumeSource.md +docs/V1ForZone.md +docs/V1GCEPersistentDiskVolumeSource.md +docs/V1GRPCAction.md +docs/V1GitRepoVolumeSource.md +docs/V1GlusterfsPersistentVolumeSource.md +docs/V1GlusterfsVolumeSource.md +docs/V1GroupVersionForDiscovery.md +docs/V1HTTPGetAction.md +docs/V1HTTPHeader.md +docs/V1HTTPIngressPath.md +docs/V1HTTPIngressRuleValue.md +docs/V1HorizontalPodAutoscaler.md +docs/V1HorizontalPodAutoscalerList.md +docs/V1HorizontalPodAutoscalerSpec.md +docs/V1HorizontalPodAutoscalerStatus.md +docs/V1HostAlias.md +docs/V1HostIP.md +docs/V1HostPathVolumeSource.md +docs/V1IPBlock.md +docs/V1ISCSIPersistentVolumeSource.md +docs/V1ISCSIVolumeSource.md +docs/V1Ingress.md +docs/V1IngressBackend.md +docs/V1IngressClass.md +docs/V1IngressClassList.md +docs/V1IngressClassParametersReference.md +docs/V1IngressClassSpec.md +docs/V1IngressList.md +docs/V1IngressLoadBalancerIngress.md +docs/V1IngressLoadBalancerStatus.md +docs/V1IngressPortStatus.md +docs/V1IngressRule.md +docs/V1IngressServiceBackend.md +docs/V1IngressSpec.md +docs/V1IngressStatus.md +docs/V1IngressTLS.md +docs/V1JSONSchemaProps.md +docs/V1Job.md +docs/V1JobCondition.md +docs/V1JobList.md +docs/V1JobSpec.md +docs/V1JobStatus.md +docs/V1JobTemplateSpec.md +docs/V1KeyToPath.md +docs/V1LabelSelector.md +docs/V1LabelSelectorRequirement.md +docs/V1Lease.md +docs/V1LeaseList.md +docs/V1LeaseSpec.md +docs/V1Lifecycle.md +docs/V1LifecycleHandler.md +docs/V1LimitRange.md +docs/V1LimitRangeItem.md +docs/V1LimitRangeList.md +docs/V1LimitRangeSpec.md +docs/V1ListMeta.md +docs/V1LoadBalancerIngress.md +docs/V1LoadBalancerStatus.md +docs/V1LocalObjectReference.md +docs/V1LocalSubjectAccessReview.md +docs/V1LocalVolumeSource.md +docs/V1ManagedFieldsEntry.md +docs/V1MatchCondition.md +docs/V1MutatingWebhook.md +docs/V1MutatingWebhookConfiguration.md +docs/V1MutatingWebhookConfigurationList.md +docs/V1NFSVolumeSource.md +docs/V1Namespace.md +docs/V1NamespaceCondition.md +docs/V1NamespaceList.md +docs/V1NamespaceSpec.md +docs/V1NamespaceStatus.md +docs/V1NetworkPolicy.md +docs/V1NetworkPolicyEgressRule.md +docs/V1NetworkPolicyIngressRule.md +docs/V1NetworkPolicyList.md +docs/V1NetworkPolicyPeer.md +docs/V1NetworkPolicyPort.md +docs/V1NetworkPolicySpec.md +docs/V1Node.md +docs/V1NodeAddress.md +docs/V1NodeAffinity.md +docs/V1NodeCondition.md +docs/V1NodeConfigSource.md +docs/V1NodeConfigStatus.md +docs/V1NodeDaemonEndpoints.md +docs/V1NodeList.md +docs/V1NodeSelector.md +docs/V1NodeSelectorRequirement.md +docs/V1NodeSelectorTerm.md +docs/V1NodeSpec.md +docs/V1NodeStatus.md +docs/V1NodeSystemInfo.md +docs/V1NonResourceAttributes.md +docs/V1NonResourceRule.md +docs/V1ObjectFieldSelector.md +docs/V1ObjectMeta.md +docs/V1ObjectReference.md +docs/V1Overhead.md +docs/V1OwnerReference.md +docs/V1PersistentVolume.md +docs/V1PersistentVolumeClaim.md +docs/V1PersistentVolumeClaimCondition.md +docs/V1PersistentVolumeClaimList.md +docs/V1PersistentVolumeClaimSpec.md +docs/V1PersistentVolumeClaimStatus.md +docs/V1PersistentVolumeClaimTemplate.md +docs/V1PersistentVolumeClaimVolumeSource.md +docs/V1PersistentVolumeList.md +docs/V1PersistentVolumeSpec.md +docs/V1PersistentVolumeStatus.md +docs/V1PhotonPersistentDiskVolumeSource.md +docs/V1Pod.md +docs/V1PodAffinity.md +docs/V1PodAffinityTerm.md +docs/V1PodAntiAffinity.md +docs/V1PodCondition.md +docs/V1PodDNSConfig.md +docs/V1PodDNSConfigOption.md +docs/V1PodDisruptionBudget.md +docs/V1PodDisruptionBudgetList.md +docs/V1PodDisruptionBudgetSpec.md +docs/V1PodDisruptionBudgetStatus.md +docs/V1PodFailurePolicy.md +docs/V1PodFailurePolicyOnExitCodesRequirement.md +docs/V1PodFailurePolicyOnPodConditionsPattern.md +docs/V1PodFailurePolicyRule.md +docs/V1PodIP.md +docs/V1PodList.md +docs/V1PodOS.md +docs/V1PodReadinessGate.md +docs/V1PodResourceClaim.md +docs/V1PodResourceClaimStatus.md +docs/V1PodSchedulingGate.md +docs/V1PodSecurityContext.md +docs/V1PodSpec.md +docs/V1PodStatus.md +docs/V1PodTemplate.md +docs/V1PodTemplateList.md +docs/V1PodTemplateSpec.md +docs/V1PolicyRule.md +docs/V1PortStatus.md +docs/V1PortworxVolumeSource.md +docs/V1Preconditions.md +docs/V1PreferredSchedulingTerm.md +docs/V1PriorityClass.md +docs/V1PriorityClassList.md +docs/V1Probe.md +docs/V1ProjectedVolumeSource.md +docs/V1QuobyteVolumeSource.md +docs/V1RBDPersistentVolumeSource.md +docs/V1RBDVolumeSource.md +docs/V1ReplicaSet.md +docs/V1ReplicaSetCondition.md +docs/V1ReplicaSetList.md +docs/V1ReplicaSetSpec.md +docs/V1ReplicaSetStatus.md +docs/V1ReplicationController.md +docs/V1ReplicationControllerCondition.md +docs/V1ReplicationControllerList.md +docs/V1ReplicationControllerSpec.md +docs/V1ReplicationControllerStatus.md +docs/V1ResourceAttributes.md +docs/V1ResourceClaim.md +docs/V1ResourceFieldSelector.md +docs/V1ResourceQuota.md +docs/V1ResourceQuotaList.md +docs/V1ResourceQuotaSpec.md +docs/V1ResourceQuotaStatus.md +docs/V1ResourceRequirements.md +docs/V1ResourceRule.md +docs/V1Role.md +docs/V1RoleBinding.md +docs/V1RoleBindingList.md +docs/V1RoleList.md +docs/V1RoleRef.md +docs/V1RollingUpdateDaemonSet.md +docs/V1RollingUpdateDeployment.md +docs/V1RollingUpdateStatefulSetStrategy.md +docs/V1RuleWithOperations.md +docs/V1RuntimeClass.md +docs/V1RuntimeClassList.md +docs/V1SELinuxOptions.md +docs/V1Scale.md +docs/V1ScaleIOPersistentVolumeSource.md +docs/V1ScaleIOVolumeSource.md +docs/V1ScaleSpec.md +docs/V1ScaleStatus.md +docs/V1Scheduling.md +docs/V1ScopeSelector.md +docs/V1ScopedResourceSelectorRequirement.md +docs/V1SeccompProfile.md +docs/V1Secret.md +docs/V1SecretEnvSource.md +docs/V1SecretKeySelector.md +docs/V1SecretList.md +docs/V1SecretProjection.md +docs/V1SecretReference.md +docs/V1SecretVolumeSource.md +docs/V1SecurityContext.md +docs/V1SelfSubjectAccessReview.md +docs/V1SelfSubjectAccessReviewSpec.md +docs/V1SelfSubjectReview.md +docs/V1SelfSubjectReviewStatus.md +docs/V1SelfSubjectRulesReview.md +docs/V1SelfSubjectRulesReviewSpec.md +docs/V1ServerAddressByClientCIDR.md +docs/V1Service.md +docs/V1ServiceAccount.md +docs/V1ServiceAccountList.md +docs/V1ServiceAccountTokenProjection.md +docs/V1ServiceBackendPort.md +docs/V1ServiceList.md +docs/V1ServicePort.md +docs/V1ServiceSpec.md +docs/V1ServiceStatus.md +docs/V1SessionAffinityConfig.md +docs/V1StatefulSet.md +docs/V1StatefulSetCondition.md +docs/V1StatefulSetList.md +docs/V1StatefulSetOrdinals.md +docs/V1StatefulSetPersistentVolumeClaimRetentionPolicy.md +docs/V1StatefulSetSpec.md +docs/V1StatefulSetStatus.md +docs/V1StatefulSetUpdateStrategy.md +docs/V1Status.md +docs/V1StatusCause.md +docs/V1StatusDetails.md +docs/V1StorageClass.md +docs/V1StorageClassList.md +docs/V1StorageOSPersistentVolumeSource.md +docs/V1StorageOSVolumeSource.md +docs/V1Subject.md +docs/V1SubjectAccessReview.md +docs/V1SubjectAccessReviewSpec.md +docs/V1SubjectAccessReviewStatus.md +docs/V1SubjectRulesReviewStatus.md +docs/V1Sysctl.md +docs/V1TCPSocketAction.md +docs/V1Taint.md +docs/V1TokenRequestSpec.md +docs/V1TokenRequestStatus.md +docs/V1TokenReview.md +docs/V1TokenReviewSpec.md +docs/V1TokenReviewStatus.md +docs/V1Toleration.md +docs/V1TopologySelectorLabelRequirement.md +docs/V1TopologySelectorTerm.md +docs/V1TopologySpreadConstraint.md +docs/V1TypedLocalObjectReference.md +docs/V1TypedObjectReference.md +docs/V1UncountedTerminatedPods.md +docs/V1UserInfo.md +docs/V1ValidatingWebhook.md +docs/V1ValidatingWebhookConfiguration.md +docs/V1ValidatingWebhookConfigurationList.md +docs/V1ValidationRule.md +docs/V1Volume.md +docs/V1VolumeAttachment.md +docs/V1VolumeAttachmentList.md +docs/V1VolumeAttachmentSource.md +docs/V1VolumeAttachmentSpec.md +docs/V1VolumeAttachmentStatus.md +docs/V1VolumeDevice.md +docs/V1VolumeError.md +docs/V1VolumeMount.md +docs/V1VolumeNodeAffinity.md +docs/V1VolumeNodeResources.md +docs/V1VolumeProjection.md +docs/V1VsphereVirtualDiskVolumeSource.md +docs/V1WatchEvent.md +docs/V1WebhookConversion.md +docs/V1WeightedPodAffinityTerm.md +docs/V1WindowsSecurityContextOptions.md +docs/V1alpha1AuditAnnotation.md +docs/V1alpha1ClusterCIDR.md +docs/V1alpha1ClusterCIDRList.md +docs/V1alpha1ClusterCIDRSpec.md +docs/V1alpha1ClusterTrustBundle.md +docs/V1alpha1ClusterTrustBundleList.md +docs/V1alpha1ClusterTrustBundleSpec.md +docs/V1alpha1ExpressionWarning.md +docs/V1alpha1IPAddress.md +docs/V1alpha1IPAddressList.md +docs/V1alpha1IPAddressSpec.md +docs/V1alpha1MatchCondition.md +docs/V1alpha1MatchResources.md +docs/V1alpha1NamedRuleWithOperations.md +docs/V1alpha1ParamKind.md +docs/V1alpha1ParamRef.md +docs/V1alpha1ParentReference.md +docs/V1alpha1SelfSubjectReview.md +docs/V1alpha1SelfSubjectReviewStatus.md +docs/V1alpha1ServerStorageVersion.md +docs/V1alpha1StorageVersion.md +docs/V1alpha1StorageVersionCondition.md +docs/V1alpha1StorageVersionList.md +docs/V1alpha1StorageVersionStatus.md +docs/V1alpha1TypeChecking.md +docs/V1alpha1ValidatingAdmissionPolicy.md +docs/V1alpha1ValidatingAdmissionPolicyBinding.md +docs/V1alpha1ValidatingAdmissionPolicyBindingList.md +docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md +docs/V1alpha1ValidatingAdmissionPolicyList.md +docs/V1alpha1ValidatingAdmissionPolicySpec.md +docs/V1alpha1ValidatingAdmissionPolicyStatus.md +docs/V1alpha1Validation.md +docs/V1alpha1Variable.md +docs/V1alpha2AllocationResult.md +docs/V1alpha2PodSchedulingContext.md +docs/V1alpha2PodSchedulingContextList.md +docs/V1alpha2PodSchedulingContextSpec.md +docs/V1alpha2PodSchedulingContextStatus.md +docs/V1alpha2ResourceClaim.md +docs/V1alpha2ResourceClaimConsumerReference.md +docs/V1alpha2ResourceClaimList.md +docs/V1alpha2ResourceClaimParametersReference.md +docs/V1alpha2ResourceClaimSchedulingStatus.md +docs/V1alpha2ResourceClaimSpec.md +docs/V1alpha2ResourceClaimStatus.md +docs/V1alpha2ResourceClaimTemplate.md +docs/V1alpha2ResourceClaimTemplateList.md +docs/V1alpha2ResourceClaimTemplateSpec.md +docs/V1alpha2ResourceClass.md +docs/V1alpha2ResourceClassList.md +docs/V1alpha2ResourceClassParametersReference.md +docs/V1alpha2ResourceHandle.md +docs/V1beta1AuditAnnotation.md +docs/V1beta1ExpressionWarning.md +docs/V1beta1MatchCondition.md +docs/V1beta1MatchResources.md +docs/V1beta1NamedRuleWithOperations.md +docs/V1beta1ParamKind.md +docs/V1beta1ParamRef.md +docs/V1beta1SelfSubjectReview.md +docs/V1beta1SelfSubjectReviewStatus.md +docs/V1beta1TypeChecking.md +docs/V1beta1ValidatingAdmissionPolicy.md +docs/V1beta1ValidatingAdmissionPolicyBinding.md +docs/V1beta1ValidatingAdmissionPolicyBindingList.md +docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md +docs/V1beta1ValidatingAdmissionPolicyList.md +docs/V1beta1ValidatingAdmissionPolicySpec.md +docs/V1beta1ValidatingAdmissionPolicyStatus.md +docs/V1beta1Validation.md +docs/V1beta1Variable.md +docs/V1beta2ExemptPriorityLevelConfiguration.md +docs/V1beta2FlowDistinguisherMethod.md +docs/V1beta2FlowSchema.md +docs/V1beta2FlowSchemaCondition.md +docs/V1beta2FlowSchemaList.md +docs/V1beta2FlowSchemaSpec.md +docs/V1beta2FlowSchemaStatus.md +docs/V1beta2GroupSubject.md +docs/V1beta2LimitResponse.md +docs/V1beta2LimitedPriorityLevelConfiguration.md +docs/V1beta2NonResourcePolicyRule.md +docs/V1beta2PolicyRulesWithSubjects.md +docs/V1beta2PriorityLevelConfiguration.md +docs/V1beta2PriorityLevelConfigurationCondition.md +docs/V1beta2PriorityLevelConfigurationList.md +docs/V1beta2PriorityLevelConfigurationReference.md +docs/V1beta2PriorityLevelConfigurationSpec.md +docs/V1beta2PriorityLevelConfigurationStatus.md +docs/V1beta2QueuingConfiguration.md +docs/V1beta2ResourcePolicyRule.md +docs/V1beta2ServiceAccountSubject.md +docs/V1beta2Subject.md +docs/V1beta2UserSubject.md +docs/V1beta3ExemptPriorityLevelConfiguration.md +docs/V1beta3FlowDistinguisherMethod.md +docs/V1beta3FlowSchema.md +docs/V1beta3FlowSchemaCondition.md +docs/V1beta3FlowSchemaList.md +docs/V1beta3FlowSchemaSpec.md +docs/V1beta3FlowSchemaStatus.md +docs/V1beta3GroupSubject.md +docs/V1beta3LimitResponse.md +docs/V1beta3LimitedPriorityLevelConfiguration.md +docs/V1beta3NonResourcePolicyRule.md +docs/V1beta3PolicyRulesWithSubjects.md +docs/V1beta3PriorityLevelConfiguration.md +docs/V1beta3PriorityLevelConfigurationCondition.md +docs/V1beta3PriorityLevelConfigurationList.md +docs/V1beta3PriorityLevelConfigurationReference.md +docs/V1beta3PriorityLevelConfigurationSpec.md +docs/V1beta3PriorityLevelConfigurationStatus.md +docs/V1beta3QueuingConfiguration.md +docs/V1beta3ResourcePolicyRule.md +docs/V1beta3ServiceAccountSubject.md +docs/V1beta3Subject.md +docs/V1beta3UserSubject.md +docs/V2ContainerResourceMetricSource.md +docs/V2ContainerResourceMetricStatus.md +docs/V2CrossVersionObjectReference.md +docs/V2ExternalMetricSource.md +docs/V2ExternalMetricStatus.md +docs/V2HPAScalingPolicy.md +docs/V2HPAScalingRules.md +docs/V2HorizontalPodAutoscaler.md +docs/V2HorizontalPodAutoscalerBehavior.md +docs/V2HorizontalPodAutoscalerCondition.md +docs/V2HorizontalPodAutoscalerList.md +docs/V2HorizontalPodAutoscalerSpec.md +docs/V2HorizontalPodAutoscalerStatus.md +docs/V2MetricIdentifier.md +docs/V2MetricSpec.md +docs/V2MetricStatus.md +docs/V2MetricTarget.md +docs/V2MetricValueStatus.md +docs/V2ObjectMetricSource.md +docs/V2ObjectMetricStatus.md +docs/V2PodsMetricSource.md +docs/V2PodsMetricStatus.md +docs/V2ResourceMetricSource.md +docs/V2ResourceMetricStatus.md +docs/VersionApi.md +docs/VersionInfo.md +docs/WellKnownApi.md +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +src/main/AndroidManifest.xml +src/main/java/io/kubernetes/client/openapi/ApiCallback.java +src/main/java/io/kubernetes/client/openapi/ApiClient.java +src/main/java/io/kubernetes/client/openapi/ApiException.java +src/main/java/io/kubernetes/client/openapi/ApiResponse.java +src/main/java/io/kubernetes/client/openapi/Configuration.java +src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java +src/main/java/io/kubernetes/client/openapi/JSON.java +src/main/java/io/kubernetes/client/openapi/Pair.java +src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java +src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java +src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +src/main/java/io/kubernetes/client/openapi/ServerVariable.java +src/main/java/io/kubernetes/client/openapi/StringUtil.java +src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java +src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java +src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java +src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java +src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java +src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java +src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java +src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java +src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java +src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java +src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java +src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java +src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java +src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java +src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java +src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java +src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java +src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java +src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java +src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta2Api.java +src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java +src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java +src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java +src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java +src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java +src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java +src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java +src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java +src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java +src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha2Api.java +src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java +src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java +src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java +src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java +src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java +src/main/java/io/kubernetes/client/openapi/auth/Authentication.java +src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java +src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java +src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java +src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java +src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java +src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java +src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java +src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java +src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java +src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java +src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java +src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java +src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java +src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java +src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java +src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java +src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java +src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java +src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java +src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java +src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java +src/main/java/io/kubernetes/client/openapi/models/V1APIService.java +src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java +src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java +src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java +src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java +src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java +src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Binding.java +src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java +src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java +src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java +src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java +src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java +src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java +src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java +src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java +src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java +src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java +src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java +src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java +src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java +src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java +src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java +src/main/java/io/kubernetes/client/openapi/models/V1Condition.java +src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java +src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java +src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java +src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java +src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Container.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java +src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java +src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java +src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java +src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java +src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java +src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java +src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java +src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java +src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java +src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java +src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java +src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java +src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java +src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java +src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java +src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java +src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java +src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java +src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java +src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java +src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java +src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java +src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java +src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java +src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java +src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java +src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java +src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java +src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java +src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java +src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java +src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java +src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java +src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java +src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java +src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java +src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java +src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java +src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java +src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java +src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java +src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java +src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java +src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java +src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java +src/main/java/io/kubernetes/client/openapi/models/V1Job.java +src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1JobList.java +src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java +src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java +src/main/java/io/kubernetes/client/openapi/models/V1Lease.java +src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java +src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java +src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java +src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java +src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java +src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java +src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java +src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java +src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java +src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java +src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java +src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java +src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java +src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java +src/main/java/io/kubernetes/client/openapi/models/V1Node.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java +src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java +src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java +src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java +src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java +src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Pod.java +src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java +src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java +src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java +src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java +src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java +src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java +src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java +src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java +src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java +src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java +src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java +src/main/java/io/kubernetes/client/openapi/models/V1PodList.java +src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java +src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java +src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java +src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java +src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java +src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java +src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java +src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java +src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java +src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1Probe.java +src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java +src/main/java/io/kubernetes/client/openapi/models/V1Role.java +src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java +src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java +src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java +src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java +src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java +src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java +src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java +src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java +src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java +src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java +src/main/java/io/kubernetes/client/openapi/models/V1Scale.java +src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java +src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java +src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java +src/main/java/io/kubernetes/client/openapi/models/V1Secret.java +src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java +src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java +src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java +src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java +src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java +src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java +src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java +src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java +src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java +src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java +src/main/java/io/kubernetes/client/openapi/models/V1Service.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java +src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java +src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java +src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java +src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java +src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java +src/main/java/io/kubernetes/client/openapi/models/V1Status.java +src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java +src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1Subject.java +src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java +src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java +src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java +src/main/java/io/kubernetes/client/openapi/models/V1Taint.java +src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java +src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java +src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java +src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java +src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java +src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java +src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java +src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java +src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java +src/main/java/io/kubernetes/client/openapi/models/V1Volume.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java +src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java +src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java +src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java +src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ExemptPriorityLevelConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java +src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java +src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java +src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java +src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java +src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java +src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java +src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java +src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java +src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java +src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java +src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java +src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java +src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java +src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java +src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java +src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java +src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java +src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java +src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java +src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java +src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java +src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java +src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java +src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION index ecedc98d1d..cd802a1ec4 100644 --- a/kubernetes/.openapi-generator/VERSION +++ b/kubernetes/.openapi-generator/VERSION @@ -1 +1 @@ -4.3.1 \ No newline at end of file +6.6.0 \ No newline at end of file diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 new file mode 100644 index 0000000000..a17d90d7f8 --- /dev/null +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -0,0 +1 @@ +bc06a8445ec2886d0c854009f0937f6669f6037225fda60d05f60f66f1fa2a5e \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 15bb8f670c..b9322a9c23 100644 --- a/kubernetes/api/openapi.yaml +++ b/kubernetes/api/openapi.yaml @@ -58,12 +58,12 @@ paths: description: list objects of kind ComponentStatus operationId: listComponentStatus parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -96,7 +96,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -135,14 +135,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -188,7 +188,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -222,12 +222,12 @@ paths: description: list or watch objects of kind ConfigMap operationId: listConfigMapForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -260,7 +260,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -299,14 +299,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -346,12 +346,12 @@ paths: description: list or watch objects of kind Endpoints operationId: listEndpointsForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -384,7 +384,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -423,14 +423,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -470,12 +470,12 @@ paths: description: list or watch objects of kind Event operationId: listEventForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -508,7 +508,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -547,14 +547,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -594,12 +594,12 @@ paths: description: list or watch objects of kind LimitRange operationId: listLimitRangeForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -632,7 +632,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -671,14 +671,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -718,17 +718,17 @@ paths: description: list or watch objects of kind Namespace operationId: listNamespace parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -795,14 +795,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -841,39 +841,39 @@ paths: description: create a Namespace operationId: createNamespace parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -939,45 +939,45 @@ paths: description: create a Binding operationId: createNamespacedBinding parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -1043,13 +1043,13 @@ paths: description: delete collection of ConfigMap operationId: deleteCollectionNamespacedConfigMap parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -1062,10 +1062,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -1076,11 +1076,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -1099,21 +1099,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -1152,8 +1152,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -1194,23 +1194,23 @@ paths: description: list or watch objects of kind ConfigMap operationId: listNamespacedConfigMap parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -1277,14 +1277,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -1323,45 +1323,45 @@ paths: description: create a ConfigMap operationId: createNamespacedConfigMap parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -1433,49 +1433,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -1534,13 +1534,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -1579,47 +1579,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -1685,45 +1685,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -1777,13 +1777,13 @@ paths: description: delete collection of Endpoints operationId: deleteCollectionNamespacedEndpoints parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -1796,10 +1796,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -1810,11 +1810,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -1833,21 +1833,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -1886,8 +1886,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -1928,23 +1928,23 @@ paths: description: list or watch objects of kind Endpoints operationId: listNamespacedEndpoints parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -2011,14 +2011,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -2057,45 +2057,45 @@ paths: description: create Endpoints operationId: createNamespacedEndpoints parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -2167,49 +2167,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -2268,13 +2268,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -2313,47 +2313,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -2419,45 +2419,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -2511,13 +2511,13 @@ paths: description: delete collection of Event operationId: deleteCollectionNamespacedEvent parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -2530,10 +2530,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -2544,11 +2544,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -2567,21 +2567,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -2620,8 +2620,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -2662,23 +2662,23 @@ paths: description: list or watch objects of kind Event operationId: listNamespacedEvent parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -2745,14 +2745,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -2791,45 +2791,45 @@ paths: description: create an Event operationId: createNamespacedEvent parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -2901,49 +2901,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -3002,13 +3002,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -3047,47 +3047,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -3153,45 +3153,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -3245,13 +3245,13 @@ paths: description: delete collection of LimitRange operationId: deleteCollectionNamespacedLimitRange parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -3264,10 +3264,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -3278,11 +3278,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -3301,21 +3301,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -3354,8 +3354,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -3396,23 +3396,23 @@ paths: description: list or watch objects of kind LimitRange operationId: listNamespacedLimitRange parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -3479,14 +3479,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -3525,45 +3525,45 @@ paths: description: create a LimitRange operationId: createNamespacedLimitRange parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -3635,49 +3635,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -3736,13 +3736,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -3781,47 +3781,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -3887,45 +3887,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -3979,13 +3979,13 @@ paths: description: delete collection of PersistentVolumeClaim operationId: deleteCollectionNamespacedPersistentVolumeClaim parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -3998,10 +3998,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -4012,11 +4012,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -4035,21 +4035,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -4088,8 +4088,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -4130,23 +4130,23 @@ paths: description: list or watch objects of kind PersistentVolumeClaim operationId: listNamespacedPersistentVolumeClaim parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -4213,14 +4213,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -4259,45 +4259,45 @@ paths: description: create a PersistentVolumeClaim operationId: createNamespacedPersistentVolumeClaim parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -4369,49 +4369,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -4470,13 +4470,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -4515,47 +4515,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -4621,45 +4621,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -4719,13 +4719,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -4764,47 +4764,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -4870,45 +4870,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -4962,13 +4962,13 @@ paths: description: delete collection of Pod operationId: deleteCollectionNamespacedPod parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -4981,10 +4981,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -4995,11 +4995,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -5018,21 +5018,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -5071,8 +5071,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -5113,23 +5113,23 @@ paths: description: list or watch objects of kind Pod operationId: listNamespacedPod parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -5196,14 +5196,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -5242,45 +5242,45 @@ paths: description: create a Pod operationId: createNamespacedPod parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -5352,49 +5352,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -5453,13 +5453,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -5498,47 +5498,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -5604,45 +5604,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -5708,7 +5708,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -5720,8 +5720,8 @@ paths: name: stderr schema: type: boolean - - description: Stdin if true, redirects the standard input stream of the pod - for this call. Defaults to false. + - description: "Stdin if true, redirects the standard input stream of the pod\ + \ for this call. Defaults to false." in: query name: stdin schema: @@ -5773,7 +5773,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -5785,8 +5785,8 @@ paths: name: stderr schema: type: boolean - - description: Stdin if true, redirects the standard input stream of the pod - for this call. Defaults to false. + - description: "Stdin if true, redirects the standard input stream of the pod\ + \ for this call. Defaults to false." in: query name: stdin schema: @@ -5827,34 +5827,34 @@ paths: description: create binding of a Pod operationId: createNamespacedPodBinding parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -5865,13 +5865,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -5943,13 +5943,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -5988,47 +5988,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -6094,45 +6094,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -6186,34 +6186,34 @@ paths: description: create eviction of a Pod operationId: createNamespacedPodEviction parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -6224,13 +6224,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -6314,7 +6314,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6382,7 +6382,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6444,21 +6444,22 @@ paths: name: follow schema: type: boolean - - 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). + - 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 schema: type: boolean - - 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. + - 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 schema: @@ -6469,13 +6470,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -6485,23 +6486,24 @@ paths: name: previous schema: type: boolean - - 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. + - 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 schema: type: integer - - 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 + - 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 schema: type: integer - - description: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning - of every line of log output. Defaults to false. + - 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 schema: @@ -6544,7 +6546,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6583,7 +6585,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6623,7 +6625,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6663,7 +6665,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6703,7 +6705,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6743,7 +6745,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6783,7 +6785,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6823,7 +6825,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6863,7 +6865,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6904,7 +6906,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6950,7 +6952,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -6996,7 +6998,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -7042,7 +7044,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -7088,7 +7090,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -7134,7 +7136,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -7180,7 +7182,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -7227,13 +7229,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -7272,47 +7274,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -7378,45 +7380,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -7470,13 +7472,13 @@ paths: description: delete collection of PodTemplate operationId: deleteCollectionNamespacedPodTemplate parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -7489,10 +7491,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -7503,11 +7505,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -7526,21 +7528,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -7579,8 +7581,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -7621,23 +7623,23 @@ paths: description: list or watch objects of kind PodTemplate operationId: listNamespacedPodTemplate parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -7704,14 +7706,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -7750,45 +7752,45 @@ paths: description: create a PodTemplate operationId: createNamespacedPodTemplate parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -7860,49 +7862,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -7961,13 +7963,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -8006,47 +8008,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -8112,45 +8114,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -8204,13 +8206,13 @@ paths: description: delete collection of ReplicationController operationId: deleteCollectionNamespacedReplicationController parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -8223,10 +8225,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -8237,11 +8239,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -8260,21 +8262,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -8313,8 +8315,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -8355,23 +8357,23 @@ paths: description: list or watch objects of kind ReplicationController operationId: listNamespacedReplicationController parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -8438,14 +8440,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -8484,45 +8486,45 @@ paths: description: create a ReplicationController operationId: createNamespacedReplicationController parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -8594,49 +8596,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -8695,13 +8697,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -8740,47 +8742,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -8846,45 +8848,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -8944,13 +8946,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -8989,47 +8991,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -9095,45 +9097,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -9193,13 +9195,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -9238,47 +9240,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -9344,45 +9346,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -9436,13 +9438,13 @@ paths: description: delete collection of ResourceQuota operationId: deleteCollectionNamespacedResourceQuota parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -9455,10 +9457,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -9469,11 +9471,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -9492,21 +9494,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -9545,8 +9547,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -9587,23 +9589,23 @@ paths: description: list or watch objects of kind ResourceQuota operationId: listNamespacedResourceQuota parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -9670,14 +9672,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -9716,45 +9718,45 @@ paths: description: create a ResourceQuota operationId: createNamespacedResourceQuota parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -9826,49 +9828,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -9927,13 +9929,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -9972,47 +9974,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -10078,45 +10080,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -10176,13 +10178,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -10221,47 +10223,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -10327,45 +10329,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -10419,13 +10421,13 @@ paths: description: delete collection of Secret operationId: deleteCollectionNamespacedSecret parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -10438,10 +10440,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -10452,11 +10454,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -10475,21 +10477,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -10528,8 +10530,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -10570,23 +10572,23 @@ paths: description: list or watch objects of kind Secret operationId: listNamespacedSecret parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -10653,14 +10655,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -10699,45 +10701,45 @@ paths: description: create a Secret operationId: createNamespacedSecret parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -10809,49 +10811,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -10910,13 +10912,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -10955,47 +10957,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -11061,45 +11063,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -11153,13 +11155,13 @@ paths: description: delete collection of ServiceAccount operationId: deleteCollectionNamespacedServiceAccount parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -11172,10 +11174,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -11186,11 +11188,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -11209,21 +11211,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -11262,8 +11264,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -11304,23 +11306,23 @@ paths: description: list or watch objects of kind ServiceAccount operationId: listNamespacedServiceAccount parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -11387,14 +11389,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -11433,45 +11435,45 @@ paths: description: create a ServiceAccount operationId: createNamespacedServiceAccount parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -11543,49 +11545,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -11644,13 +11646,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -11689,47 +11691,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -11795,45 +11797,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -11887,34 +11889,34 @@ paths: description: create token of a ServiceAccount operationId: createNamespacedServiceAccountToken parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -11925,13 +11927,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -11997,13 +11999,13 @@ paths: description: delete collection of Service operationId: deleteCollectionNamespacedService parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -12016,10 +12018,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -12030,11 +12032,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -12053,21 +12055,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -12106,8 +12108,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -12148,23 +12150,23 @@ paths: description: list or watch objects of kind Service operationId: listNamespacedService parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -12231,14 +12233,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -12277,45 +12279,45 @@ paths: description: create a Service operationId: createNamespacedService parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -12387,49 +12389,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -12488,13 +12490,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -12533,47 +12535,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -12639,45 +12641,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -12737,16 +12739,16 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - 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. + - 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 schema: @@ -12779,16 +12781,16 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - 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. + - 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 schema: @@ -12821,16 +12823,16 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - 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. + - 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 schema: @@ -12863,16 +12865,16 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - 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. + - 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 schema: @@ -12905,16 +12907,16 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - 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. + - 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 schema: @@ -12947,16 +12949,16 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - 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. + - 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 schema: @@ -12989,16 +12991,16 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - 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. + - 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 schema: @@ -13032,7 +13034,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -13044,10 +13046,10 @@ paths: required: true schema: type: string - - 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. + - 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 schema: @@ -13080,7 +13082,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -13092,10 +13094,10 @@ paths: required: true schema: type: string - - 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. + - 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 schema: @@ -13128,7 +13130,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -13140,10 +13142,10 @@ paths: required: true schema: type: string - - 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. + - 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 schema: @@ -13176,7 +13178,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -13188,10 +13190,10 @@ paths: required: true schema: type: string - - 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. + - 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 schema: @@ -13224,7 +13226,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -13236,10 +13238,10 @@ paths: required: true schema: type: string - - 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. + - 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 schema: @@ -13272,7 +13274,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -13284,10 +13286,10 @@ paths: required: true schema: type: string - - 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. + - 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 schema: @@ -13320,7 +13322,7 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true @@ -13332,10 +13334,10 @@ paths: required: true schema: type: string - - 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. + - 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 schema: @@ -13369,13 +13371,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -13414,47 +13416,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -13520,45 +13522,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -13618,43 +13620,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -13713,7 +13715,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -13752,41 +13754,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -13852,39 +13854,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -13938,34 +13940,34 @@ paths: description: replace finalize of the specified Namespace operationId: replaceNamespaceFinalize parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -13976,7 +13978,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -14036,7 +14038,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -14075,41 +14077,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -14175,39 +14177,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -14261,7 +14263,7 @@ paths: description: delete collection of Node operationId: deleteCollectionNode parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -14274,10 +14276,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -14288,11 +14290,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -14311,21 +14313,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -14364,8 +14366,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -14406,17 +14408,17 @@ paths: description: list or watch objects of kind Node operationId: listNode parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -14483,14 +14485,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -14529,39 +14531,39 @@ paths: description: create a Node operationId: createNode parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -14633,43 +14635,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -14728,7 +14730,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -14767,41 +14769,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -14867,39 +14869,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -15479,7 +15481,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -15518,41 +15520,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -15618,39 +15620,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -15704,12 +15706,12 @@ paths: description: list or watch objects of kind PersistentVolumeClaim operationId: listPersistentVolumeClaimForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -15742,7 +15744,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -15781,14 +15783,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -15828,7 +15830,7 @@ paths: description: delete collection of PersistentVolume operationId: deleteCollectionPersistentVolume parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -15841,10 +15843,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -15855,11 +15857,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -15878,21 +15880,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -15931,8 +15933,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -15973,17 +15975,17 @@ paths: description: list or watch objects of kind PersistentVolume operationId: listPersistentVolume parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -16050,14 +16052,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -16096,39 +16098,39 @@ paths: description: create a PersistentVolume operationId: createPersistentVolume parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -16200,43 +16202,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -16295,7 +16297,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -16334,41 +16336,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -16434,39 +16436,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -16526,7 +16528,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -16565,41 +16567,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -16665,39 +16667,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -16751,12 +16753,12 @@ paths: description: list or watch objects of kind Pod operationId: listPodForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -16789,7 +16791,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -16828,14 +16830,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -16875,12 +16877,12 @@ paths: description: list or watch objects of kind PodTemplate operationId: listPodTemplateForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -16913,7 +16915,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -16952,14 +16954,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -16999,12 +17001,12 @@ paths: description: list or watch objects of kind ReplicationController operationId: listReplicationControllerForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -17037,7 +17039,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -17076,14 +17078,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -17123,12 +17125,12 @@ paths: description: list or watch objects of kind ResourceQuota operationId: listResourceQuotaForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -17161,7 +17163,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -17200,14 +17202,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -17247,12 +17249,12 @@ paths: description: list or watch objects of kind Secret operationId: listSecretForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -17285,7 +17287,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -17324,14 +17326,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -17371,12 +17373,12 @@ paths: description: list or watch objects of kind ServiceAccount operationId: listServiceAccountForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -17409,7 +17411,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -17448,14 +17450,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -17495,12 +17497,12 @@ paths: description: list or watch objects of kind Service operationId: listServiceForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -17533,7 +17535,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -17572,14 +17574,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -17730,7 +17732,7 @@ paths: description: delete collection of MutatingWebhookConfiguration operationId: deleteCollectionMutatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -17743,10 +17745,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -17757,11 +17759,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -17780,21 +17782,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -17833,8 +17835,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -17875,17 +17877,17 @@ paths: description: list or watch objects of kind MutatingWebhookConfiguration operationId: listMutatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -17952,14 +17954,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -17998,39 +18000,39 @@ paths: description: create a MutatingWebhookConfiguration operationId: createMutatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -18102,43 +18104,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -18197,7 +18199,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -18236,41 +18238,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -18336,39 +18338,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -18422,7 +18424,7 @@ paths: description: delete collection of ValidatingWebhookConfiguration operationId: deleteCollectionValidatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -18435,10 +18437,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -18449,11 +18451,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -18472,21 +18474,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -18525,8 +18527,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -18567,17 +18569,17 @@ paths: description: list or watch objects of kind ValidatingWebhookConfiguration operationId: listValidatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -18644,14 +18646,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -18690,39 +18692,39 @@ paths: description: create a ValidatingWebhookConfiguration operationId: createValidatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -18794,43 +18796,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -18889,7 +18891,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -18928,41 +18930,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -19028,39 +19030,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -19141,7 +19143,7 @@ paths: description: delete collection of ValidatingAdmissionPolicy operationId: deleteCollectionValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -19154,10 +19156,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -19168,11 +19170,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -19191,21 +19193,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -19244,8 +19246,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -19286,17 +19288,17 @@ paths: description: list or watch objects of kind ValidatingAdmissionPolicy operationId: listValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -19363,14 +19365,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -19409,39 +19411,39 @@ paths: description: create a ValidatingAdmissionPolicy operationId: createValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -19513,43 +19515,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -19608,7 +19610,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -19647,41 +19649,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -19747,39 +19749,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -19839,7 +19841,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -19878,41 +19880,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -19978,39 +19980,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -20064,7 +20066,7 @@ paths: description: delete collection of ValidatingAdmissionPolicyBinding operationId: deleteCollectionValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -20077,10 +20079,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -20091,11 +20093,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -20114,21 +20116,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -20167,8 +20169,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -20209,17 +20211,17 @@ paths: description: list or watch objects of kind ValidatingAdmissionPolicyBinding operationId: listValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -20286,14 +20288,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -20332,39 +20334,39 @@ paths: description: create a ValidatingAdmissionPolicyBinding operationId: createValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -20436,43 +20438,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -20531,7 +20533,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -20570,41 +20572,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -20670,39 +20672,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -22448,7 +22450,7 @@ paths: description: delete collection of CustomResourceDefinition operationId: deleteCollectionCustomResourceDefinition parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -22461,10 +22463,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -22475,11 +22477,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -22498,21 +22500,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -22551,8 +22553,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -22593,17 +22595,17 @@ paths: description: list or watch objects of kind CustomResourceDefinition operationId: listCustomResourceDefinition parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -22670,14 +22672,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -22716,39 +22718,39 @@ paths: description: create a CustomResourceDefinition operationId: createCustomResourceDefinition parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -22820,43 +22822,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -22915,7 +22917,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -22954,41 +22956,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -23054,39 +23056,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -23146,7 +23148,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -23185,41 +23187,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -23285,39 +23287,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -23419,7 +23421,7 @@ paths: description: delete collection of APIService operationId: deleteCollectionAPIService parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -23432,10 +23434,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -23446,11 +23448,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -23469,21 +23471,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -23522,8 +23524,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -23564,17 +23566,17 @@ paths: description: list or watch objects of kind APIService operationId: listAPIService parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -23641,14 +23643,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -23687,39 +23689,39 @@ paths: description: create an APIService operationId: createAPIService parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -23791,43 +23793,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -23886,7 +23888,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -23925,41 +23927,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -24025,39 +24027,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -24117,7 +24119,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -24156,41 +24158,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -24256,39 +24258,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -24390,12 +24392,12 @@ paths: description: list or watch objects of kind ControllerRevision operationId: listControllerRevisionForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -24428,7 +24430,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -24467,14 +24469,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -24514,12 +24516,12 @@ paths: description: list or watch objects of kind DaemonSet operationId: listDaemonSetForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -24552,7 +24554,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -24591,14 +24593,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -24638,12 +24640,12 @@ paths: description: list or watch objects of kind Deployment operationId: listDeploymentForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -24676,7 +24678,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -24715,14 +24717,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -24762,13 +24764,13 @@ paths: description: delete collection of ControllerRevision operationId: deleteCollectionNamespacedControllerRevision parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -24781,10 +24783,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -24795,11 +24797,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -24818,21 +24820,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -24871,8 +24873,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -24913,23 +24915,23 @@ paths: description: list or watch objects of kind ControllerRevision operationId: listNamespacedControllerRevision parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -24996,14 +24998,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -25042,45 +25044,45 @@ paths: description: create a ControllerRevision operationId: createNamespacedControllerRevision parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -25152,49 +25154,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -25253,13 +25255,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -25298,47 +25300,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -25404,45 +25406,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -25496,13 +25498,13 @@ paths: description: delete collection of DaemonSet operationId: deleteCollectionNamespacedDaemonSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -25515,10 +25517,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -25529,11 +25531,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -25552,21 +25554,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -25605,8 +25607,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -25647,23 +25649,23 @@ paths: description: list or watch objects of kind DaemonSet operationId: listNamespacedDaemonSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -25730,14 +25732,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -25776,45 +25778,45 @@ paths: description: create a DaemonSet operationId: createNamespacedDaemonSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -25886,49 +25888,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -25987,13 +25989,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -26032,47 +26034,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -26138,45 +26140,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -26236,13 +26238,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -26281,47 +26283,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -26387,45 +26389,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -26479,13 +26481,13 @@ paths: description: delete collection of Deployment operationId: deleteCollectionNamespacedDeployment parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -26498,10 +26500,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -26512,11 +26514,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -26535,21 +26537,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -26588,8 +26590,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -26630,23 +26632,23 @@ paths: description: list or watch objects of kind Deployment operationId: listNamespacedDeployment parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -26713,14 +26715,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -26759,45 +26761,45 @@ paths: description: create a Deployment operationId: createNamespacedDeployment parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -26869,49 +26871,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -26970,13 +26972,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -27015,47 +27017,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -27121,45 +27123,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -27219,13 +27221,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -27264,47 +27266,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -27370,45 +27372,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -27468,13 +27470,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -27513,47 +27515,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -27619,45 +27621,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -27711,13 +27713,13 @@ paths: description: delete collection of ReplicaSet operationId: deleteCollectionNamespacedReplicaSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -27730,10 +27732,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -27744,11 +27746,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -27767,21 +27769,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -27820,8 +27822,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -27862,23 +27864,23 @@ paths: description: list or watch objects of kind ReplicaSet operationId: listNamespacedReplicaSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -27945,14 +27947,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -27991,45 +27993,45 @@ paths: description: create a ReplicaSet operationId: createNamespacedReplicaSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -28101,49 +28103,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -28202,13 +28204,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -28247,47 +28249,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -28353,45 +28355,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -28451,13 +28453,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -28496,47 +28498,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -28602,45 +28604,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -28700,13 +28702,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -28745,47 +28747,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -28851,45 +28853,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -28943,13 +28945,13 @@ paths: description: delete collection of StatefulSet operationId: deleteCollectionNamespacedStatefulSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -28962,10 +28964,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -28976,11 +28978,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -28999,21 +29001,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -29052,8 +29054,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -29094,23 +29096,23 @@ paths: description: list or watch objects of kind StatefulSet operationId: listNamespacedStatefulSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -29177,14 +29179,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -29223,45 +29225,45 @@ paths: description: create a StatefulSet operationId: createNamespacedStatefulSet parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -29333,49 +29335,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -29434,13 +29436,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -29479,47 +29481,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -29585,45 +29587,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -29683,13 +29685,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -29728,47 +29730,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -29834,45 +29836,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -29932,13 +29934,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -29977,47 +29979,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -30083,45 +30085,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -30175,12 +30177,12 @@ paths: description: list or watch objects of kind ReplicaSet operationId: listReplicaSetForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -30213,7 +30215,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -30252,14 +30254,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -30299,12 +30301,12 @@ paths: description: list or watch objects of kind StatefulSet operationId: listStatefulSetForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -30337,7 +30339,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -30376,14 +30378,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -30582,39 +30584,39 @@ paths: description: create a TokenReview operationId: createTokenReview parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -30703,39 +30705,39 @@ paths: description: create a SelfSubjectReview operationId: createSelfSubjectReview parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -30824,39 +30826,39 @@ paths: description: create a SelfSubjectReview operationId: createSelfSubjectReview parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -30968,45 +30970,45 @@ paths: description: create a LocalSubjectAccessReview operationId: createNamespacedLocalSubjectAccessReview parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -31072,39 +31074,39 @@ paths: description: create a SelfSubjectAccessReview operationId: createSelfSubjectAccessReview parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -31170,39 +31172,39 @@ paths: description: create a SelfSubjectRulesReview operationId: createSelfSubjectRulesReview parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -31268,39 +31270,39 @@ paths: description: create a SubjectAccessReview operationId: createSubjectAccessReview parameters: - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -31412,12 +31414,12 @@ paths: description: list or watch objects of kind HorizontalPodAutoscaler operationId: listHorizontalPodAutoscalerForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -31450,7 +31452,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -31489,14 +31491,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -31536,13 +31538,13 @@ paths: description: delete collection of HorizontalPodAutoscaler operationId: deleteCollectionNamespacedHorizontalPodAutoscaler parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -31555,10 +31557,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -31569,11 +31571,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -31592,21 +31594,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -31645,8 +31647,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -31687,23 +31689,23 @@ paths: description: list or watch objects of kind HorizontalPodAutoscaler operationId: listNamespacedHorizontalPodAutoscaler parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -31770,14 +31772,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -31816,45 +31818,45 @@ paths: description: create a HorizontalPodAutoscaler operationId: createNamespacedHorizontalPodAutoscaler parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -31926,49 +31928,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -32027,13 +32029,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -32072,47 +32074,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -32178,45 +32180,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -32276,13 +32278,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -32321,47 +32323,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -32427,45 +32429,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -32545,12 +32547,12 @@ paths: description: list or watch objects of kind HorizontalPodAutoscaler operationId: listHorizontalPodAutoscalerForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -32583,7 +32585,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -32622,14 +32624,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -32669,13 +32671,13 @@ paths: description: delete collection of HorizontalPodAutoscaler operationId: deleteCollectionNamespacedHorizontalPodAutoscaler parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -32688,10 +32690,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -32702,11 +32704,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -32725,21 +32727,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -32778,8 +32780,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -32820,23 +32822,23 @@ paths: description: list or watch objects of kind HorizontalPodAutoscaler operationId: listNamespacedHorizontalPodAutoscaler parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -32903,14 +32905,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -32949,45 +32951,45 @@ paths: description: create a HorizontalPodAutoscaler operationId: createNamespacedHorizontalPodAutoscaler parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -33059,49 +33061,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -33160,13 +33162,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -33205,47 +33207,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -33311,45 +33313,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -33409,13 +33411,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -33454,47 +33456,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -33560,45 +33562,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -33701,12 +33703,12 @@ paths: description: list or watch objects of kind CronJob operationId: listCronJobForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -33739,7 +33741,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -33778,14 +33780,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -33825,12 +33827,12 @@ paths: description: list or watch objects of kind Job operationId: listJobForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -33863,7 +33865,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -33902,14 +33904,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -33949,13 +33951,13 @@ paths: description: delete collection of CronJob operationId: deleteCollectionNamespacedCronJob parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -33968,10 +33970,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -33982,11 +33984,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -34005,21 +34007,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -34058,8 +34060,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -34100,23 +34102,23 @@ paths: description: list or watch objects of kind CronJob operationId: listNamespacedCronJob parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -34183,14 +34185,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -34229,45 +34231,45 @@ paths: description: create a CronJob operationId: createNamespacedCronJob parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -34339,49 +34341,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -34440,13 +34442,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -34485,47 +34487,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -34591,45 +34593,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -34689,13 +34691,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -34734,47 +34736,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -34840,45 +34842,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -34932,13 +34934,13 @@ paths: description: delete collection of Job operationId: deleteCollectionNamespacedJob parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -34951,10 +34953,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -34965,11 +34967,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -34988,21 +34990,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -35041,8 +35043,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -35083,23 +35085,23 @@ paths: description: list or watch objects of kind Job operationId: listNamespacedJob parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -35166,14 +35168,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -35212,45 +35214,45 @@ paths: description: create a Job operationId: createNamespacedJob parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -35322,49 +35324,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -35423,13 +35425,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -35468,47 +35470,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -35574,45 +35576,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -35672,13 +35674,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -35717,47 +35719,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -35823,45 +35825,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -35967,7 +35969,7 @@ paths: description: delete collection of CertificateSigningRequest operationId: deleteCollectionCertificateSigningRequest parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -35980,10 +35982,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -35994,11 +35996,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -36017,21 +36019,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -36070,8 +36072,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -36112,17 +36114,17 @@ paths: description: list or watch objects of kind CertificateSigningRequest operationId: listCertificateSigningRequest parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -36189,14 +36191,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -36235,39 +36237,39 @@ paths: description: create a CertificateSigningRequest operationId: createCertificateSigningRequest parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -36339,43 +36341,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -36434,7 +36436,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -36473,41 +36475,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -36573,39 +36575,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -36665,7 +36667,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -36704,41 +36706,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -36804,39 +36806,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -36896,7 +36898,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -36935,41 +36937,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -37035,39 +37037,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -37146,7 +37148,7 @@ paths: description: delete collection of ClusterTrustBundle operationId: deleteCollectionClusterTrustBundle parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -37159,10 +37161,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -37173,11 +37175,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -37196,21 +37198,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -37249,8 +37251,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -37291,17 +37293,17 @@ paths: description: list or watch objects of kind ClusterTrustBundle operationId: listClusterTrustBundle parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -37368,14 +37370,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -37414,39 +37416,39 @@ paths: description: create a ClusterTrustBundle operationId: createClusterTrustBundle parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -37518,43 +37520,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -37613,7 +37615,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -37652,41 +37654,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -37752,39 +37754,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -37886,12 +37888,12 @@ paths: description: list or watch objects of kind Lease operationId: listLeaseForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -37924,7 +37926,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -37963,14 +37965,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -38010,13 +38012,13 @@ paths: description: delete collection of Lease operationId: deleteCollectionNamespacedLease parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -38029,10 +38031,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -38043,11 +38045,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -38066,21 +38068,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -38119,8 +38121,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -38161,23 +38163,23 @@ paths: description: list or watch objects of kind Lease operationId: listNamespacedLease parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -38244,14 +38246,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -38290,45 +38292,45 @@ paths: description: create a Lease operationId: createNamespacedLease parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -38400,49 +38402,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -38501,13 +38503,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -38546,47 +38548,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -38652,45 +38654,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -38793,12 +38795,12 @@ paths: description: list or watch objects of kind EndpointSlice operationId: listEndpointSliceForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -38831,7 +38833,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -38870,14 +38872,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -38917,13 +38919,13 @@ paths: description: delete collection of EndpointSlice operationId: deleteCollectionNamespacedEndpointSlice parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -38936,10 +38938,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -38950,11 +38952,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -38973,21 +38975,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -39026,8 +39028,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -39068,23 +39070,23 @@ paths: description: list or watch objects of kind EndpointSlice operationId: listNamespacedEndpointSlice parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -39151,14 +39153,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -39197,45 +39199,45 @@ paths: description: create an EndpointSlice operationId: createNamespacedEndpointSlice parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -39307,49 +39309,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -39408,13 +39410,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -39453,47 +39455,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -39559,45 +39561,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -39700,12 +39702,12 @@ paths: description: list or watch objects of kind Event operationId: listEventForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -39738,7 +39740,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -39777,14 +39779,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -39824,13 +39826,13 @@ paths: description: delete collection of Event operationId: deleteCollectionNamespacedEvent parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -39843,10 +39845,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -39857,11 +39859,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -39880,21 +39882,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -39933,8 +39935,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -39975,23 +39977,23 @@ paths: description: list or watch objects of kind Event operationId: listNamespacedEvent parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -40058,14 +40060,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -40104,45 +40106,45 @@ paths: description: create an Event operationId: createNamespacedEvent parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -40214,49 +40216,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -40315,13 +40317,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -40360,47 +40362,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -40466,45 +40468,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -40607,7 +40609,7 @@ paths: description: delete collection of FlowSchema operationId: deleteCollectionFlowSchema parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -40620,10 +40622,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -40634,11 +40636,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -40657,21 +40659,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -40710,8 +40712,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -40752,17 +40754,17 @@ paths: description: list or watch objects of kind FlowSchema operationId: listFlowSchema parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -40829,14 +40831,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -40875,39 +40877,39 @@ paths: description: create a FlowSchema operationId: createFlowSchema parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -40979,43 +40981,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -41074,7 +41076,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -41113,41 +41115,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -41213,39 +41215,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -41305,7 +41307,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -41344,41 +41346,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -41444,39 +41446,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -41530,7 +41532,7 @@ paths: description: delete collection of PriorityLevelConfiguration operationId: deleteCollectionPriorityLevelConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -41543,10 +41545,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -41557,11 +41559,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -41580,21 +41582,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -41633,8 +41635,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -41675,17 +41677,17 @@ paths: description: list or watch objects of kind PriorityLevelConfiguration operationId: listPriorityLevelConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -41752,14 +41754,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -41798,39 +41800,39 @@ paths: description: create a PriorityLevelConfiguration operationId: createPriorityLevelConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -41902,43 +41904,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -41997,7 +41999,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -42036,41 +42038,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -42136,39 +42138,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -42228,7 +42230,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -42267,41 +42269,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -42367,39 +42369,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -42480,7 +42482,7 @@ paths: description: delete collection of FlowSchema operationId: deleteCollectionFlowSchema parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -42493,10 +42495,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -42507,11 +42509,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -42530,21 +42532,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -42583,8 +42585,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -42625,17 +42627,17 @@ paths: description: list or watch objects of kind FlowSchema operationId: listFlowSchema parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -42702,14 +42704,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -42748,39 +42750,39 @@ paths: description: create a FlowSchema operationId: createFlowSchema parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -42852,43 +42854,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -42947,7 +42949,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -42986,41 +42988,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -43086,39 +43088,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -43178,7 +43180,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -43217,41 +43219,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -43317,39 +43319,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -43403,7 +43405,7 @@ paths: description: delete collection of PriorityLevelConfiguration operationId: deleteCollectionPriorityLevelConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -43416,10 +43418,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -43430,11 +43432,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -43453,21 +43455,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -43506,8 +43508,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -43548,17 +43550,17 @@ paths: description: list or watch objects of kind PriorityLevelConfiguration operationId: listPriorityLevelConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -43625,14 +43627,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -43671,39 +43673,39 @@ paths: description: create a PriorityLevelConfiguration operationId: createPriorityLevelConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -43775,43 +43777,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -43870,7 +43872,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -43909,41 +43911,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -44009,39 +44011,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -44101,7 +44103,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -44140,41 +44142,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -44240,39 +44242,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -44376,7 +44378,7 @@ paths: description: delete collection of StorageVersion operationId: deleteCollectionStorageVersion parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -44389,10 +44391,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -44403,11 +44405,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -44426,21 +44428,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -44479,8 +44481,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -44521,17 +44523,17 @@ paths: description: list or watch objects of kind StorageVersion operationId: listStorageVersion parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -44598,14 +44600,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -44644,39 +44646,39 @@ paths: description: create a StorageVersion operationId: createStorageVersion parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -44748,43 +44750,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -44843,7 +44845,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -44882,41 +44884,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -44982,39 +44984,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -45074,7 +45076,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -45113,41 +45115,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -45213,39 +45215,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -45347,7 +45349,7 @@ paths: description: delete collection of IngressClass operationId: deleteCollectionIngressClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -45360,10 +45362,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -45374,11 +45376,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -45397,21 +45399,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -45450,8 +45452,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -45492,17 +45494,17 @@ paths: description: list or watch objects of kind IngressClass operationId: listIngressClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -45569,14 +45571,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -45615,39 +45617,39 @@ paths: description: create an IngressClass operationId: createIngressClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -45719,43 +45721,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -45814,7 +45816,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -45853,41 +45855,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -45953,39 +45955,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -46039,12 +46041,12 @@ paths: description: list or watch objects of kind Ingress operationId: listIngressForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -46077,7 +46079,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -46116,14 +46118,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -46163,13 +46165,13 @@ paths: description: delete collection of Ingress operationId: deleteCollectionNamespacedIngress parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -46182,10 +46184,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -46196,11 +46198,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -46219,21 +46221,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -46272,8 +46274,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -46314,23 +46316,23 @@ paths: description: list or watch objects of kind Ingress operationId: listNamespacedIngress parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -46397,14 +46399,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -46443,45 +46445,45 @@ paths: description: create an Ingress operationId: createNamespacedIngress parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -46553,49 +46555,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -46654,13 +46656,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -46699,47 +46701,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -46805,45 +46807,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -46903,13 +46905,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -46948,47 +46950,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -47054,45 +47056,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -47146,13 +47148,13 @@ paths: description: delete collection of NetworkPolicy operationId: deleteCollectionNamespacedNetworkPolicy parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -47165,10 +47167,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -47179,11 +47181,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -47202,21 +47204,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -47255,8 +47257,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -47297,23 +47299,23 @@ paths: description: list or watch objects of kind NetworkPolicy operationId: listNamespacedNetworkPolicy parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -47380,14 +47382,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -47426,45 +47428,45 @@ paths: description: create a NetworkPolicy operationId: createNamespacedNetworkPolicy parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -47536,49 +47538,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -47637,13 +47639,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -47682,47 +47684,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -47788,45 +47790,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -47880,12 +47882,12 @@ paths: description: list or watch objects of kind NetworkPolicy operationId: listNetworkPolicyForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -47918,7 +47920,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -47957,14 +47959,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -48035,7 +48037,7 @@ paths: description: delete collection of ClusterCIDR operationId: deleteCollectionClusterCIDR parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -48048,10 +48050,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -48062,11 +48064,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -48085,21 +48087,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -48138,8 +48140,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -48180,17 +48182,17 @@ paths: description: list or watch objects of kind ClusterCIDR operationId: listClusterCIDR parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -48257,14 +48259,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -48303,39 +48305,39 @@ paths: description: create a ClusterCIDR operationId: createClusterCIDR parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -48407,43 +48409,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -48502,7 +48504,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -48541,41 +48543,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -48641,39 +48643,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -48727,7 +48729,7 @@ paths: description: delete collection of IPAddress operationId: deleteCollectionIPAddress parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -48740,10 +48742,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -48754,11 +48756,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -48777,21 +48779,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -48830,8 +48832,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -48872,17 +48874,17 @@ paths: description: list or watch objects of kind IPAddress operationId: listIPAddress parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -48949,14 +48951,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -48995,39 +48997,39 @@ paths: description: create an IPAddress operationId: createIPAddress parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -49099,43 +49101,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -49194,7 +49196,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -49233,41 +49235,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -49333,39 +49335,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -49469,7 +49471,7 @@ paths: description: delete collection of RuntimeClass operationId: deleteCollectionRuntimeClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -49482,10 +49484,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -49496,11 +49498,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -49519,21 +49521,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -49572,8 +49574,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -49614,17 +49616,17 @@ paths: description: list or watch objects of kind RuntimeClass operationId: listRuntimeClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -49691,14 +49693,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -49737,39 +49739,39 @@ paths: description: create a RuntimeClass operationId: createRuntimeClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -49841,43 +49843,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -49936,7 +49938,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -49975,41 +49977,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -50075,39 +50077,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -50209,13 +50211,13 @@ paths: description: delete collection of PodDisruptionBudget operationId: deleteCollectionNamespacedPodDisruptionBudget parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -50228,10 +50230,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -50242,11 +50244,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -50265,21 +50267,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -50318,8 +50320,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -50360,23 +50362,23 @@ paths: description: list or watch objects of kind PodDisruptionBudget operationId: listNamespacedPodDisruptionBudget parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -50443,14 +50445,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -50489,45 +50491,45 @@ paths: description: create a PodDisruptionBudget operationId: createNamespacedPodDisruptionBudget parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -50599,49 +50601,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -50700,13 +50702,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -50745,47 +50747,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -50851,45 +50853,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -50949,13 +50951,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -50994,47 +50996,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -51100,45 +51102,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -51192,12 +51194,12 @@ paths: description: list or watch objects of kind PodDisruptionBudget operationId: listPodDisruptionBudgetForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -51230,7 +51232,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -51269,14 +51271,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -51365,7 +51367,7 @@ paths: description: delete collection of ClusterRoleBinding operationId: deleteCollectionClusterRoleBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -51378,10 +51380,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -51392,11 +51394,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -51415,21 +51417,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -51468,8 +51470,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -51510,17 +51512,17 @@ paths: description: list or watch objects of kind ClusterRoleBinding operationId: listClusterRoleBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -51587,14 +51589,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -51633,39 +51635,39 @@ paths: description: create a ClusterRoleBinding operationId: createClusterRoleBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -51737,43 +51739,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -51832,7 +51834,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -51871,41 +51873,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -51971,39 +51973,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -52057,7 +52059,7 @@ paths: description: delete collection of ClusterRole operationId: deleteCollectionClusterRole parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -52070,10 +52072,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -52084,11 +52086,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -52107,21 +52109,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -52160,8 +52162,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -52202,17 +52204,17 @@ paths: description: list or watch objects of kind ClusterRole operationId: listClusterRole parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -52279,14 +52281,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -52325,39 +52327,39 @@ paths: description: create a ClusterRole operationId: createClusterRole parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -52429,43 +52431,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -52524,7 +52526,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -52563,41 +52565,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -52663,39 +52665,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -52749,13 +52751,13 @@ paths: description: delete collection of RoleBinding operationId: deleteCollectionNamespacedRoleBinding parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -52768,10 +52770,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -52782,11 +52784,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -52805,21 +52807,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -52858,8 +52860,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -52900,23 +52902,23 @@ paths: description: list or watch objects of kind RoleBinding operationId: listNamespacedRoleBinding parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -52983,14 +52985,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -53029,45 +53031,45 @@ paths: description: create a RoleBinding operationId: createNamespacedRoleBinding parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -53139,49 +53141,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -53240,13 +53242,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -53285,47 +53287,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -53391,45 +53393,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -53483,13 +53485,13 @@ paths: description: delete collection of Role operationId: deleteCollectionNamespacedRole parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -53502,10 +53504,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -53516,11 +53518,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -53539,21 +53541,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -53592,8 +53594,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -53634,23 +53636,23 @@ paths: description: list or watch objects of kind Role operationId: listNamespacedRole parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -53717,14 +53719,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -53763,45 +53765,45 @@ paths: description: create a Role operationId: createNamespacedRole parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -53873,49 +53875,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -53974,13 +53976,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -54019,47 +54021,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -54125,45 +54127,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -54217,12 +54219,12 @@ paths: description: list or watch objects of kind RoleBinding operationId: listRoleBindingForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -54255,7 +54257,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -54294,14 +54296,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -54341,12 +54343,12 @@ paths: description: list or watch objects of kind Role operationId: listRoleForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -54379,7 +54381,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -54418,14 +54420,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -54521,13 +54523,13 @@ paths: description: delete collection of PodSchedulingContext operationId: deleteCollectionNamespacedPodSchedulingContext parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -54540,10 +54542,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -54554,11 +54556,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -54577,21 +54579,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -54630,8 +54632,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -54672,23 +54674,23 @@ paths: description: list or watch objects of kind PodSchedulingContext operationId: listNamespacedPodSchedulingContext parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -54755,14 +54757,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -54801,45 +54803,45 @@ paths: description: create a PodSchedulingContext operationId: createNamespacedPodSchedulingContext parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -54911,49 +54913,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -55012,13 +55014,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -55057,47 +55059,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -55163,45 +55165,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -55261,13 +55263,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -55306,47 +55308,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -55412,45 +55414,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -55504,13 +55506,13 @@ paths: description: delete collection of ResourceClaim operationId: deleteCollectionNamespacedResourceClaim parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -55523,10 +55525,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -55537,11 +55539,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -55560,21 +55562,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -55613,8 +55615,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -55655,23 +55657,23 @@ paths: description: list or watch objects of kind ResourceClaim operationId: listNamespacedResourceClaim parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -55738,14 +55740,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -55784,45 +55786,45 @@ paths: description: create a ResourceClaim operationId: createNamespacedResourceClaim parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -55894,49 +55896,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -55995,13 +55997,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -56040,47 +56042,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -56146,45 +56148,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -56244,13 +56246,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -56289,47 +56291,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -56395,45 +56397,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -56487,13 +56489,13 @@ paths: description: delete collection of ResourceClaimTemplate operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -56506,10 +56508,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -56520,11 +56522,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -56543,21 +56545,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -56596,8 +56598,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -56638,23 +56640,23 @@ paths: description: list or watch objects of kind ResourceClaimTemplate operationId: listNamespacedResourceClaimTemplate parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -56721,14 +56723,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -56767,45 +56769,45 @@ paths: description: create a ResourceClaimTemplate operationId: createNamespacedResourceClaimTemplate parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -56877,49 +56879,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -56978,13 +56980,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -57023,47 +57025,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -57129,45 +57131,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -57221,12 +57223,12 @@ paths: description: list or watch objects of kind PodSchedulingContext operationId: listPodSchedulingContextForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -57259,7 +57261,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -57298,14 +57300,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -57345,12 +57347,12 @@ paths: description: list or watch objects of kind ResourceClaim operationId: listResourceClaimForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -57383,7 +57385,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -57422,14 +57424,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -57469,12 +57471,12 @@ paths: description: list or watch objects of kind ResourceClaimTemplate operationId: listResourceClaimTemplateForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -57507,7 +57509,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -57546,14 +57548,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -57593,7 +57595,7 @@ paths: description: delete collection of ResourceClass operationId: deleteCollectionResourceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -57606,10 +57608,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -57620,11 +57622,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -57643,21 +57645,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -57696,8 +57698,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -57738,17 +57740,17 @@ paths: description: list or watch objects of kind ResourceClass operationId: listResourceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -57815,14 +57817,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -57861,39 +57863,39 @@ paths: description: create a ResourceClass operationId: createResourceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -57965,43 +57967,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -58060,7 +58062,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -58099,41 +58101,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -58199,39 +58201,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -58342,7 +58344,7 @@ paths: description: delete collection of PriorityClass operationId: deleteCollectionPriorityClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -58355,10 +58357,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -58369,11 +58371,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -58392,21 +58394,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -58445,8 +58447,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -58487,17 +58489,17 @@ paths: description: list or watch objects of kind PriorityClass operationId: listPriorityClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -58564,14 +58566,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -58610,39 +58612,39 @@ paths: description: create a PriorityClass operationId: createPriorityClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -58714,43 +58716,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -58809,7 +58811,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -58848,41 +58850,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -58948,39 +58950,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -59082,7 +59084,7 @@ paths: description: delete collection of CSIDriver operationId: deleteCollectionCSIDriver parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -59095,10 +59097,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -59109,11 +59111,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -59132,21 +59134,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -59185,8 +59187,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -59227,17 +59229,17 @@ paths: description: list or watch objects of kind CSIDriver operationId: listCSIDriver parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -59304,14 +59306,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -59350,39 +59352,39 @@ paths: description: create a CSIDriver operationId: createCSIDriver parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -59454,43 +59456,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -59549,7 +59551,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -59588,41 +59590,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -59688,39 +59690,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -59774,7 +59776,7 @@ paths: description: delete collection of CSINode operationId: deleteCollectionCSINode parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -59787,10 +59789,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -59801,11 +59803,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -59824,21 +59826,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -59877,8 +59879,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -59919,17 +59921,17 @@ paths: description: list or watch objects of kind CSINode operationId: listCSINode parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -59996,14 +59998,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -60042,39 +60044,39 @@ paths: description: create a CSINode operationId: createCSINode parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -60146,43 +60148,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -60241,7 +60243,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -60280,41 +60282,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -60380,39 +60382,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -60466,12 +60468,12 @@ paths: description: list or watch objects of kind CSIStorageCapacity operationId: listCSIStorageCapacityForAllNamespaces parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -60504,7 +60506,7 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -60543,14 +60545,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -60590,13 +60592,13 @@ paths: description: delete collection of CSIStorageCapacity operationId: deleteCollectionNamespacedCSIStorageCapacity parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -60609,10 +60611,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -60623,11 +60625,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -60646,21 +60648,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -60699,8 +60701,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -60741,23 +60743,23 @@ paths: description: list or watch objects of kind CSIStorageCapacity operationId: listNamespacedCSIStorageCapacity parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -60824,14 +60826,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -60870,45 +60872,45 @@ paths: description: create a CSIStorageCapacity operationId: createNamespacedCSIStorageCapacity parameters: - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -60980,49 +60982,49 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -61081,13 +61083,13 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -61126,47 +61128,47 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -61232,45 +61234,45 @@ paths: required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: "object name and auth scope, such as for teams and projects" in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -61324,7 +61326,7 @@ paths: description: delete collection of StorageClass operationId: deleteCollectionStorageClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -61337,10 +61339,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -61351,11 +61353,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -61374,21 +61376,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -61427,8 +61429,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -61469,17 +61471,17 @@ paths: description: list or watch objects of kind StorageClass operationId: listStorageClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -61546,14 +61548,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -61592,39 +61594,39 @@ paths: description: create a StorageClass operationId: createStorageClass parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -61696,43 +61698,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -61791,7 +61793,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -61830,41 +61832,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -61930,39 +61932,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -62016,7 +62018,7 @@ paths: description: delete collection of VolumeAttachment operationId: deleteCollectionVolumeAttachment parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -62029,10 +62031,10 @@ paths: name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -62043,11 +62045,11 @@ paths: name: fieldSelector schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: @@ -62066,21 +62068,21 @@ paths: name: limit schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -62119,8 +62121,8 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: @@ -62161,17 +62163,17 @@ paths: description: list or watch objects of kind VolumeAttachment operationId: listVolumeAttachment parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." in: query name: allowWatchBookmarks schema: @@ -62238,14 +62240,14 @@ paths: name: sendInitialEvents schema: type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query name: watch schema: @@ -62284,39 +62286,39 @@ paths: description: create a VolumeAttachment operationId: createVolumeAttachment parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -62388,43 +62390,43 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query name: propagationPolicy schema: @@ -62483,7 +62485,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -62522,41 +62524,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -62622,39 +62624,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -62714,7 +62716,7 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -62753,41 +62755,41 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -62853,39 +62855,39 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -63024,7 +63026,7 @@ paths: description: Delete collection of cluster scoped custom objects operationId: deleteCollectionClusterCustomObject parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -63048,35 +63050,35 @@ paths: required: true schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." in: query name: propagationPolicy schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -63106,7 +63108,7 @@ paths: description: list or watch cluster scoped custom objects operationId: listClusterCustomObject parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -63130,13 +63132,13 @@ paths: required: true schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, - this field is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ + \ in apiserver, this field is ignored." in: query name: allowWatchBookmarks schema: @@ -63169,12 +63171,12 @@ paths: name: limit schema: type: integer - - 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. When specified for list: - if unset, then the result is returned - from remote storage based on quorum-read flag; - if it''s 0, then we simply - return what we currently have in cache, no guarantee; - if set to non zero, - then the result is at least as fresh as given rv.' + - 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. When specified for list: - if unset, then the result is returned\ + \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ + \ return what we currently have in cache, no guarantee; - if set to non\ + \ zero, then the result is at least as fresh as given rv." in: query name: resourceVersion schema: @@ -63187,14 +63189,14 @@ paths: name: resourceVersionMatch schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications." in: query name: watch schema: @@ -63219,7 +63221,7 @@ paths: description: Creates a cluster scoped Custom object operationId: createClusterCustomObject parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -63243,19 +63245,19 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -63287,7 +63289,7 @@ paths: description: Delete collection of namespace scoped custom objects operationId: deleteCollectionNamespacedCustomObject parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -63317,35 +63319,35 @@ paths: required: true schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." in: query name: propagationPolicy schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -63375,7 +63377,7 @@ paths: description: list or watch namespace scoped custom objects operationId: listNamespacedCustomObject parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -63405,13 +63407,13 @@ paths: required: true schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, - this field is ignored. + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ + \ in apiserver, this field is ignored." in: query name: allowWatchBookmarks schema: @@ -63444,12 +63446,12 @@ paths: name: limit schema: type: integer - - 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. When specified for list: - if unset, then the result is returned - from remote storage based on quorum-read flag; - if it''s 0, then we simply - return what we currently have in cache, no guarantee; - if set to non zero, - then the result is at least as fresh as given rv.' + - 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. When specified for list: - if unset, then the result is returned\ + \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ + \ return what we currently have in cache, no guarantee; - if set to non\ + \ zero, then the result is at least as fresh as given rv." in: query name: resourceVersion schema: @@ -63462,14 +63464,14 @@ paths: name: resourceVersionMatch schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications." in: query name: watch schema: @@ -63494,7 +63496,7 @@ paths: description: Creates a namespace scoped Custom object operationId: createNamespacedCustomObject parameters: - - description: If 'true', then the output is pretty printed. + - description: "If 'true', then the output is pretty printed." in: query name: pretty schema: @@ -63524,17 +63526,17 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -63591,35 +63593,35 @@ paths: required: true schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." in: query name: propagationPolicy schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -63716,19 +63718,19 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -63791,17 +63793,17 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -63907,19 +63909,19 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -63988,17 +63990,17 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -64120,19 +64122,19 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -64201,17 +64203,17 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -64291,35 +64293,35 @@ paths: required: true schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query name: gracePeriodSeconds schema: type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query name: orphanDependents schema: type: boolean - - description: Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." in: query name: propagationPolicy schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: @@ -64428,19 +64430,19 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -64509,17 +64511,17 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -64637,19 +64639,19 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -64724,17 +64726,17 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -64869,19 +64871,19 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -64956,17 +64958,17 @@ paths: required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -65160,13 +65162,13 @@ components: sideEffects: sideEffects properties: admissionReviewVersions: - description: AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - versions the Webhook expects. API server will try to use first version - in the list which it supports. If none of the versions specified in this - list supported by API server, validation will fail for this object. If - a persisted webhook configuration specifies allowed versions and does - not include any versions known to the API Server, calls to the webhook - will fail and be subject to the failure policy. + description: "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`\ + \ versions the Webhook expects. API server will try to use first version\ + \ in the list which it supports. If none of the versions specified in\ + \ this list supported by API server, validation will fail for this object.\ + \ If a persisted webhook configuration specifies allowed versions and\ + \ does not include any versions known to the API Server, calls to the\ + \ webhook will fail and be subject to the failure policy." items: type: string type: array @@ -65208,9 +65210,9 @@ components: Defaults to "Equivalent" type: string name: - description: The name of the admission webhook. Name should be fully qualified, - e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the - webhook, and kubernetes.io is the name of the organization. Required. + description: "The name of the admission webhook. Name should be fully qualified,\ + \ e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of\ + \ the webhook, and kubernetes.io is the name of the organization. Required." type: string namespaceSelector: $ref: '#/components/schemas/v1.LabelSelector' @@ -65227,30 +65229,31 @@ components: Defaults to "Never". type: string rules: - description: Rules describes what operations on what resources/subresources - the webhook cares about. The webhook cares about an operation if it matches - _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and - MutatingAdmissionWebhooks from putting the cluster in a state which cannot - be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks - and MutatingAdmissionWebhooks are never called on admission requests for - ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + description: "Rules describes what operations on what resources/subresources\ + \ the webhook cares about. The webhook cares about an operation if it\ + \ matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks\ + \ and MutatingAdmissionWebhooks from putting the cluster in a state which\ + \ cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks\ + \ and MutatingAdmissionWebhooks are never called on admission requests\ + \ for ValidatingWebhookConfiguration and MutatingWebhookConfiguration\ + \ objects." items: $ref: '#/components/schemas/v1.RuleWithOperations' type: array sideEffects: - description: 'SideEffects states whether this webhook has side effects. - Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 - may also specify Some or Unknown). Webhooks with side effects MUST implement - a reconciliation system, since a request may be rejected by a future step - in the admission chain and the side effects therefore need to be undone. - Requests with the dryRun attribute will be auto-rejected if they match - a webhook with sideEffects == Unknown or Some.' + description: "SideEffects states whether this webhook has side effects.\ + \ Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1\ + \ may also specify Some or Unknown). Webhooks with side effects MUST implement\ + \ a reconciliation system, since a request may be rejected by a future\ + \ step in the admission chain and the side effects therefore need to be\ + \ undone. Requests with the dryRun attribute will be auto-rejected if\ + \ they match a webhook with sideEffects == Unknown or Some." type: string timeoutSeconds: - description: TimeoutSeconds specifies the timeout for this webhook. After - the timeout passes, the webhook call will be ignored or the API call will - fail based on the failure policy. The timeout value must be between 1 - and 30 seconds. Default to 10 seconds. + description: "TimeoutSeconds specifies the timeout for this webhook. After\ + \ the timeout passes, the webhook call will be ignored or the API call\ + \ will fail based on the failure policy. The timeout value must be between\ + \ 1 and 30 seconds. Default to 10 seconds." format: int32 type: integer required: @@ -65293,14 +65296,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -65468,14 +65471,14 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -65535,14 +65538,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -65738,14 +65741,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -65913,9 +65916,9 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -65923,9 +65926,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -65957,25 +65960,26 @@ components: - apiGroups properties: apiGroups: - description: APIGroups is the API groups the resources belong to. '*' is - all groups. If '*' is present, the length of the slice must be one. Required. + description: "APIGroups is the API groups the resources belong to. '*' is\ + \ all groups. If '*' is present, the length of the slice must be one.\ + \ Required." items: type: string 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. + 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. + 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 @@ -65994,12 +65998,12 @@ components: 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 "*". + 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 admissionregistration.v1.ServiceReference: @@ -66021,9 +66025,9 @@ components: to this service.' type: string port: - description: If specified, the port on the service that hosting webhook. - Default to 443 for backward compatibility. `port` should be a valid port - number (1-65535, inclusive). + description: "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: @@ -66112,13 +66116,13 @@ components: sideEffects: sideEffects properties: admissionReviewVersions: - description: AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - versions the Webhook expects. API server will try to use first version - in the list which it supports. If none of the versions specified in this - list supported by API server, validation will fail for this object. If - a persisted webhook configuration specifies allowed versions and does - not include any versions known to the API Server, calls to the webhook - will fail and be subject to the failure policy. + description: "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`\ + \ versions the Webhook expects. API server will try to use first version\ + \ in the list which it supports. If none of the versions specified in\ + \ this list supported by API server, validation will fail for this object.\ + \ If a persisted webhook configuration specifies allowed versions and\ + \ does not include any versions known to the API Server, calls to the\ + \ webhook will fail and be subject to the failure policy." items: type: string type: array @@ -66160,39 +66164,40 @@ components: Defaults to "Equivalent" type: string name: - description: The name of the admission webhook. Name should be fully qualified, - e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the - webhook, and kubernetes.io is the name of the organization. Required. + description: "The name of the admission webhook. Name should be fully qualified,\ + \ e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of\ + \ the webhook, and kubernetes.io is the name of the organization. Required." type: string namespaceSelector: $ref: '#/components/schemas/v1.LabelSelector' objectSelector: $ref: '#/components/schemas/v1.LabelSelector' rules: - description: Rules describes what operations on what resources/subresources - the webhook cares about. The webhook cares about an operation if it matches - _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and - MutatingAdmissionWebhooks from putting the cluster in a state which cannot - be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks - and MutatingAdmissionWebhooks are never called on admission requests for - ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + description: "Rules describes what operations on what resources/subresources\ + \ the webhook cares about. The webhook cares about an operation if it\ + \ matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks\ + \ and MutatingAdmissionWebhooks from putting the cluster in a state which\ + \ cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks\ + \ and MutatingAdmissionWebhooks are never called on admission requests\ + \ for ValidatingWebhookConfiguration and MutatingWebhookConfiguration\ + \ objects." items: $ref: '#/components/schemas/v1.RuleWithOperations' type: array sideEffects: - description: 'SideEffects states whether this webhook has side effects. - Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 - may also specify Some or Unknown). Webhooks with side effects MUST implement - a reconciliation system, since a request may be rejected by a future step - in the admission chain and the side effects therefore need to be undone. - Requests with the dryRun attribute will be auto-rejected if they match - a webhook with sideEffects == Unknown or Some.' + description: "SideEffects states whether this webhook has side effects.\ + \ Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1\ + \ may also specify Some or Unknown). Webhooks with side effects MUST implement\ + \ a reconciliation system, since a request may be rejected by a future\ + \ step in the admission chain and the side effects therefore need to be\ + \ undone. Requests with the dryRun attribute will be auto-rejected if\ + \ they match a webhook with sideEffects == Unknown or Some." type: string timeoutSeconds: - description: TimeoutSeconds specifies the timeout for this webhook. After - the timeout passes, the webhook call will be ignored or the API call will - fail based on the failure policy. The timeout value must be between 1 - and 30 seconds. Default to 10 seconds. + description: "TimeoutSeconds specifies the timeout for this webhook. After\ + \ the timeout passes, the webhook call will be ignored or the API call\ + \ will fail based on the failure policy. The timeout value must be between\ + \ 1 and 30 seconds. Default to 10 seconds." format: int32 type: integer required: @@ -66235,14 +66240,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -66408,14 +66413,14 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -66475,14 +66480,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -66676,14 +66681,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -66849,9 +66854,9 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -66859,9 +66864,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -66887,11 +66892,11 @@ components: url: url properties: caBundle: - description: '`caBundle` is a PEM encoded CA bundle which will be used to - validate the webhook''s server certificate. If unspecified, system trust - roots on the apiserver are used.' + description: "`caBundle` is a PEM encoded CA bundle which will be used to\ + \ validate the webhook's server certificate. If unspecified, system trust\ + \ roots on the apiserver are used." format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string service: $ref: '#/components/schemas/admissionregistration.v1.ServiceReference' @@ -66947,13 +66952,14 @@ components: warning: warning properties: fieldRef: - description: The path to the field that refers the expression. For example, - the reference to the expression of the first item of validations is "spec.validations[0].expression" + description: "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. + 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 @@ -66987,9 +66993,9 @@ components: - name type: object 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) + description: "MatchResources decides whether to run the admission control policy\ + \ on an object based on whether it meets the match criteria. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is excluded)" example: matchPolicy: matchPolicy resourceRules: @@ -67088,10 +67094,10 @@ components: key: matchLabels properties: excludeResourceRules: - description: ExcludeResourceRules describes what operations on what resources/subresources - the ValidatingAdmissionPolicy should not care about. The exclude rules - take precedence over include rules (if a resource matches both, it is - excluded) + description: "ExcludeResourceRules describes what operations on what resources/subresources\ + \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is\ + \ excluded)" items: $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' type: array @@ -67142,25 +67148,26 @@ components: - apiGroups properties: apiGroups: - description: APIGroups is the API groups the resources belong to. '*' is - all groups. If '*' is present, the length of the slice must be one. Required. + description: "APIGroups is the API groups the resources belong to. '*' is\ + \ all groups. If '*' is present, the length of the slice must be one.\ + \ Required." items: type: string 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. + 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. + 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 @@ -67186,12 +67193,12 @@ components: 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 "*". + 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 @@ -67309,14 +67316,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -67475,14 +67482,14 @@ components: observedGeneration: 0 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -67535,14 +67542,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -67674,14 +67681,14 @@ components: - validationActions properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -67735,14 +67742,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -67902,14 +67909,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -68041,9 +68048,9 @@ components: - validationActions properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -68051,9 +68058,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -68192,10 +68199,10 @@ components: paramRef: $ref: '#/components/schemas/v1alpha1.ParamRef' policyName: - description: PolicyName references a ValidatingAdmissionPolicy name which - the ValidatingAdmissionPolicyBinding binds to. If the referenced resource - does not exist, this binding is considered invalid and will be ignored - Required. + description: "PolicyName references a ValidatingAdmissionPolicy name which\ + \ the ValidatingAdmissionPolicyBinding binds to. If the referenced resource\ + \ does not exist, this binding is considered invalid and will be ignored\ + \ Required." type: string validationActions: description: |- @@ -68264,14 +68271,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -68458,14 +68465,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -68624,9 +68631,9 @@ components: observedGeneration: 0 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -68634,9 +68641,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -68937,37 +68944,38 @@ components: \ partial order.\nRequired." type: string message: - description: 'Message represents the message displayed when validation fails. - The message is required if the Expression contains line breaks. The message - must not contain line breaks. If unset, the message is "failed rule: {Rule}". - e.g. "must be a URL with the host matching spec.host" If the Expression - contains line breaks. Message is required. The message must not contain - line breaks. If unset, the message is "failed Expression: {Expression}".' + description: "Message represents the message displayed when validation fails.\ + \ The message is required if the Expression contains line breaks. The\ + \ message must not contain line breaks. If unset, the message is \"failed\ + \ rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"\ + \ If the Expression contains line breaks. Message is required. The message\ + \ must not contain line breaks. If unset, the message is \"failed Expression:\ + \ {Expression}\"." type: string messageExpression: - 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)+")"' + 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.' + 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 @@ -71109,8 +71117,8 @@ components: type: array x-kubernetes-list-type: set encodingVersion: - description: The API server encodes the object to this version when persisting - it in the backend (e.g., etcd). + description: "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 @@ -71153,14 +71161,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -71171,7 +71179,7 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: '{}' + spec: "{}" status: commonEncodingVersion: commonEncodingVersion conditions: @@ -71206,14 +71214,14 @@ components: - servedVersions properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -71252,15 +71260,15 @@ components: 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. + 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. + description: "Status of the condition, one of True, False, Unknown." type: string type: description: Type of the condition. @@ -71311,14 +71319,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -71329,7 +71337,7 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: '{}' + spec: "{}" status: commonEncodingVersion: commonEncodingVersion conditions: @@ -71392,14 +71400,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -71410,7 +71418,7 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: '{}' + spec: "{}" status: commonEncodingVersion: commonEncodingVersion conditions: @@ -71445,9 +71453,9 @@ components: - servedVersions properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -71455,9 +71463,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -71507,11 +71515,11 @@ components: - servedVersions properties: commonEncodingVersion: - description: If all API server instances agree on the same encoding storage - version, then this field is set to that version. Otherwise this field - is left empty. API servers should finish updating its storageVersionStatus - entry before serving write operations, so that this field will be in sync - with the reality. + description: "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. @@ -71531,15 +71539,16 @@ components: - apiServerID type: object 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. + 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." example: metadata: generation: 6 @@ -71571,14 +71580,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -71588,23 +71597,23 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: '{}' + data: "{}" kind: kind revision: 0 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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: description: Data is the serialized representation of the state. properties: {} type: object kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -71664,14 +71673,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -71681,7 +71690,7 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: '{}' + data: "{}" kind: kind revision: 0 - metadata: @@ -71714,14 +71723,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -71731,14 +71740,14 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: '{}' + data: "{}" kind: kind revision: 0 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -71746,9 +71755,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -71794,14 +71803,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -71844,14 +71853,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -71947,7 +71956,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -72048,14 +72058,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -72076,8 +72086,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -72419,14 +72431,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -72447,8 +72459,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -73308,8 +73322,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -73562,8 +73578,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -73817,8 +73835,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -74071,8 +74091,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -74695,14 +74717,14 @@ components: observedGeneration: 2 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -74738,7 +74760,7 @@ components: description: The reason for the condition's last transition. type: string status: - description: Status of the condition, one of True, False, Unknown. + description: "Status of the condition, one of True, False, Unknown." type: string type: description: Type of DaemonSet condition. @@ -74788,14 +74810,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -74838,14 +74860,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -74941,7 +74963,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -75042,14 +75065,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -75070,8 +75093,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -75413,14 +75438,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -75441,8 +75466,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -76302,8 +76329,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -76556,8 +76585,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -76811,8 +76842,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -77065,8 +77098,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -77717,14 +77752,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -77767,14 +77802,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -77870,7 +77905,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -77971,14 +78007,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -77999,8 +78035,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -78342,14 +78380,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -78370,8 +78408,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -79231,8 +79271,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -79485,8 +79527,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -79740,8 +79784,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -79994,8 +80040,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -80618,9 +80666,9 @@ components: observedGeneration: 2 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -80628,9 +80676,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -80677,14 +80725,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -80780,7 +80828,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -80881,14 +80930,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -80909,8 +80958,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -81252,14 +81303,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -81280,8 +81331,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -82141,8 +82194,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -82395,8 +82450,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -82650,8 +82707,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -82904,8 +82963,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -83507,10 +83568,10 @@ components: minReadySeconds: 0 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). + 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: @@ -83568,13 +83629,13 @@ components: x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: type 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/' + 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/' + 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: @@ -83584,8 +83645,8 @@ components: 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/' + 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: @@ -83663,14 +83724,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -83713,14 +83774,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -83816,7 +83877,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -83917,14 +83979,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -83945,8 +84007,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -84288,14 +84352,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -84316,8 +84380,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -85177,8 +85243,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -85431,8 +85499,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -85686,8 +85756,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -85940,8 +86012,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -86567,14 +86641,14 @@ components: observedGeneration: 7 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -86615,7 +86689,7 @@ components: description: The reason for the condition's last transition. type: string status: - description: Status of the condition, one of True, False, Unknown. + description: "Status of the condition, one of True, False, Unknown." type: string type: description: Type of deployment condition. @@ -86665,14 +86739,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -86715,14 +86789,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -86818,7 +86892,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -86919,14 +86994,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -86947,8 +87022,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -87290,14 +87367,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -87318,8 +87395,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -88179,8 +88258,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -88433,8 +88514,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -88688,8 +88771,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -88942,8 +89027,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -89597,14 +89684,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -89647,14 +89734,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -89750,7 +89837,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -89851,14 +89939,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -89879,8 +89967,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -90222,14 +90312,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -90250,8 +90340,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -91111,8 +91203,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -91365,8 +91459,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -91620,8 +91716,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -91874,8 +91972,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -92501,9 +92601,9 @@ components: observedGeneration: 7 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -92511,9 +92611,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -92561,14 +92661,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -92664,7 +92764,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -92765,14 +92866,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -92793,8 +92894,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -93136,14 +93239,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -93164,8 +93267,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -94025,8 +94130,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -94279,8 +94386,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -94534,8 +94643,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -94788,8 +94899,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -95394,10 +95507,10 @@ components: progressDeadlineSeconds: 6 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) + 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: @@ -95552,14 +95665,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -95602,14 +95715,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -95705,7 +95818,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -95806,14 +95920,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -95834,8 +95948,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -96177,14 +96293,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -96205,8 +96321,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -97066,8 +97184,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -97320,8 +97440,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -97575,8 +97697,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -97829,8 +97953,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -98444,14 +98570,14 @@ components: observedGeneration: 5 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -98488,7 +98614,7 @@ components: description: The reason for the condition's last transition. type: string status: - description: Status of the condition, one of True, False, Unknown. + description: "Status of the condition, one of True, False, Unknown." type: string type: description: Type of replica set condition. @@ -98538,14 +98664,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -98588,14 +98714,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -98691,7 +98817,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -98792,14 +98919,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -98820,8 +98947,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -99163,14 +99292,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -99191,8 +99320,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -100052,8 +100183,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -100306,8 +100439,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -100561,8 +100696,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -100815,8 +100952,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -101458,14 +101597,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -101508,14 +101647,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -101611,7 +101750,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -101712,14 +101852,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -101740,8 +101880,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -102083,14 +102225,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -102111,8 +102253,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -102972,8 +103116,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -103226,8 +103372,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -103481,8 +103629,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -103735,8 +103885,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -104350,19 +104502,19 @@ components: observedGeneration: 5 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -104409,14 +104561,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -104512,7 +104664,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -104613,14 +104766,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -104641,8 +104794,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -104984,14 +105139,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -105012,8 +105167,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -105873,8 +106030,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -106127,8 +106286,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -106382,8 +106543,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -106636,8 +106799,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -107234,16 +107399,16 @@ components: minReadySeconds: 0 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) + 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' + 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: @@ -107302,8 +107467,8 @@ components: 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' + 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: @@ -107316,17 +107481,17 @@ components: maxUnavailable: maxUnavailable properties: maxSurge: - 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. + 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 maxUnavailable: - 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. + 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 type: object @@ -107337,17 +107502,17 @@ components: maxUnavailable: maxUnavailable properties: maxSurge: - 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. + 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 maxUnavailable: - 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. + 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 type: object @@ -107359,18 +107524,18 @@ components: maxUnavailable: maxUnavailable properties: maxUnavailable: - 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. + 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 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. + 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 @@ -107412,14 +107577,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -107462,14 +107627,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -107565,7 +107730,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -107666,14 +107832,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -107694,8 +107860,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -108037,14 +108205,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -108065,8 +108233,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -108926,8 +109096,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -109180,8 +109352,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -109435,8 +109609,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -109689,8 +109865,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -110329,14 +110507,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -110359,8 +110537,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -110404,7 +110584,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null - metadata: generation: 6 finalizers: @@ -110435,14 +110616,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -110465,8 +110646,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -110510,7 +110693,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null status: currentRevision: currentRevision replicas: 4 @@ -110534,14 +110718,14 @@ components: observedGeneration: 3 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -110577,7 +110761,7 @@ components: description: The reason for the condition's last transition. type: string status: - description: Status of the condition, one of True, False, Unknown. + description: "Status of the condition, one of True, False, Unknown." type: string type: description: Type of statefulset condition. @@ -110627,14 +110811,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -110677,14 +110861,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -110780,7 +110964,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -110881,14 +111066,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -110909,8 +111094,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -111252,14 +111439,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -111280,8 +111467,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -112141,8 +112330,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -112395,8 +112586,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -112650,8 +112843,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -112904,8 +113099,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -113544,14 +113741,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -113574,8 +113771,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -113619,7 +113818,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null - metadata: generation: 6 finalizers: @@ -113650,14 +113850,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -113680,8 +113880,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -113725,7 +113927,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null status: currentRevision: currentRevision replicas: 4 @@ -113777,14 +113980,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -113827,14 +114030,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -113930,7 +114133,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -114031,14 +114235,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -114059,8 +114263,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -114402,14 +114608,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -114430,8 +114636,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -115291,8 +115499,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -115545,8 +115755,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -115800,8 +116012,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -116054,8 +116268,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -116694,14 +116910,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -116724,8 +116940,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -116769,7 +116987,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null - metadata: generation: 6 finalizers: @@ -116800,14 +117019,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -116830,8 +117049,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -116875,7 +117096,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null status: currentRevision: currentRevision replicas: 4 @@ -116899,9 +117121,9 @@ components: observedGeneration: 3 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -116909,9 +117131,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -116994,14 +117216,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -117097,7 +117319,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -117198,14 +117421,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -117226,8 +117449,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -117569,14 +117794,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -117597,8 +117822,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -118458,8 +118685,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -118712,8 +118941,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -118967,8 +119198,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -119221,8 +119454,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -119861,14 +120096,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -119891,8 +120126,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -119936,7 +120173,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null - metadata: generation: 6 finalizers: @@ -119967,14 +120205,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -119997,8 +120235,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -120042,7 +120282,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null properties: minReadySeconds: description: Minimum number of seconds for which a newly created pod should @@ -120056,20 +120297,20 @@ components: persistentVolumeClaimRetentionPolicy: $ref: '#/components/schemas/v1.StatefulSetPersistentVolumeClaimRetentionPolicy' 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. + 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. + 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: @@ -120082,23 +120323,24 @@ components: selector: $ref: '#/components/schemas/v1.LabelSelector' 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.' + 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: '#/components/schemas/v1.PodTemplateSpec' updateStrategy: $ref: '#/components/schemas/v1.StatefulSetUpdateStrategy' 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. + 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: '#/components/schemas/v1.PersistentVolumeClaim' type: array @@ -120156,13 +120398,13 @@ components: 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). + 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. + 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: @@ -120175,8 +120417,8 @@ components: 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) + 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 @@ -120364,14 +120606,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -120397,14 +120639,14 @@ components: token: token properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -120436,11 +120678,12 @@ components: - audiences properties: audiences: - description: Audiences are the intendend audiences of the token. A recipient - of a token must identify themself with an identifier in the list of audiences - of the token, and otherwise should reject the token. A token issued for - multiple audiences may be used to authenticate against any of the audiences - listed but implies a high degree of trust between the target audiences. + description: "Audiences are the intendend audiences of the token. A recipient\ + \ of a token must identify themself with an identifier in the list of\ + \ audiences of the token, and otherwise should reject the token. A token\ + \ issued for multiple audiences may be used to authenticate against any\ + \ of the audiences listed but implies a high degree of trust between the\ + \ target audiences." items: type: string type: array @@ -120474,9 +120717,9 @@ components: - token type: object 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.' + 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." example: metadata: generation: 6 @@ -120508,14 +120751,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -120549,14 +120792,14 @@ components: username: username properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -120582,11 +120825,11 @@ components: token: token properties: audiences: - description: Audiences is a list of the identifiers that the resource server - presented with the token identifies as. Audience-aware token authenticators - will verify that the token was intended for at least one of the audiences - in this list. If no audiences are provided, the audience will default - to the audience of the Kubernetes apiserver. + description: "Audiences is a list of the identifiers that the resource server\ + \ presented with the token identifies as. Audience-aware token authenticators\ + \ will verify that the token was intended for at least one of the audiences\ + \ in this list. If no audiences are provided, the audience will default\ + \ to the audience of the Kubernetes apiserver." items: type: string type: array @@ -120614,15 +120857,15 @@ components: username: username properties: audiences: - description: Audiences are audience identifiers chosen by the authenticator - that are compatible with both the TokenReview and token. An identifier - is any identifier in the intersection of the TokenReviewSpec audiences - and the token's audiences. A client of the TokenReview API that sets the - spec.audiences field should validate that a compatible audience identifier - is returned in the status.audiences field to ensure that the TokenReview - server is audience aware. If a TokenReview returns an empty status.audience - field where status.authenticated is "true", the token is valid against - the audience of the Kubernetes API server. + description: "Audiences are audience identifiers chosen by the authenticator\ + \ that are compatible with both the TokenReview and token. An identifier\ + \ is any identifier in the intersection of the TokenReviewSpec audiences\ + \ and the token's audiences. A client of the TokenReview API that sets\ + \ the spec.audiences field should validate that a compatible audience\ + \ identifier is returned in the status.audiences field to ensure that\ + \ the TokenReview server is audience aware. If a TokenReview returns an\ + \ empty status.audience field where status.authenticated is \"true\",\ + \ the token is valid against the audience of the Kubernetes API server." items: type: string type: array @@ -120663,9 +120906,9 @@ components: type: string type: array uid: - description: A unique value that identifies this user across time. If this - user is deleted and another user by the same name is added, they will - have different UIDs. + description: "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 @@ -120673,11 +120916,11 @@ components: type: string type: object 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. + 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." example: metadata: generation: 6 @@ -120709,14 +120952,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -120740,14 +120983,14 @@ components: username: username properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -120779,11 +121022,11 @@ components: $ref: '#/components/schemas/v1.UserInfo' type: object 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. + 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." example: metadata: generation: 6 @@ -120815,14 +121058,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -120846,14 +121089,14 @@ components: username: username properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -120920,14 +121163,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -120966,14 +121209,14 @@ components: denied: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -121016,15 +121259,15 @@ components: - nonResourceURLs properties: nonResourceURLs: - description: NonResourceURLs is a set of partial urls that a user should - have access to. *s are allowed, but only as the full, final step in the - path. "*" means all. + description: "NonResourceURLs is a set of partial urls that a user should\ + \ have access to. *s are allowed, but only as the full, final step in\ + \ the path. \"*\" means all." items: type: string type: array verbs: - description: 'Verb is a list of kubernetes non-resource API verbs, like: - get, post, put, delete, patch, head, options. "*" means all.' + 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 @@ -121051,11 +121294,11 @@ components: or deleted for a "delete". "" (empty) means all. type: string namespace: - description: Namespace is the namespace of the action being requested. Currently, - there is no distinction between no namespace and all namespaces "" (empty) - is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped - resources "" (empty) means "all" for namespace scoped resources from a - SubjectAccessReview or SelfSubjectAccessReview + description: "Namespace is the namespace of the action being requested.\ + \ Currently, there is no distinction between no namespace and all namespaces\ + \ \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty)\ + \ is empty for cluster-scoped resources \"\" (empty) means \"all\" for\ + \ namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview" type: string resource: description: Resource is one of the existing resource types. "*" means @@ -121066,17 +121309,17 @@ components: none. type: string verb: - description: 'Verb is a kubernetes resource API verb, like: get, list, watch, - create, update, delete, proxy. "*" means all.' + description: "Verb is a kubernetes resource API verb, like: get, list, watch,\ + \ create, update, delete, proxy. \"*\" means all." type: string version: description: Version is the API Version of the Resource. "*" means all. type: string type: object 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. + 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." example: resourceNames: - resourceNames @@ -121092,10 +121335,10 @@ components: - apiGroups properties: apiGroups: - description: APIGroups is the name of the APIGroup that contains the resources. If - multiple API groups are specified, any action requested against one of - the enumerated resources in any API group will be allowed. "*" means - all. + description: "APIGroups is the name of the APIGroup that contains the resources.\ + \ If multiple API groups are specified, any action requested against\ + \ one of the enumerated resources in any API group will be allowed. \"\ + *\" means all." items: type: string type: array @@ -121114,8 +121357,8 @@ components: type: string type: array verbs: - description: 'Verb is a list of kubernetes resource API verbs, like: get, - list, watch, create, update, delete, proxy. "*" means all.' + 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 @@ -121123,10 +121366,10 @@ components: - verbs type: object 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 + 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" example: metadata: generation: 6 @@ -121158,14 +121401,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -121195,14 +121438,14 @@ components: denied: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -121242,15 +121485,15 @@ components: $ref: '#/components/schemas/v1.ResourceAttributes' type: object 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. + 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." example: metadata: generation: 6 @@ -121282,14 +121525,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -121345,14 +121588,14 @@ components: evaluationError: evaluationError properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -121412,14 +121655,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -121458,14 +121701,14 @@ components: denied: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -121530,9 +121773,9 @@ components: description: UID information about the requesting user. type: string user: - description: User is the user you're testing for. If you specify "User" - but not "Groups", then is it interpreted as "What if User were not a member - of any groups + description: "User is the user you're testing for. If you specify \"User\"\ + \ but not \"Groups\", then is it interpreted as \"What if User were not\ + \ a member of any groups" type: string type: object v1.SubjectAccessReviewStatus: @@ -121544,21 +121787,21 @@ components: denied: true properties: allowed: - description: Allowed is required. True if the action would be allowed, false - otherwise. + description: "Allowed is required. True if the action would be allowed,\ + \ false otherwise." type: boolean denied: - description: Denied is optional. True if the action would be denied, otherwise - false. If both allowed is false and denied is false, then the authorizer - has no opinion on whether to authorize the action. Denied may not be true - if Allowed is true. + description: "Denied is optional. True if the action would be denied, otherwise\ + \ false. If both allowed is false and denied is false, then the authorizer\ + \ has no opinion on whether to authorize the action. Denied may not be\ + \ true if Allowed is true." type: boolean evaluationError: - description: EvaluationError is an indication that some error occurred during - the authorization check. It is entirely possible to get an error and be - able to continue determine authorization status in spite of it. For instance, - RBAC can be missing a role, but enough roles are still present and bound - to reason about the request. + description: "EvaluationError is an indication that some error occurred\ + \ during the authorization check. It is entirely possible to get an error\ + \ and be able to continue determine authorization status in spite of it.\ + \ For instance, RBAC can be missing a role, but enough roles are still\ + \ present and bound to reason about the request." type: string reason: description: Reason is optional. It indicates why a request was allowed @@ -121568,11 +121811,11 @@ components: - allowed type: object 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. + 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." example: incomplete: true nonResourceRules: @@ -121616,27 +121859,27 @@ components: evaluationError: evaluationError properties: evaluationError: - description: EvaluationError can appear in combination with Rules. It indicates - an error occurred during rule evaluation, such as an authorizer that doesn't - support rule evaluation, and that ResourceRules and/or NonResourceRules - may be incomplete. + description: "EvaluationError can appear in combination with Rules. It indicates\ + \ an error occurred during rule evaluation, such as an authorizer that\ + \ doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules\ + \ may be incomplete." type: string incomplete: - description: Incomplete is true when the rules returned by this call are - incomplete. This is most commonly encountered when an authorizer, such - as an external authorizer, doesn't support rules evaluation. + description: "Incomplete is true when the rules returned by this call are\ + \ incomplete. This is most commonly encountered when an authorizer, such\ + \ as an external authorizer, doesn't support rules evaluation." type: boolean nonResourceRules: - description: NonResourceRules is the list of actions the subject is allowed - to perform on non-resources. The list ordering isn't significant, may - contain duplicates, and possibly be incomplete. + description: "NonResourceRules is the list of actions the subject is allowed\ + \ to perform on non-resources. The list ordering isn't significant, may\ + \ contain duplicates, and possibly be incomplete." items: $ref: '#/components/schemas/v1.NonResourceRule' type: array resourceRules: - description: ResourceRules is the list of actions the subject is allowed - to perform on resources. The list ordering isn't significant, may contain - duplicates, and possibly be incomplete. + description: "ResourceRules is the list of actions the subject is allowed\ + \ to perform on resources. The list ordering isn't significant, may contain\ + \ duplicates, and possibly be incomplete." items: $ref: '#/components/schemas/v1.ResourceRule' type: array @@ -121657,10 +121900,10 @@ components: 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' + 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' + 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 @@ -121700,14 +121943,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -121734,14 +121977,14 @@ components: observedGeneration: 7 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -121797,14 +122040,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -121859,14 +122102,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -121893,9 +122136,9 @@ components: observedGeneration: 7 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -121903,9 +122146,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -121964,9 +122207,10 @@ components: observedGeneration: 7 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. + 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: @@ -122027,14 +122271,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -122052,14 +122296,14 @@ components: selector: selector properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -122097,22 +122341,23 @@ components: 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/' + 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 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. + 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." example: container: container name: name @@ -122137,12 +122382,12 @@ components: - target type: object 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. + 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." example: container: container current: @@ -122177,19 +122422,19 @@ components: 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' + 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' + 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 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). + 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)." example: metric: name: name @@ -122282,12 +122527,12 @@ components: - value type: object 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. + 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." example: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -122300,31 +122545,31 @@ components: value: 6 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 + 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: '#/components/schemas/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. + 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).' + 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 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. + 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." example: metadata: generation: 6 @@ -122356,14 +122601,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -122756,14 +123001,14 @@ components: key: matchLabels properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -122832,7 +123077,7 @@ components: 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) + description: "status is the status of the condition (True, False, Unknown)" type: string type: description: type describes the current condition @@ -122883,14 +123128,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -123311,14 +123556,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -123711,9 +123956,9 @@ components: key: matchLabels properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -123721,9 +123966,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -123949,14 +124194,14 @@ components: 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. + 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: '#/components/schemas/v2.MetricSpec' type: array @@ -124159,9 +124404,9 @@ components: key: matchLabels 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. + 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: '#/components/schemas/v2.HorizontalPodAutoscalerCondition' type: array @@ -124178,19 +124423,19 @@ components: 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. + 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. + 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: - 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. + 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." format: date-time type: string observedGeneration: @@ -124331,10 +124576,10 @@ components: resource: $ref: '#/components/schemas/v2.ResourceMetricSource' 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' + 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 @@ -124435,17 +124680,17 @@ components: resource: $ref: '#/components/schemas/v2.ResourceMetricStatus' 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' + 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 v2.MetricTarget: - description: MetricTarget defines the target value, average value, or average - utilization of a specific metric + description: "MetricTarget defines the target value, average value, or average\ + \ utilization of a specific metric" example: averageValue: averageValue averageUtilization: 5 @@ -124453,10 +124698,10 @@ components: value: value 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 + 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: @@ -124498,8 +124743,8 @@ components: format: quantity type: string type: - description: type represents whether the metric type is Utilization, Value, - or AverageValue + description: "type represents whether the metric type is Utilization, Value,\ + \ or AverageValue" type: string value: description: "Quantity is a fixed-point representation of a number. It provides\ @@ -124550,9 +124795,9 @@ components: value: value properties: averageUtilization: - description: currentAverageUtilization is the current value of the average - of the resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. + description: "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: @@ -124633,8 +124878,8 @@ components: type: string type: object v2.ObjectMetricSource: - description: ObjectMetricSource indicates how to scale on a metric describing - a kubernetes object (for example, hits-per-second on an Ingress object). + description: "ObjectMetricSource indicates how to scale on a metric describing\ + \ a kubernetes object (for example, hits-per-second on an Ingress object)." example: describedObject: apiVersion: apiVersion @@ -124674,8 +124919,8 @@ components: - target type: object v2.ObjectMetricStatus: - description: ObjectMetricStatus indicates the current value of a metric describing - a kubernetes object (for example, hits-per-second on an Ingress object). + description: "ObjectMetricStatus indicates the current value of a metric describing\ + \ a kubernetes object (for example, hits-per-second on an Ingress object)." example: describedObject: apiVersion: apiVersion @@ -124714,9 +124959,10 @@ components: - metric type: object 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. + 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." example: metric: name: name @@ -124749,8 +124995,8 @@ components: - target type: object 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). + description: "PodsMetricStatus indicates the current value of a metric describing\ + \ each pod in the current scale target (for example, transactions-processed-per-second)." example: current: averageValue: averageValue @@ -124782,13 +125028,13 @@ components: - metric type: object 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. + 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." example: name: name target: @@ -124807,11 +125053,11 @@ components: - target type: object 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. + 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." example: current: averageValue: averageValue @@ -124861,14 +125107,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -124913,14 +125159,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -124962,14 +125208,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -125065,7 +125311,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -125166,14 +125413,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -125194,8 +125441,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -125537,14 +125786,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -125565,8 +125814,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -126426,8 +126677,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -126680,8 +126933,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -126935,8 +127190,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -127189,8 +127446,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -127844,14 +128103,14 @@ components: lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -127907,14 +128166,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -127959,14 +128218,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -128008,14 +128267,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -128111,7 +128370,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -128212,14 +128472,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -128240,8 +128500,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -128583,14 +128845,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -128611,8 +128873,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -129472,8 +129736,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -129726,8 +129992,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -129981,8 +130249,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -130235,8 +130505,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -130918,14 +131190,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -130970,14 +131242,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -131019,14 +131291,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -131122,7 +131394,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -131223,14 +131496,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -131251,8 +131524,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -131594,14 +131869,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -131622,8 +131897,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -132483,8 +132760,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -132737,8 +133016,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -132992,8 +133273,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -133246,8 +133529,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -133901,9 +134186,9 @@ components: lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -133911,9 +134196,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -133963,14 +134248,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -134012,14 +134297,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -134115,7 +134400,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -134216,14 +134502,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -134244,8 +134530,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -134587,14 +134875,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -134615,8 +134903,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -135476,8 +135766,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -135730,8 +136022,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -135985,8 +136279,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -136239,8 +136535,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -136889,7 +137187,7 @@ components: jobTemplate: $ref: '#/components/schemas/v1.JobTemplateSpec' schedule: - description: The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + 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 @@ -136903,20 +137201,21 @@ components: 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. + 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 + 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: - jobTemplate @@ -136992,14 +137291,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -137043,14 +137342,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -137146,7 +137445,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -137247,14 +137547,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -137275,8 +137575,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -137618,14 +137920,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -137646,8 +137948,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -138507,8 +138811,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -138761,8 +139067,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -139016,8 +139324,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -139270,8 +139580,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -139932,14 +140244,14 @@ components: succeeded: 5 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -139979,10 +140291,10 @@ components: description: (brief) reason for the condition's last transition. type: string status: - description: Status of the condition, one of True, False, Unknown. + description: "Status of the condition, one of True, False, Unknown." type: string type: - description: Type of job condition, Complete or Failed. + description: "Type of job condition, Complete or Failed." type: string required: - status @@ -140029,14 +140341,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -140080,14 +140392,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -140183,7 +140495,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -140284,14 +140597,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -140312,8 +140625,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -140655,14 +140970,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -140683,8 +140998,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -141544,8 +141861,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -141798,8 +142117,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -142053,8 +142374,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -142307,8 +142630,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -142997,14 +143322,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -143048,14 +143373,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -143151,7 +143476,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -143252,14 +143578,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -143280,8 +143606,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -143623,14 +143951,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -143651,8 +143979,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -144512,8 +144842,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -144766,8 +145098,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -145021,8 +145355,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -145275,8 +145611,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -145937,9 +146275,9 @@ components: succeeded: 5 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -145947,9 +146285,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -145997,14 +146335,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -146100,7 +146438,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -146201,14 +146540,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -146229,8 +146568,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -146572,14 +146913,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -146600,8 +146941,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -147461,8 +147804,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -147715,8 +148060,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -147970,8 +148317,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -148224,8 +148573,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -148856,11 +149207,11 @@ components: activeDeadlineSeconds: 6 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. + 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: @@ -148889,23 +149240,23 @@ components: 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 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/' + 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' + 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 @@ -148921,11 +149272,11 @@ components: 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/' + 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: @@ -148942,25 +149293,25 @@ components: selector: $ref: '#/components/schemas/v1.LabelSelector' 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. + 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: '#/components/schemas/v1.PodTemplateSpec' 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. + 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: @@ -149004,12 +149355,13 @@ components: 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". + 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: description: Represents time when the job was completed. It is not guaranteed @@ -149019,12 +149371,13 @@ components: format: date-time type: string 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/' + 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: '#/components/schemas/v1.JobCondition' type: array @@ -149054,11 +149407,11 @@ components: format: int32 type: integer startTime: - description: Represents time when the job controller started processing - a job. When a Job is created in the suspended state, this field is not - set until the first time it is resumed. This field is reset every time - a Job is resumed from suspension. It is represented in RFC3339 form and - is in UTC. + 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." format: date-time type: string succeeded: @@ -149109,14 +149462,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -149158,14 +149511,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -149261,7 +149614,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -149362,14 +149716,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -149390,8 +149744,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -149733,14 +150089,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -149761,8 +150117,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -150622,8 +150980,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -150876,8 +151236,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -151131,8 +151493,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -151385,8 +151749,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -152051,11 +152417,11 @@ components: status: status 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. + 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: '#/components/schemas/v1.PodFailurePolicyRule' type: array @@ -152064,12 +152430,12 @@ components: - rules type: object 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. + 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." example: containerName: containerName values: @@ -152078,9 +152444,10 @@ components: operator: operator 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. + 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: |- @@ -152131,9 +152498,9 @@ components: - type type: object 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. + 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." example: onExitCodes: containerName: containerName @@ -152242,14 +152609,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -152293,14 +152660,14 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -152329,10 +152696,10 @@ components: status: status properties: lastTransitionTime: - 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. + 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." format: date-time type: string lastUpdateTime: @@ -152347,8 +152714,8 @@ components: 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". + 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: |- @@ -152410,14 +152777,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -152489,14 +152856,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -152540,9 +152907,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -152550,9 +152917,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -152618,11 +152985,11 @@ components: 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. + 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 - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string x-kubernetes-list-type: atomic signerName: @@ -152682,8 +153049,8 @@ components: - signerName type: object v1.CertificateSigningRequestStatus: - description: CertificateSigningRequestStatus contains conditions used to indicate - approved/denied/failed status of the request, and the issued certificate. + description: "CertificateSigningRequestStatus contains conditions used to indicate\ + \ approved/denied/failed status of the request, and the issued certificate." example: certificate: certificate conditions: @@ -152725,12 +153092,12 @@ components: -----END CERTIFICATE----- ) format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string x-kubernetes-list-type: atomic conditions: - description: conditions applied to the request. Known conditions are "Approved", - "Denied", and "Failed". + description: "conditions applied to the request. Known conditions are \"\ + Approved\", \"Denied\", and \"Failed\"." items: $ref: '#/components/schemas/v1.CertificateSigningRequestCondition' type: array @@ -152776,14 +153143,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -152799,14 +153166,14 @@ components: signerName: signerName properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -152862,14 +153229,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -152913,14 +153280,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -152936,9 +153303,9 @@ components: signerName: signerName properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -152946,9 +153313,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -153023,14 +153390,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -153049,14 +153416,14 @@ components: holderIdentity: holderIdentity properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -153110,14 +153477,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -153164,14 +153531,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -153190,9 +153557,9 @@ components: holderIdentity: holderIdentity properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -153200,9 +153567,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -153261,25 +153628,26 @@ components: fsType: fsType 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' + 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).' + 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' + 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' + 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 @@ -153690,8 +154058,8 @@ components: fsType: fsType properties: cachingMode: - description: 'cachingMode is the Host Caching mode: None, Read Only, Read - Write.' + 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 @@ -153700,14 +154068,14 @@ components: 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. + 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' + 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 @@ -153769,9 +154137,9 @@ components: - shareName type: object 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. + 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." example: metadata: generation: 6 @@ -153803,14 +154171,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -153831,14 +154199,14 @@ components: namespace: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -153887,8 +154255,8 @@ components: 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". + description: "fsType to mount. Must be a filesystem type supported by the\ + \ host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\"." type: string nodeExpandSecretRef: $ref: '#/components/schemas/v1.SecretReference' @@ -153915,8 +154283,8 @@ components: - volumeHandle type: object v1.CSIVolumeSource: - description: Represents a source location of a volume to mount, managed by an - external CSI driver + description: "Represents a source location of a volume to mount, managed by\ + \ an external CSI driver" example: driver: driver nodePublishSecretRef: @@ -153931,9 +154299,9 @@ components: 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. + 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: '#/components/schemas/v1.LocalObjectReference' @@ -153988,28 +154356,28 @@ components: - monitors 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' + 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 path: - description: 'path is Optional: Used as the mounted root, rather than the - full Ceph tree, default is /' + 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' + 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' + 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: '#/components/schemas/v1.SecretReference' 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' + 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 @@ -154029,28 +154397,28 @@ components: - monitors 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' + 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 path: - description: 'path is Optional: Used as the mounted root, rather than the - full Ceph tree, default is /' + 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' + 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' + 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: '#/components/schemas/v1.LocalObjectReference' 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' + 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 @@ -154069,19 +154437,20 @@ components: fsType: fsType 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' + 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' + 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: '#/components/schemas/v1.SecretReference' volumeID: - description: 'volumeID used to identify the volume in cinder. More info: - https://examples.k8s.io/mysql-cinder-pd/README.md' + description: "volumeID used to identify the volume in cinder. More info:\ + \ https://examples.k8s.io/mysql-cinder-pd/README.md" type: string required: - volumeID @@ -154099,19 +154468,20 @@ components: fsType: fsType 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' + 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' + 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: '#/components/schemas/v1.LocalObjectReference' volumeID: - description: 'volumeID used to identify the volume in cinder. More info: - https://examples.k8s.io/mysql-cinder-pd/README.md' + description: "volumeID used to identify the volume in cinder. More info:\ + \ https://examples.k8s.io/mysql-cinder-pd/README.md" type: string required: - volumeID @@ -154160,27 +154530,27 @@ components: status: status properties: error: - description: Condition error code for a component. For example, a health - check error code. + 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. + 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".' + 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"' + description: "Type of condition for a component. Valid value: \"Healthy\"" type: string required: - status - type type: object v1.ComponentStatus: - description: 'ComponentStatus (and ComponentStatusList) holds the cluster validation - info. Deprecated: This API is deprecated in v1.19+' + description: "ComponentStatus (and ComponentStatusList) holds the cluster validation\ + \ info. Deprecated: This API is deprecated in v1.19+" example: metadata: generation: 6 @@ -154212,14 +154582,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -154241,9 +154611,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -154253,9 +154623,9 @@ components: x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: type kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -154267,8 +154637,8 @@ components: x-implements: - io.kubernetes.client.common.KubernetesObject 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+' + description: "Status of all the conditions for the component as a list of ComponentStatus\ + \ objects. Deprecated: This API is deprecated in v1.19+" example: metadata: remainingItemCount: 1 @@ -154308,14 +154678,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -154365,14 +154735,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -154394,9 +154764,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -154404,9 +154774,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -154453,14 +154823,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -154477,40 +154847,41 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string - description: BinaryData contains the binary data. Each key must consist - of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte - sequences that are not in the UTF-8 range. The keys stored in BinaryData - must not overlap with the ones in the Data field, this is enforced during - validation process. Using this field will require 1.10+ apiserver and - kubelet. + description: "BinaryData contains the binary data. Each key must consist\ + \ of alphanumeric characters, '-', '_' or '.'. BinaryData can contain\ + \ byte sequences that are not in the UTF-8 range. The keys stored in BinaryData\ + \ must not overlap with the ones in the Data field, this is enforced during\ + \ validation process. Using this field will require 1.10+ apiserver and\ + \ kubelet." 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. + 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. + 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -154531,7 +154902,7 @@ components: optional: true properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + 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 @@ -154548,7 +154919,7 @@ components: 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' + 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 @@ -154599,14 +154970,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -154652,14 +155023,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -154676,9 +155047,9 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -154686,9 +155057,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -154702,9 +155073,9 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject 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' + 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" example: uid: uid kubeletConfigKey: kubeletConfigKey @@ -154726,12 +155097,12 @@ components: 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. + 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. + 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: - kubeletConfigKey @@ -154755,18 +155126,18 @@ components: key: key 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 '..'. + 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: '#/components/schemas/v1.KeyToPath' type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + 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 @@ -154791,28 +155162,28 @@ components: key: key 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.' + 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 '..'. + 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: '#/components/schemas/v1.KeyToPath' type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + 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 @@ -154864,8 +155235,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -155078,26 +155451,26 @@ components: optional: true 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' + 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 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' + 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 @@ -155110,25 +155483,25 @@ components: x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: name 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. + 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: '#/components/schemas/v1.EnvFromSource' type: array 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.' + 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' + 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: '#/components/schemas/v1.Lifecycle' @@ -155186,41 +155559,41 @@ components: startupProbe: $ref: '#/components/schemas/v1.Probe' 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. + 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 + 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.' + 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. + 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. + 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 @@ -155239,9 +155612,9 @@ components: x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: mountPath 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. + 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 @@ -155255,8 +155628,8 @@ components: sizeBytes: 6 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"] + 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 @@ -155275,26 +155648,27 @@ components: hostPort: 7 properties: containerPort: - description: Number of port to expose on the pod's IP address. This must - be a valid port number, 0 < x < 65536. + 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. + 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. + 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". + description: "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to\ + \ \"TCP\"." type: string required: - containerPort @@ -155307,21 +155681,21 @@ components: restartPolicy: restartPolicy properties: resourceName: - description: 'Name of the resource to which this resource resize policy - applies. Supported values: cpu, memory.' + 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. + description: "Restart policy to apply when specified resource is resized.\ + \ If not specified, it defaults to NotRequired." type: string required: - resourceName - restartPolicy type: object 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. + 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." example: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -155410,7 +155784,8 @@ components: description: ContainerStatus contains details for the current status of this container. example: - allocatedResources: {} + allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -155420,8 +155795,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -155462,19 +155839,19 @@ components: 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"). + 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.' + 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. + 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: '#/components/schemas/v1.ContainerState' @@ -155492,20 +155869,20 @@ components: resources: $ref: '#/components/schemas/v1.ResourceRequirements' 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. + 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. + 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: '#/components/schemas/v1.ContainerState' @@ -155576,18 +155953,18 @@ components: fieldRef: $ref: '#/components/schemas/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.' + 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 ''..''' + 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: '#/components/schemas/v1.ResourceFieldSelector' @@ -155620,14 +155997,14 @@ components: fieldPath: fieldPath 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.' + 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: @@ -155644,9 +156021,9 @@ components: medium: medium 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' + 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: description: "Quantity is a fixed-point representation of a number. It provides\ @@ -155706,13 +156083,13 @@ components: 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). + 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.' + description: "Optional: Node hosting this endpoint. This can be used to\ + \ determine endpoints local to a node." type: string targetRef: $ref: '#/components/schemas/v1.ObjectReference' @@ -155751,8 +156128,8 @@ components: format: int32 type: integer protocol: - description: The IP protocol for this port. Must be UDP, TCP, or SCTP. Default - is TCP. + description: "The IP protocol for this port. Must be UDP, TCP, or SCTP.\ + \ Default is TCP." type: string required: - port @@ -155831,9 +156208,9 @@ components: $ref: '#/components/schemas/v1.EndpointAddress' type: array 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. + 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: '#/components/schemas/v1.EndpointAddress' type: array @@ -155882,14 +156259,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -156013,25 +156390,25 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' 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. + 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: '#/components/schemas/v1.EndpointSubset' type: array @@ -156083,14 +156460,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -156242,14 +156619,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -156373,9 +156750,9 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -156383,9 +156760,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -156444,13 +156821,14 @@ components: 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 "".' + 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: '#/components/schemas/v1.EnvVarSource' @@ -156748,26 +157126,26 @@ components: stdinOnce: true 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' + 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 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' + 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 @@ -156780,31 +157158,31 @@ components: x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: name 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. + 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: '#/components/schemas/v1.EnvFromSource' type: array image: - description: 'Container image name. More info: https://kubernetes.io/docs/concepts/containers/images' + 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' + 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: '#/components/schemas/v1.Lifecycle' livenessProbe: $ref: '#/components/schemas/v1.Probe' 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. + 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. @@ -156837,20 +157215,20 @@ components: startupProbe: $ref: '#/components/schemas/v1.Probe' 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. + 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 + 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: |- @@ -156859,25 +157237,25 @@ components: 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 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.' + 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. + 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. + 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 @@ -156896,9 +157274,9 @@ components: x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: mountPath 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. + 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 @@ -156938,14 +157316,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -156966,8 +157344,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -156995,12 +157375,12 @@ components: $ref: '#/components/schemas/v1.PersistentVolumeClaimTemplate' type: object 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. + 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." example: reason: reason metadata: @@ -157033,14 +157413,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -157087,9 +157467,9 @@ components: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -157107,9 +157487,9 @@ components: involvedObject: $ref: '#/components/schemas/v1.ObjectReference' kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests 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: description: The time at which the most recent occurrence of this event @@ -157122,24 +157502,24 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' reason: - description: This should be a short, machine understandable string that - gives the reason for the transition into the object's current status. + 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: '#/components/schemas/v1.ObjectReference' reportingComponent: - description: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + 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`. + description: "ID of the controller instance, e.g. `kubelet-xyzf`." type: string series: $ref: '#/components/schemas/core.v1.EventSeries' source: $ref: '#/components/schemas/v1.EventSource' type: - description: Type of this event (Normal, Warning), new types could be added - in the future + description: "Type of this event (Normal, Warning), new types could be added\ + \ in the future" type: string required: - involvedObject @@ -157193,14 +157573,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -157273,14 +157653,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -157324,9 +157704,9 @@ components: action: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -157334,9 +157714,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -157350,8 +157730,8 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject core.v1.EventSeries: - description: EventSeries contain information on series of events, i.e. thing - that was/is happening continuously for some time. + description: "EventSeries contain information on series of events, i.e. thing\ + \ that was/is happening continuously for some time." example: count: 6 lastObservedTime: 2000-01-23T04:56:07.000+00:00 @@ -157387,12 +157767,12 @@ components: - command 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. + 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 @@ -157413,26 +157793,27 @@ components: fsType: fsType 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. + 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' + 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.' + 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)' + description: "targetWWNs is Optional: FC target worldwide names (WWNs)" items: type: string type: array 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.' + 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 @@ -157454,19 +157835,19 @@ components: 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. + 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.' + 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.' + description: "readOnly is Optional: defaults to false (read/write). ReadOnly\ + \ here will force the ReadOnly setting in VolumeMounts." type: boolean secretRef: $ref: '#/components/schemas/v1.SecretReference' @@ -157489,19 +157870,19 @@ components: 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. + 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.' + 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.' + description: "readOnly is Optional: defaults to false (read/write). ReadOnly\ + \ here will force the ReadOnly setting in VolumeMounts." type: boolean secretRef: $ref: '#/components/schemas/v1.LocalObjectReference' @@ -157537,26 +157918,26 @@ components: fsType: fsType 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' + 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' + 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' + 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' + 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 @@ -157591,10 +157972,10 @@ components: revision: revision 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. + 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 @@ -157615,20 +157996,20 @@ components: endpointsNamespace: endpointsNamespace 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' + 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' + 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' + 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' + 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 @@ -157643,15 +158024,15 @@ components: readOnly: true 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' + 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' + 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' + 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 @@ -157671,8 +158052,8 @@ components: value: value properties: host: - description: Host name to connect to, defaults to the pod IP. You probably - want to set "Host" in httpHeaders instead. + 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 @@ -157684,10 +158065,10 @@ components: description: Path to access on the HTTP server. type: string port: - 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. + 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 scheme: @@ -157703,8 +158084,8 @@ components: value: value properties: name: - description: The header field name. This will be canonicalized upon output, - so case-variant names will be understood as the same header. + 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 @@ -157748,11 +158129,11 @@ components: type: type 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' + 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' + description: "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" type: string required: - path @@ -157787,15 +158168,15 @@ components: 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' + 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. + 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. @@ -157859,15 +158240,15 @@ components: 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' + 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. + 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. @@ -157914,12 +158295,13 @@ components: 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.' + 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: @@ -157932,10 +158314,11 @@ components: - path type: object 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. + 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." example: postStart: tcpSocket: @@ -157980,9 +158363,9 @@ components: $ref: '#/components/schemas/v1.LifecycleHandler' type: object 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. + 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." example: tcpSocket: port: port @@ -158043,14 +158426,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -158063,28 +158446,38 @@ components: kind: kind spec: limits: - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + defaultRequest: + key: null + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} + defaultRequest: + key: null properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -158101,12 +158494,17 @@ components: description: LimitRangeItem defines a min/max usage limit for any resource that matches on kind. example: - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} + defaultRequest: + key: null properties: default: additionalProperties: @@ -158128,10 +158526,10 @@ components: maxLimitRequestRatio: additionalProperties: $ref: '#/components/schemas/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. + 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: @@ -158185,14 +158583,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -158205,18 +158603,28 @@ components: kind: kind spec: limits: - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + defaultRequest: + key: null + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} + defaultRequest: + key: null - metadata: generation: 6 finalizers: @@ -158247,14 +158655,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -158267,33 +158675,43 @@ components: kind: kind spec: limits: - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + defaultRequest: + key: null + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} + defaultRequest: + key: null properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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/' + description: "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -158311,18 +158729,28 @@ components: match on kind. example: limits: - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + defaultRequest: + key: null + - default: + key: null + min: + key: null + max: + key: null + maxLimitRequestRatio: + key: null type: type - defaultRequest: {} + defaultRequest: + key: null properties: limits: description: Limits is the list of LimitRangeItem objects that are enforced. @@ -158333,8 +158761,8 @@ components: - limits type: object 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.' + description: "LoadBalancerIngress represents the status of a load-balancer ingress\ + \ point: traffic intended for the service should be sent to an ingress point." example: hostname: hostname ip: ip @@ -158355,8 +158783,8 @@ components: (typically GCE or OpenStack load-balancers) 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 + 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: '#/components/schemas/v1.PortStatus' type: array @@ -158399,7 +158827,7 @@ components: name: name properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + 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 @@ -158411,14 +158839,14 @@ components: fsType: fsType 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. + 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, ...). + 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 @@ -158432,15 +158860,15 @@ components: readOnly: true properties: path: - description: 'path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' + 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' + 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' + 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: - path @@ -158480,14 +158908,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -158517,14 +158945,14 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -158559,7 +158987,7 @@ components: reason: type: string status: - description: Status of the condition, one of True, False, Unknown. + description: "Status of the condition, one of True, False, Unknown." type: string type: description: Type of namespace controller condition. @@ -158609,14 +159037,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -158674,14 +159102,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -158711,20 +159139,20 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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/' + 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: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -158745,8 +159173,8 @@ components: - finalizers 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/' + 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 @@ -158776,8 +159204,8 @@ components: x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: type phase: - description: 'Phase is the current lifecycle phase of the namespace. More - info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/' + description: "Phase is the current lifecycle phase of the namespace. More\ + \ info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/" type: string type: object v1.Node: @@ -158814,14 +159242,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -158861,7 +159289,8 @@ components: kubeletEndpoint: Port: 0 phase: phase - allocatable: {} + allocatable: + key: null volumesInUse: - volumesInUse - volumesInUse @@ -158931,17 +159360,18 @@ components: name: name - devicePath: devicePath name: name - capacity: {} + capacity: + key: null properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -158966,7 +159396,7 @@ components: description: The node address. type: string type: - description: Node address type, one of Hostname, ExternalIP or InternalIP. + description: "Node address type, one of Hostname, ExternalIP or InternalIP." type: string required: - address @@ -159072,14 +159502,15 @@ components: weight: 6 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. + 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: '#/components/schemas/v1.PreferredSchedulingTerm' type: array @@ -159111,7 +159542,7 @@ components: description: (brief) reason for the condition's last transition. type: string status: - description: Status of the condition, one of True, False, Unknown. + description: "Status of the condition, one of True, False, Unknown." type: string type: description: Type of node condition. @@ -159167,21 +159598,21 @@ components: assigned: $ref: '#/components/schemas/v1.NodeConfigSource' 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. + 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: '#/components/schemas/v1.NodeConfigSource' @@ -159238,14 +159669,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -159285,7 +159716,8 @@ components: kubeletEndpoint: Port: 0 phase: phase - allocatable: {} + allocatable: + key: null volumesInUse: - volumesInUse - volumesInUse @@ -159355,7 +159787,8 @@ components: name: name - devicePath: devicePath name: name - capacity: {} + capacity: + key: null - metadata: generation: 6 finalizers: @@ -159386,14 +159819,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -159433,7 +159866,8 @@ components: kubeletEndpoint: Port: 0 phase: phase - allocatable: {} + allocatable: + key: null volumesInUse: - volumesInUse - volumesInUse @@ -159503,12 +159937,13 @@ components: name: name - devicePath: devicePath name: name - capacity: {} + capacity: + key: null properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -159516,9 +159951,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -159532,9 +159967,9 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject 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. + 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." example: nodeSelectorTerms: - matchExpressions: @@ -159592,8 +160027,8 @@ components: type: object x-kubernetes-map-type: atomic v1.NodeSelectorRequirement: - description: A node selector requirement is a selector that contains values, - a key, and an operator that relates the key and values. + description: "A node selector requirement is a selector that contains values,\ + \ a key, and an operator that relates the key and values." example: values: - values @@ -159605,15 +160040,15 @@ components: 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. + 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. + 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 @@ -159691,33 +160126,33 @@ components: configSource: $ref: '#/components/schemas/v1.NodeConfigSource' externalID: - description: 'Deprecated. Not all kubelets will set this field. Remove field - after 1.13. see: https://issues.k8s.io/61966' + 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. + 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-patch-strategy: merge providerID: - description: 'ID of the node assigned by the cloud provider in the format: - ://' + description: "ID of the node assigned by the cloud provider in the format:\ + \ ://" type: string taints: - description: If specified, the node's taints. + description: "If specified, the node's taints." items: $ref: '#/components/schemas/v1.Taint' type: array 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' + 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 v1.NodeStatus: @@ -159727,7 +160162,8 @@ components: kubeletEndpoint: Port: 0 phase: phase - allocatable: {} + allocatable: + key: null volumesInUse: - volumesInUse - volumesInUse @@ -159797,18 +160233,19 @@ components: name: name - devicePath: devicePath name: name - capacity: {} + capacity: + key: null 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).' + 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: '#/components/schemas/v1.NodeAddress' type: array @@ -159823,12 +160260,12 @@ components: capacity: additionalProperties: $ref: '#/components/schemas/resource.Quantity' - description: 'Capacity represents the total resources of a node. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity' + 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' + description: "Conditions is an array of current observed node conditions.\ + \ More info: https://kubernetes.io/docs/concepts/nodes/node/#condition" items: $ref: '#/components/schemas/v1.NodeCondition' type: array @@ -159846,9 +160283,9 @@ components: nodeInfo: $ref: '#/components/schemas/v1.NodeSystemInfo' 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.' + 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. @@ -159895,9 +160332,9 @@ components: 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' + 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 @@ -159929,8 +160366,8 @@ components: fieldPath: fieldPath properties: apiVersion: - description: Version of the schema the FieldPath is written in terms of, - defaults to "v1". + 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. @@ -159955,36 +160392,37 @@ components: 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.' + 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' + 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' + 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/' + 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' + 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' + 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 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' + 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" example: metadata: generation: 6 @@ -160016,14 +160454,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -160070,7 +160508,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -160280,14 +160719,14 @@ components: message: message properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -160336,14 +160775,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -160366,8 +160805,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -160411,17 +160852,18 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -160461,9 +160903,10 @@ components: 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 - "ResizeStarted" that means the underlying persistent volume is being resized. + 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 \"ResizeStarted\" that means the underlying persistent volume\ + \ is being resized." type: string status: type: string @@ -160514,14 +160957,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -160544,8 +160987,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -160589,7 +161034,8 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null - metadata: generation: 6 finalizers: @@ -160620,14 +161066,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -160650,8 +161096,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -160695,22 +161143,23 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -160738,8 +161187,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -160764,8 +161215,8 @@ components: volumeMode: volumeMode 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' + 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 @@ -160778,8 +161229,8 @@ components: selector: $ref: '#/components/schemas/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' + 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. @@ -160814,11 +161265,12 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - capacity: {} + capacity: + key: null 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' + 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 @@ -160934,14 +161386,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -160962,8 +161414,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -160995,17 +161449,17 @@ components: - spec type: object 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). + 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)." example: claimName: claimName readOnly: true 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' + 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 @@ -161055,14 +161509,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -161109,7 +161563,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -161347,14 +161802,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -161401,7 +161856,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -161611,19 +162067,19 @@ components: message: message properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -161674,7 +162130,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -161879,8 +162336,8 @@ components: type: type properties: accessModes: - description: 'accessModes contains all ways the volume can be mounted. More - info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes' + 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 @@ -161893,8 +162350,8 @@ components: capacity: additionalProperties: $ref: '#/components/schemas/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' + 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: '#/components/schemas/v1.CephFSPersistentVolumeSource' @@ -161921,8 +162378,9 @@ components: local: $ref: '#/components/schemas/v1.LocalVolumeSource' 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' + 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 @@ -161931,12 +162389,12 @@ components: nodeAffinity: $ref: '#/components/schemas/v1.VolumeNodeAffinity' 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' + 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: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' @@ -161983,8 +162441,8 @@ components: 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' + 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 @@ -161998,9 +162456,9 @@ components: fsType: fsType 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. + 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 @@ -162043,14 +162501,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -162148,7 +162606,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -162249,14 +162708,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -162277,8 +162736,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -162620,14 +163081,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -162648,8 +163109,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -163509,8 +163972,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -163763,8 +164228,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -164018,8 +164485,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -164272,8 +164741,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -164861,7 +165332,8 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -164871,8 +165343,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -164903,7 +165377,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -164913,8 +165388,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -164953,7 +165430,8 @@ components: - ip: ip podIP: podIP ephemeralContainerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -164963,8 +165441,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -164995,7 +165475,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -165005,8 +165486,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -165057,7 +165540,8 @@ components: lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -165067,8 +165551,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -165099,7 +165585,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -165109,8 +165596,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -165143,14 +165632,14 @@ components: finishedAt: 2000-01-23T04:56:07.000+00:00 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -165304,36 +165793,36 @@ components: weight: 1 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. + 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: '#/components/schemas/v1.WeightedPodAffinityTerm' type: array 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. + 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: '#/components/schemas/v1.PodAffinityTerm' type: array type: object 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 + 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" example: labelSelector: matchExpressions: @@ -165382,11 +165871,11 @@ components: type: string type: array 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. + 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 @@ -165531,26 +166020,26 @@ components: weight: 1 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. + 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: '#/components/schemas/v1.WeightedPodAffinityTerm' type: array 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. + 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: '#/components/schemas/v1.PodAffinityTerm' type: array @@ -165578,15 +166067,15 @@ components: description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's last - transition. + 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' + 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' + description: "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" type: string required: - status @@ -165693,14 +166182,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -165798,7 +166287,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -165899,14 +166389,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -165927,8 +166417,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -166270,14 +166762,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -166298,8 +166790,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -167159,8 +167653,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -167413,8 +167909,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -167668,8 +168166,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -167922,8 +168422,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -168511,7 +169013,8 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -168521,8 +169024,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -168553,7 +169058,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -168563,8 +169069,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -168603,7 +169111,8 @@ components: - ip: ip podIP: podIP ephemeralContainerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -168613,8 +169122,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -168645,7 +169156,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -168655,8 +169167,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -168707,7 +169221,8 @@ components: lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -168717,8 +169232,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -168749,7 +169266,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -168759,8 +169277,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -168821,14 +169341,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -168926,7 +169446,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -169027,14 +169548,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -169055,8 +169576,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -169398,14 +169921,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -169426,8 +169949,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -170287,8 +170812,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -170541,8 +171068,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -170796,8 +171325,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -171050,8 +171581,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -171639,7 +172172,8 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -171649,8 +172183,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -171681,7 +172217,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -171691,8 +172228,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -171731,7 +172270,8 @@ components: - ip: ip podIP: podIP ephemeralContainerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -171741,8 +172281,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -171773,7 +172315,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -171783,8 +172326,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -171835,7 +172380,8 @@ components: lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -171845,8 +172391,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -171877,7 +172425,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -171887,8 +172436,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -171921,19 +172472,19 @@ components: finishedAt: 2000-01-23T04:56:07.000+00:00 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -171952,11 +172503,11 @@ components: name: name 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' + 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 @@ -172069,36 +172620,36 @@ components: 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.' + 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. + 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. + 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. + 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: @@ -172106,14 +172657,14 @@ components: seccompProfile: $ref: '#/components/schemas/v1.SeccompProfile' 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. + 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 @@ -172217,7 +172768,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -172318,14 +172870,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -172346,8 +172898,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -172689,14 +173243,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -172717,8 +173271,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -173578,8 +174134,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -173832,8 +174390,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -174087,8 +174647,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -174341,8 +174903,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -174946,23 +175510,23 @@ components: dnsConfig: $ref: '#/components/schemas/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'. + 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.' + 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. + 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: '#/components/schemas/v1.EphemeralContainer' type: array @@ -174978,70 +175542,70 @@ components: x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: ip hostIPC: - description: 'Use the host''s ipc namespace. Optional: Default to false.' + 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. + 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.' + 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.' + 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. + 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' + 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: '#/components/schemas/v1.LocalObjectReference' type: array x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: name 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/' + 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: '#/components/schemas/v1.Container' type: array x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: name 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. + 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/' + 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: @@ -175049,42 +175613,42 @@ components: overhead: additionalProperties: $ref: '#/components/schemas/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' + 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. + 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. + 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. + 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' + 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: '#/components/schemas/v1.PodReadinessGate' type: array @@ -175098,26 +175662,27 @@ components: items: $ref: '#/components/schemas/v1.PodResourceClaim' type: array - x-kubernetes-patch-strategy: merge,retainKeys + x-kubernetes-patch-strategy: "merge,retainKeys" x-kubernetes-list-type: map x-kubernetes-list-map-keys: - name x-kubernetes-patch-merge-key: name 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' + 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' + 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. + 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: |- @@ -175137,46 +175702,48 @@ components: securityContext: $ref: '#/components/schemas/v1.PodSecurityContext' serviceAccount: - description: 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - Deprecated: Use serviceAccountName instead.' + 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/' + 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. + 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.' + 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. + 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. + 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. + description: "If specified, the pod's tolerations." items: $ref: '#/components/schemas/v1.Toleration' type: array @@ -175194,20 +175761,20 @@ components: - whenUnsatisfiable x-kubernetes-patch-merge-key: topologyKey volumes: - description: 'List of volumes that can be mounted by containers belonging - to the pod. More info: https://kubernetes.io/docs/concepts/storage/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: '#/components/schemas/v1.Volume' type: array - x-kubernetes-patch-strategy: merge,retainKeys + x-kubernetes-patch-strategy: "merge,retainKeys" x-kubernetes-patch-merge-key: name required: - containers type: object 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. + 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." example: phase: phase resourceClaimStatuses: @@ -175217,7 +175784,8 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -175227,8 +175795,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -175259,7 +175829,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -175269,8 +175840,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -175309,7 +175882,8 @@ components: - ip: ip podIP: podIP ephemeralContainerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -175319,8 +175893,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -175351,7 +175927,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -175361,8 +175938,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -175413,7 +175992,8 @@ components: lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -175423,8 +176003,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -175455,7 +176037,8 @@ components: message: message signal: 3 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + - allocatedResources: + key: null image: image imageID: imageID restartCount: 7 @@ -175465,8 +176048,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null started: true state: running: @@ -175499,15 +176084,15 @@ components: finishedAt: 2000-01-23T04:56:07.000+00:00 properties: conditions: - description: 'Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions' + description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" items: $ref: '#/components/schemas/v1.PodCondition' type: array x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: type 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' + 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: '#/components/schemas/v1.ContainerStatus' type: array @@ -175535,9 +176120,10 @@ components: x-kubernetes-list-type: atomic x-kubernetes-patch-merge-key: ip 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' + 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: '#/components/schemas/v1.ContainerStatus' type: array @@ -175546,14 +176132,14 @@ components: 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. + 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: |- @@ -175568,19 +176154,19 @@ components: 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. + 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: '#/components/schemas/v1.PodIP' type: array x-kubernetes-patch-strategy: merge x-kubernetes-patch-merge-key: ip 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' + 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 @@ -175643,14 +176229,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -175746,7 +176332,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -175847,14 +176434,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -175875,8 +176462,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -176218,14 +176807,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -176246,8 +176835,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -177107,8 +177698,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -177361,8 +177954,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -177616,8 +178211,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -177870,8 +178467,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -178480,14 +179079,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -178500,14 +179099,14 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -178562,14 +179161,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -178665,7 +179264,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -178766,14 +179366,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -178794,8 +179394,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -179137,14 +179739,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -179165,8 +179767,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -180026,8 +180630,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -180280,8 +180886,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -180535,8 +181143,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -180789,8 +181399,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -181399,14 +182011,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -181448,14 +182060,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -181551,7 +182163,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -181652,14 +182265,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -181680,8 +182293,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -182023,14 +182638,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -182051,8 +182666,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -182912,8 +183529,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -183166,8 +183785,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -183421,8 +184042,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -183675,8 +184298,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -184285,14 +184910,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -184305,9 +184930,9 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -184315,9 +184940,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -184364,14 +184989,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -184467,7 +185092,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -184568,14 +185194,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -184596,8 +185222,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -184939,14 +185567,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -184967,8 +185595,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -185828,8 +186458,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -186082,8 +186714,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -186337,8 +186971,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -186591,8 +187227,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -187196,8 +187834,8 @@ components: 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"' + 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 @@ -187211,9 +187849,9 @@ components: fsType: fsType 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. + 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 @@ -187258,8 +187896,8 @@ components: preference: $ref: '#/components/schemas/v1.NodeSelectorTerm' weight: - description: Weight associated with matching the corresponding nodeSelectorTerm, - in the range 1-100. + description: "Weight associated with matching the corresponding nodeSelectorTerm,\ + \ in the range 1-100." format: int32 type: integer required: @@ -187309,8 +187947,8 @@ components: httpGet: $ref: '#/components/schemas/v1.HTTPGetAction' 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' + 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: @@ -187327,22 +187965,22 @@ components: tcpSocket: $ref: '#/components/schemas/v1.TCPSocketAction' 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. + 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' + 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 @@ -187441,13 +188079,13 @@ components: defaultMode: 6 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. + 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: @@ -187480,8 +188118,8 @@ components: 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 + 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 @@ -187512,35 +188150,35 @@ components: - monitors 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' + 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' + 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' + 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' + 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 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' + 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' + 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: '#/components/schemas/v1.SecretReference' 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' + 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: - image @@ -187563,35 +188201,35 @@ components: - monitors 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' + 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' + 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' + 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' + 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 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' + 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' + 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: '#/components/schemas/v1.LocalObjectReference' 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' + 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: - image @@ -187631,14 +188269,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -187681,14 +188319,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -187784,7 +188422,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -187885,14 +188524,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -187913,8 +188552,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -188256,14 +188897,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -188284,8 +188925,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -189145,8 +189788,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -189399,8 +190044,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -189654,8 +190301,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -189908,8 +190557,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -190511,14 +191162,14 @@ components: observedGeneration: 5 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -190555,7 +191206,7 @@ components: description: The reason for the condition's last transition. type: string status: - description: Status of the condition, one of True, False, Unknown. + description: "Status of the condition, one of True, False, Unknown." type: string type: description: Type of replication controller condition. @@ -190605,14 +191256,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -190655,14 +191306,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -190758,7 +191409,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -190859,14 +191511,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -190887,8 +191539,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -191230,14 +191884,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -191258,8 +191912,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -192119,8 +192775,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -192373,8 +193031,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -192628,8 +193288,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -192882,8 +193544,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -193513,14 +194177,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -193563,14 +194227,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -193666,7 +194330,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -193767,14 +194432,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -193795,8 +194460,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -194138,14 +194805,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -194166,8 +194833,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -195027,8 +195696,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -195281,8 +195952,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -195536,8 +196209,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -195790,8 +196465,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -196393,19 +197070,19 @@ components: observedGeneration: 5 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -196453,14 +197130,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -196556,7 +197233,8 @@ components: name: name setHostnameAsFQDN: true enableServiceLinks: true - overhead: {} + overhead: + key: null hostIPC: true topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy @@ -196657,14 +197335,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -196685,8 +197363,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -197028,14 +197708,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -197056,8 +197736,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -197917,8 +198599,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -198171,8 +198855,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -198426,8 +199112,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -198680,8 +199368,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null securityContext: privileged: true runAsUser: 1 @@ -199266,26 +199956,26 @@ components: minReadySeconds: 0 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) + 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' + 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' + 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: @@ -199340,8 +200030,8 @@ components: 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' + 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: @@ -199361,15 +200051,15 @@ components: - name type: object v1.ResourceFieldSelector: - description: ResourceFieldSelector represents container resources (cpu, memory) - and their output format + description: "ResourceFieldSelector represents container resources (cpu, memory)\ + \ and their output format" example: divisor: divisor resource: resource containerName: containerName properties: containerName: - description: 'Container name: required for volumes, optional for env vars' + description: "Container name: required for volumes, optional for env vars" type: string divisor: description: "Quantity is a fixed-point representation of a number. It provides\ @@ -199410,7 +200100,7 @@ components: format: quantity type: string resource: - description: 'Required: resource to select' + description: "Required: resource to select" type: string required: - resource @@ -199449,14 +200139,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -199480,23 +200170,26 @@ components: - values - values operator: operator - hard: {} + hard: + key: null scopes: - scopes - scopes status: - hard: {} - used: {} + hard: + key: null + used: + key: null properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -199552,14 +200245,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -199583,13 +200276,16 @@ components: - values - values operator: operator - hard: {} + hard: + key: null scopes: - scopes - scopes status: - hard: {} - used: {} + hard: + key: null + used: + key: null - metadata: generation: 6 finalizers: @@ -199620,14 +200316,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -199651,28 +200347,31 @@ components: - values - values operator: operator - hard: {} + hard: + key: null scopes: - scopes - scopes status: - hard: {} - used: {} + hard: + key: null + used: + key: null properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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/' + description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -199701,7 +200400,8 @@ components: - values - values operator: operator - hard: {} + hard: + key: null scopes: - scopes - scopes @@ -199709,14 +200409,14 @@ components: hard: additionalProperties: $ref: '#/components/schemas/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/' + 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: '#/components/schemas/v1.ScopeSelector' scopes: - description: A collection of filters that must match each object tracked - by a quota. If not specified, the quota matches all objects. + 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 @@ -199725,14 +200425,16 @@ components: description: ResourceQuotaStatus defines the enforced hard limits and observed use. example: - hard: {} - used: {} + hard: + key: null + used: + key: null properties: hard: additionalProperties: $ref: '#/components/schemas/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/' + 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: @@ -199747,8 +200449,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null properties: claims: description: |- @@ -199766,16 +200470,16 @@ components: limits: additionalProperties: $ref: '#/components/schemas/resource.Quantity' - description: 'Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + 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: '#/components/schemas/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/' + 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 v1.SELinuxOptions: @@ -199816,9 +200520,9 @@ components: gateway: gateway 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" + 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. @@ -199834,8 +200538,8 @@ components: secretRef: $ref: '#/components/schemas/v1.SecretReference' sslEnabled: - description: sslEnabled is the flag to enable/disable SSL communication - with Gateway, default false + 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 @@ -199873,9 +200577,9 @@ components: gateway: gateway 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". + 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. @@ -199891,8 +200595,8 @@ components: secretRef: $ref: '#/components/schemas/v1.LocalObjectReference' sslEnabled: - description: sslEnabled Flag enable/disable SSL communication with Gateway, - default false + description: "sslEnabled Flag enable/disable SSL communication with Gateway,\ + \ default false" type: boolean storageMode: description: storageMode indicates whether the storage for a volume should @@ -199938,8 +200642,8 @@ components: type: object x-kubernetes-map-type: atomic 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. + 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." example: scopeName: scopeName values: @@ -199948,17 +200652,17 @@ components: operator: operator properties: operator: - description: Represents a scope's relationship to a set of values. Valid - operators are In, NotIn, Exists, DoesNotExist. + 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. + 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 @@ -200028,14 +200732,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -200053,44 +200757,45 @@ components: key: stringData properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" 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 + 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. + 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' 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. + 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' + 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: @@ -200109,7 +200814,7 @@ components: optional: true properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + 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 @@ -200127,7 +200832,7 @@ components: key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + 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 @@ -200178,14 +200883,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -200232,14 +200937,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -200257,19 +200962,19 @@ components: key: stringData properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -200299,18 +201004,18 @@ components: key: key 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 '..'. + 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: '#/components/schemas/v1.KeyToPath' type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + 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 @@ -200351,23 +201056,23 @@ components: key: key 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.' + 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 '..'. + 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: '#/components/schemas/v1.KeyToPath' type: array @@ -200376,14 +201081,14 @@ components: 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' + 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 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. + 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." example: privileged: true runAsUser: 1 @@ -200414,11 +201119,11 @@ components: readOnlyRootFilesystem: true 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.' + 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: '#/components/schemas/v1.Capabilities' @@ -200439,27 +201144,27 @@ components: 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. + 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. + 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. + 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: @@ -200470,10 +201175,10 @@ components: $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' type: object 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. + 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." example: metadata: generation: 6 @@ -200505,14 +201210,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -200602,14 +201307,14 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -200625,9 +201330,9 @@ components: x-implements: - io.kubernetes.client.common.KubernetesObject 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' + 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" example: metadata: generation: 6 @@ -200659,14 +201364,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -200698,9 +201403,9 @@ components: namespace: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -200708,29 +201413,29 @@ components: 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' + 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: '#/components/schemas/v1.LocalObjectReference' 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' 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' + 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: '#/components/schemas/v1.ObjectReference' type: array @@ -200784,14 +201489,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -200851,14 +201556,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -200890,19 +201595,19 @@ components: namespace: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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/' + description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" items: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -200926,18 +201631,18 @@ components: expirationSeconds: 5 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. + 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. + 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: @@ -200988,14 +201693,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -201113,14 +201818,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -201210,9 +201915,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -201220,9 +201925,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -201259,20 +201964,20 @@ components: * 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. + 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' + 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: @@ -201280,14 +201985,14 @@ components: format: int32 type: integer protocol: - description: The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". - Default is TCP. + description: "The IP protocol for this port. Supports \"TCP\", \"UDP\",\ + \ and \"SCTP\". Default is TCP." type: string targetPort: - 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. + 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 required: @@ -201340,29 +202045,30 @@ components: clusterIP: clusterIP 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. + 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' + 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: |- @@ -201389,40 +202095,42 @@ components: 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. + 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. + 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). + 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: |- @@ -201434,30 +202142,30 @@ components: 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. + 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. + 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 @@ -201469,16 +202177,16 @@ components: 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/' + 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 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' + 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: '#/components/schemas/v1.ServicePort' type: array @@ -201502,34 +202210,35 @@ components: 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/' + 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' + 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: '#/components/schemas/v1.SessionAffinityConfig' 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' + 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 v1.ServiceStatus: @@ -201609,9 +202318,9 @@ components: fsType: fsType 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. + 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 @@ -201643,9 +202352,9 @@ components: fsType: fsType 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. + 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 @@ -201689,13 +202398,13 @@ components: host: host properties: host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' + description: "Optional: Host name to connect to, defaults to the pod IP." type: string port: - 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. + 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 required: @@ -201711,8 +202420,8 @@ components: key: key properties: effect: - description: Required. The effect of the taint on pods that do not tolerate - the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + 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. @@ -201730,8 +202439,8 @@ components: - key type: object v1.Toleration: - description: The pod this Toleration is attached to tolerates any taint that - matches the triple using the matching operator . + description: "The pod this Toleration is attached to tolerates any taint that\ + \ matches the triple using the matching operator ." example: effect: effect tolerationSeconds: 9 @@ -201740,33 +202449,33 @@ components: operator: 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. + 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. + 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. + 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. + 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. + 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 v1.TopologySelectorLabelRequirement: @@ -201854,20 +202563,20 @@ components: 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.' + 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: @@ -201892,15 +202601,15 @@ components: 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 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. + 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: |- @@ -201923,9 +202632,9 @@ components: name: 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. + 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 @@ -201946,9 +202655,9 @@ components: namespace: 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. + 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 @@ -201957,12 +202666,12 @@ components: 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. + 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 @@ -202023,14 +202732,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -202051,8 +202760,10 @@ components: claims: - name: name - name: name - requests: {} - limits: {} + requests: + key: null + limits: + key: null selector: matchExpressions: - values: @@ -202381,8 +203092,8 @@ components: iscsi: $ref: '#/components/schemas/v1.ISCSIVolumeSource' 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' + 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: '#/components/schemas/v1.NFSVolumeSource' @@ -202443,16 +203154,16 @@ components: 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. + 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. + 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 @@ -202589,9 +203300,9 @@ components: fsType: fsType 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. + 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) @@ -202649,8 +203360,8 @@ components: podAffinityTerm: $ref: '#/components/schemas/v1.PodAffinityTerm' weight: - description: weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. + description: "weight associated with matching the corresponding podAffinityTerm,\ + \ in the range 1-100." format: int32 type: integer required: @@ -202683,10 +203394,11 @@ components: 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. + 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 v1.Endpoint: @@ -202718,12 +203430,12 @@ components: key: deprecatedTopology 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' + 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 @@ -202733,12 +203445,12 @@ components: 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. + 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: '#/components/schemas/v1.EndpointHints' @@ -202769,19 +203481,19 @@ components: serving: true 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. + 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. + 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 @@ -202827,30 +203539,30 @@ components: * 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 dervied 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.' + description: "name represents the name of this port. All ports in an EndpointSlice\ + \ must have a unique name. If the EndpointSlice is dervied 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. + 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. + 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 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. + 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." example: endpoints: - nodeName: nodeName @@ -202931,14 +203643,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -202961,16 +203673,16 @@ components: name: name 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.' + 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -202980,18 +203692,18 @@ components: 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' 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. + 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: '#/components/schemas/discovery.v1.EndpointPort' type: array @@ -203096,14 +203808,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -203203,14 +203915,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -203233,9 +203945,9 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -203243,9 +203955,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -203271,12 +203983,12 @@ components: - name type: object 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. + 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." example: note: note reason: reason @@ -203310,14 +204022,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -203365,9 +204077,9 @@ components: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -203392,16 +204104,16 @@ components: format: date-time 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' 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. + 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 @@ -203412,21 +204124,21 @@ components: related: $ref: '#/components/schemas/v1.ObjectReference' 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. + 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. + 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: '#/components/schemas/events.v1.EventSeries' 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. + 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 @@ -203480,14 +204192,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -203560,14 +204272,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -203610,9 +204322,9 @@ components: action: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -203620,9 +204332,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -203636,11 +204348,11 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject 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. + 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." example: count: 6 lastObservedTime: 2000-01-23T04:56:07.000+00:00 @@ -203698,10 +204410,10 @@ components: - type type: object v1beta2.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".' + 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\"." example: metadata: generation: 6 @@ -203733,14 +204445,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -203886,14 +204598,14 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -203927,12 +204639,12 @@ components: last transition.' type: string reason: - description: '`reason` is a unique, one-word, CamelCase reason for the condition''s - last transition.' + 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.' + 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.' @@ -203979,14 +204691,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -204160,14 +204872,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -204313,9 +205025,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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.' @@ -204323,9 +205035,9 @@ components: $ref: '#/components/schemas/v1beta2.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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -204466,20 +205178,20 @@ components: distinguisherMethod: $ref: '#/components/schemas/v1beta2.FlowDistinguisherMethod' 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.' + 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: '#/components/schemas/v1beta2.PriorityLevelConfigurationReference' 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.' + 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: '#/components/schemas/v1beta2.PolicyRulesWithSubjects' type: array @@ -204517,9 +205229,9 @@ components: name: name 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. + 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 @@ -204620,8 +205332,9 @@ components: 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.' + 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 @@ -204631,12 +205344,12 @@ components: - verbs type: object v1beta2.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. + 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." example: nonResourceRules: - verbs: @@ -204713,10 +205426,10 @@ components: 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. + 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: '#/components/schemas/v1beta2.Subject' type: array @@ -204758,14 +205471,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -204805,14 +205518,14 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -204847,12 +205560,12 @@ components: last transition.' type: string reason: - description: '`reason` is a unique, one-word, CamelCase reason for the condition''s - last transition.' + 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.' + 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.' @@ -204900,14 +205613,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -204975,14 +205688,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -205022,9 +205735,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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.' @@ -205032,9 +205745,9 @@ components: $ref: '#/components/schemas/v1beta2.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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -205133,23 +205846,23 @@ components: queueLengthLimit: 7 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.' + 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.' + 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: @@ -205162,14 +205875,14 @@ components: type: integer type: object v1beta2.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.' + 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." example: clusterScope: true resources: @@ -205186,9 +205899,9 @@ components: - namespaces 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.' + 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 @@ -205201,29 +205914,29 @@ components: 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.' + 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.' + 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.' + 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 @@ -205241,8 +205954,8 @@ components: namespace: namespace properties: name: - description: '`name` is the name of matching ServiceAccount objects, or - "*" to match regardless of name. Required.' + 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. @@ -205253,9 +205966,9 @@ components: - namespace type: object v1beta2.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. + 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." example: kind: kind serviceAccount: @@ -205291,8 +206004,8 @@ components: name: name properties: name: - description: '`name` is the username that matches, or "*" to match all usernames. - Required.' + description: "`name` is the username that matches, or \"*\" to match all\ + \ usernames. Required." type: string required: - name @@ -205336,10 +206049,10 @@ components: - type type: object 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".' + 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\"." example: metadata: generation: 6 @@ -205371,14 +206084,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -205524,14 +206237,14 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -205565,12 +206278,12 @@ components: last transition.' type: string reason: - description: '`reason` is a unique, one-word, CamelCase reason for the condition''s - last transition.' + 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.' + 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.' @@ -205617,14 +206330,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -205798,14 +206511,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -205951,9 +206664,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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.' @@ -205961,9 +206674,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -206104,20 +206817,20 @@ components: distinguisherMethod: $ref: '#/components/schemas/v1beta3.FlowDistinguisherMethod' 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.' + 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: '#/components/schemas/v1beta3.PriorityLevelConfigurationReference' 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.' + 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: '#/components/schemas/v1beta3.PolicyRulesWithSubjects' type: array @@ -206157,9 +206870,9 @@ components: name: name 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. + 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 @@ -206260,8 +206973,9 @@ components: 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.' + 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 @@ -206271,12 +206985,12 @@ components: - verbs type: object 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. + 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." example: nonResourceRules: - verbs: @@ -206353,10 +207067,10 @@ components: 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. + 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: '#/components/schemas/v1beta3.Subject' type: array @@ -206398,14 +207112,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -206445,14 +207159,14 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -206487,12 +207201,12 @@ components: last transition.' type: string reason: - description: '`reason` is a unique, one-word, CamelCase reason for the condition''s - last transition.' + 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.' + 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.' @@ -206540,14 +207254,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -206615,14 +207329,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -206662,9 +207376,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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.' @@ -206672,9 +207386,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -206775,23 +207489,23 @@ components: queueLengthLimit: 2 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.' + 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.' + 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: @@ -206804,14 +207518,14 @@ components: type: integer type: object 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.' + 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." example: clusterScope: true resources: @@ -206828,9 +207542,9 @@ components: - namespaces 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.' + 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 @@ -206843,29 +207557,29 @@ components: 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.' + 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.' + 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.' + 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 @@ -206883,8 +207597,8 @@ components: namespace: namespace properties: name: - description: '`name` is the name of matching ServiceAccount objects, or - "*" to match regardless of name. Required.' + 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. @@ -206895,9 +207609,9 @@ components: - namespace type: object 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. + 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." example: kind: kind serviceAccount: @@ -206933,8 +207647,8 @@ components: name: name properties: name: - description: '`name` is the username that matches, or "*" to match all usernames. - Required.' + description: "`name` is the username that matches, or \"*\" to match all\ + \ usernames. Required." type: string required: - name @@ -206983,10 +207697,10 @@ components: - pathType type: object v1.HTTPIngressRuleValue: - description: 'HTTPIngressRuleValue is a list of http selectors pointing to backends. - In the example: http:///? -> backend where where parts - of the url correspond to RFC 3986, this resource will be used to match against - everything after the last ''/'' and before the first ''?'' or ''#''.' + 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 '#'." example: paths: - path: path @@ -207024,9 +207738,10 @@ components: - paths type: object v1.IPBlock: - description: IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") - that is allowed to the pods matched by a NetworkPolicySpec's podSelector. - The except entry describes CIDRs that should not be included within this rule. + 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." example: cidr: cidr except: @@ -207048,10 +207763,10 @@ components: - cidr type: object v1.Ingress: - description: Ingress is a collection of rules that allow inbound connections - to reach the endpoints defined by a backend. An Ingress can be configured - to give services externally-reachable urls, load balance traffic, terminate - SSL, offer name based virtual hosting etc. + 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." example: metadata: generation: 6 @@ -207083,14 +207798,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -207200,14 +207915,14 @@ components: error: error properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -207242,11 +207957,12 @@ components: $ref: '#/components/schemas/v1.IngressServiceBackend' type: object v1.IngressClass: - description: IngressClass represents the class of the Ingress, referenced by - the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation - can be used to indicate that an IngressClass should be considered default. - When a single IngressClass resource has this annotation set to true, new Ingress - resources without a class specified will be assigned this default class. + 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." example: metadata: generation: 6 @@ -207278,14 +207994,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -207306,14 +208022,14 @@ components: namespace: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -207367,14 +208083,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -207423,14 +208139,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -207451,9 +208167,9 @@ components: namespace: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -207461,9 +208177,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -207487,9 +208203,9 @@ components: namespace: 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. + 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. @@ -207522,12 +208238,12 @@ components: namespace: namespace 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. + 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: '#/components/schemas/v1.IngressClassParametersReference' @@ -207573,14 +208289,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -207718,14 +208434,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -207835,9 +208551,9 @@ components: error: error properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -207845,9 +208561,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -207937,18 +208653,18 @@ components: format: int32 type: integer protocol: - description: 'protocol is the protocol of the ingress port. The supported - values are: "TCP", "UDP", "SCTP"' + description: "protocol is the protocol of the ingress port. The supported\ + \ values are: \"TCP\", \"UDP\", \"SCTP\"" type: string required: - port - protocol type: object v1.IngressRule: - description: IngressRule represents the rules mapping the paths under a specified - host to the related backend services. Incoming requests are first evaluated - for a host match, then routed to the backend associated with the matching - IngressRuleValue. + 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." example: host: host http: @@ -208102,31 +208818,31 @@ components: defaultBackend: $ref: '#/components/schemas/v1.IngressBackend' 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. + 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. + 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: '#/components/schemas/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. + 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: '#/components/schemas/v1.IngressTLS' type: array @@ -208169,20 +208885,20 @@ components: - hosts 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. + 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. + 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 v1.NetworkPolicy: @@ -208219,14 +208935,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -208555,14 +209271,14 @@ components: endPort: 0 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -208656,22 +209372,22 @@ components: endPort: 0 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. + 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: '#/components/schemas/v1.NetworkPolicyPort' type: array 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. + 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: '#/components/schemas/v1.NetworkPolicyPeer' type: array @@ -208757,22 +209473,22 @@ components: endPort: 0 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. + 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: '#/components/schemas/v1.NetworkPolicyPeer' type: array 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. + 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: '#/components/schemas/v1.NetworkPolicyPort' type: array @@ -208818,14 +209534,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -209182,14 +209898,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -209518,9 +210234,9 @@ components: endPort: 0 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -209528,9 +210244,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -209596,22 +210312,23 @@ components: endPort: 0 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. + 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: - 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. + 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 protocol: - description: protocol represents the protocol (TCP, UDP, or SCTP) which - traffic must match. If not specified, this field defaults to TCP. + 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 v1.NetworkPolicySpec: @@ -209934,43 +210651,44 @@ components: endPort: 0 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 + 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: '#/components/schemas/v1.NetworkPolicyEgressRule' type: array 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) + 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: '#/components/schemas/v1.NetworkPolicyIngressRule' type: array podSelector: $ref: '#/components/schemas/v1.LabelSelector' 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 + 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 @@ -209994,15 +210712,15 @@ components: type: integer type: object v1alpha1.ClusterCIDR: - description: ClusterCIDR represents a single configuration for per-Node Pod - CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config - for kube-controller-manager). A cluster may have any number of ClusterCIDR - resources, all of which will be considered when allocating a CIDR for a Node. A - ClusterCIDR is eligible to be used for a given Node when the node selector - matches the node in question and has free CIDRs to allocate. In case of multiple - matching ClusterCIDR resources, the allocator will attempt to break ties using - internal heuristics, but any ClusterCIDR whose node selector matches the Node - may be used. + description: "ClusterCIDR represents a single configuration for per-Node Pod\ + \ CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config\ + \ for kube-controller-manager). A cluster may have any number of ClusterCIDR\ + \ resources, all of which will be considered when allocating a CIDR for a\ + \ Node. A ClusterCIDR is eligible to be used for a given Node when the node\ + \ selector matches the node in question and has free CIDRs to allocate. In\ + \ case of multiple matching ClusterCIDR resources, the allocator will attempt\ + \ to break ties using internal heuristics, but any ClusterCIDR whose node\ + \ selector matches the Node may be used." example: metadata: generation: 6 @@ -210034,14 +210752,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210104,14 +210822,14 @@ components: operator: operator properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -210165,14 +210883,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210263,14 +210981,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210333,9 +211051,9 @@ components: operator: operator properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 ClusterCIDRs. @@ -210343,9 +211061,9 @@ components: $ref: '#/components/schemas/v1alpha1.ClusterCIDR' 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -210422,27 +211140,27 @@ components: nodeSelector: $ref: '#/components/schemas/v1.NodeSelector' perNodeHostBits: - description: perNodeHostBits defines the number of host bits to be configured - per node. A subnet mask determines how much of the address is used for - network bits and host bits. For example an IPv4 address of 192.168.0.0/24, - splits the address into 24 bits for the network portion and 8 bits for - the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask - for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field - is immutable. + description: "perNodeHostBits defines the number of host bits to be configured\ + \ per node. A subnet mask determines how much of the address is used for\ + \ network bits and host bits. For example an IPv4 address of 192.168.0.0/24,\ + \ splits the address into 24 bits for the network portion and 8 bits for\ + \ the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask\ + \ for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field\ + \ is immutable." format: int32 type: integer required: - perNodeHostBits type: object 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' + 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" example: metadata: generation: 6 @@ -210474,14 +211192,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210501,14 +211219,14 @@ components: group: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -210562,14 +211280,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210617,14 +211335,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210644,9 +211362,9 @@ components: group: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -210654,9 +211372,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -210711,7 +211429,8 @@ components: description: Overhead structure represents the resource overhead associated with running a pod. example: - podFixed: {} + podFixed: + key: null properties: podFixed: additionalProperties: @@ -210721,12 +211440,12 @@ components: type: object type: object 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/ + 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/" example: handler: handler metadata: @@ -210759,14 +211478,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210778,7 +211497,8 @@ components: apiVersion: apiVersion kind: kind overhead: - podFixed: {} + podFixed: + key: null scheduling: tolerations: - effect: effect @@ -210795,24 +211515,25 @@ components: key: nodeSelector properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. + 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -210871,14 +211592,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210890,7 +211611,8 @@ components: apiVersion: apiVersion kind: kind overhead: - podFixed: {} + podFixed: + key: null scheduling: tolerations: - effect: effect @@ -210936,14 +211658,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -210955,7 +211677,8 @@ components: apiVersion: apiVersion kind: kind overhead: - podFixed: {} + podFixed: + key: null scheduling: tolerations: - effect: effect @@ -210972,9 +211695,9 @@ components: key: nodeSelector properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -210982,9 +211705,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -211026,9 +211749,9 @@ components: 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. + 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: '#/components/schemas/v1.Toleration' type: array @@ -211081,14 +211804,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -211101,16 +211824,16 @@ components: kind: kind properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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: '#/components/schemas/v1.DeleteOptions' kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -211155,14 +211878,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -211214,14 +211937,14 @@ components: desiredHealthy: 6 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -211277,14 +212000,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -211364,14 +212087,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -211423,9 +212146,9 @@ components: desiredHealthy: 6 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -211433,9 +212156,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -211470,17 +212193,17 @@ components: key: matchLabels properties: maxUnavailable: - 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. + 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 minAvailable: - 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. + 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 selector: @@ -211625,16 +212348,16 @@ components: key: matchLabels properties: clusterRoleSelectors: - description: ClusterRoleSelectors holds a list of selectors which will be - used to find ClusterRoles and create the rules. If any of the selectors - match, then the ClusterRole's permissions will be added + description: "ClusterRoleSelectors holds a list of selectors which will\ + \ be used to find ClusterRoles and create the rules. If any of the selectors\ + \ match, then the ClusterRole's permissions will be added" items: $ref: '#/components/schemas/v1.LabelSelector' type: array type: object v1.ClusterRole: - description: ClusterRole is a cluster level, logical grouping of PolicyRules - that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + description: "ClusterRole is a cluster level, logical grouping of PolicyRules\ + \ that can be referenced as a unit by a RoleBinding or ClusterRoleBinding." example: metadata: generation: 6 @@ -211666,14 +212389,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -211747,14 +212470,14 @@ components: aggregationRule: $ref: '#/components/schemas/v1.AggregationRule' apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -211771,9 +212494,9 @@ components: x-implements: - io.kubernetes.client.common.KubernetesObject 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. + description: "ClusterRoleBinding references a ClusterRole, but not contain it.\ + \ It can reference a ClusterRole in the global namespace, and adds who information\ + \ via Subject." example: metadata: generation: 6 @@ -211805,14 +212528,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -211838,14 +212561,14 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -211906,14 +212629,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -211967,14 +212690,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212000,9 +212723,9 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -212010,9 +212733,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -212066,14 +212789,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212173,14 +212896,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212252,9 +212975,9 @@ components: - nonResourceURLs properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -212262,9 +212985,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -212278,9 +213001,9 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject 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. + 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." example: resourceNames: - resourceNames @@ -212299,20 +213022,20 @@ components: - nonResourceURLs properties: apiGroups: - description: APIGroups is the name of the APIGroup that contains the resources. If - multiple API groups are specified, any action requested against one of - the enumerated resources in any API group will be allowed. "" represents - the core API group and "*" represents all API groups. + description: "APIGroups is the name of the APIGroup that contains the resources.\ + \ If multiple API groups are specified, any action requested against\ + \ one of the enumerated resources in any API group will be allowed. \"\ + \" represents the core API group and \"*\" represents all API groups." items: type: string type: array nonResourceURLs: - description: NonResourceURLs is a set of partial urls that a user should - have access to. *s are allowed, but only as the full, final step in the - path Since non-resource URLs are not namespaced, this field is only applicable - for ClusterRoles referenced from a ClusterRoleBinding. Rules can either - apply to API resources (such as "pods" or "secrets") or non-resource URL - paths (such as "/api"), but not both. + description: "NonResourceURLs is a set of partial urls that a user should\ + \ have access to. *s are allowed, but only as the full, final step in\ + \ the path Since non-resource URLs are not namespaced, this field is only\ + \ applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules\ + \ can either apply to API resources (such as \"pods\" or \"secrets\")\ + \ or non-resource URL paths (such as \"/api\"), but not both." items: type: string type: array @@ -212338,8 +213061,8 @@ components: - verbs type: object v1.Role: - description: Role is a namespaced, logical grouping of PolicyRules that can - be referenced as a unit by a RoleBinding. + description: "Role is a namespaced, logical grouping of PolicyRules that can\ + \ be referenced as a unit by a RoleBinding." example: metadata: generation: 6 @@ -212371,14 +213094,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212422,14 +213145,14 @@ components: - nonResourceURLs properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -212446,11 +213169,11 @@ components: x-implements: - io.kubernetes.client.common.KubernetesObject 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. + 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." example: metadata: generation: 6 @@ -212482,14 +213205,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212515,14 +213238,14 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -212583,14 +213306,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212644,14 +213367,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212677,9 +213400,9 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -212687,9 +213410,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -212743,14 +213466,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212822,14 +213545,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -212873,9 +213596,9 @@ components: - nonResourceURLs properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -212883,9 +213606,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -212921,9 +213644,9 @@ components: type: object x-kubernetes-map-type: atomic 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. + 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." example: apiGroup: apiGroup kind: kind @@ -212936,17 +213659,18 @@ components: for User and Group subjects. type: string kind: - description: Kind of object being referenced. Values defined by this API - group are "User", "Group", and "ServiceAccount". If the Authorizer does - not recognized the kind value, the Authorizer should report an error. + description: "Kind of object being referenced. Values defined by this API\ + \ group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer\ + \ does not recognized the kind value, the Authorizer should report an\ + \ error." type: string name: description: Name of the object being referenced. type: string namespace: - description: Namespace of the referenced object. If the object kind is - non-namespace, such as "User" or "Group", and this value is not empty - the Authorizer should report an error. + description: "Namespace of the referenced object. If the object kind is\ + \ non-namespace, such as \"User\" or \"Group\", and this value is not\ + \ empty the Authorizer should report an error." type: string required: - kind @@ -213061,14 +213785,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -213096,14 +213820,14 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -213161,14 +213885,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -213224,14 +213948,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -213259,9 +213983,9 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -213269,9 +213993,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -213369,14 +214093,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -213461,14 +214185,14 @@ components: deallocationRequested: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -213504,8 +214228,8 @@ components: description: Name is the name of resource being referenced. type: string resource: - description: Resource is the type of resource being referenced, for example - "pods". + description: "Resource is the type of resource being referenced, for example\ + \ \"pods\"." type: string uid: description: UID identifies exactly one incarnation of the resource. @@ -213556,14 +214280,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -213676,14 +214400,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -213768,9 +214492,9 @@ components: deallocationRequested: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -213778,9 +214502,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -213808,8 +214532,9 @@ components: 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". + 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. @@ -213828,7 +214553,7 @@ components: name: name properties: name: - description: Name matches the pod.spec.resourceClaims[*].Name field. + description: "Name matches the pod.spec.resourceClaims[*].Name field." type: string unsuitableNodes: description: |- @@ -213992,14 +214717,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214041,14 +214766,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214066,14 +214791,14 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -214129,14 +214854,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214178,14 +214903,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214231,14 +214956,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214280,14 +215005,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214305,9 +215030,9 @@ components: name: name properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -214315,9 +215040,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -214364,14 +215089,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214477,14 +215202,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214503,9 +215228,9 @@ components: driverName: driverName properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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: |- @@ -214514,9 +215239,9 @@ components: Resource 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -214620,14 +215345,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214720,14 +215445,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214746,9 +215471,9 @@ components: driverName: driverName properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -214756,9 +215481,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -214854,14 +215579,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -214878,33 +215603,33 @@ components: preemptionPolicy: preemptionPolicy properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. + 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' preemptionPolicy: - description: preemptionPolicy is the Policy for preempting pods with lower - priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority - if unset. + description: "preemptionPolicy is the Policy for preempting pods with lower\ + \ priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority\ + \ if unset." type: string value: description: value represents the integer value of this priority class. @@ -214962,14 +215687,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215014,14 +215739,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215038,9 +215763,9 @@ components: preemptionPolicy: preemptionPolicy properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -215048,9 +215773,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -215100,14 +215825,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215135,14 +215860,14 @@ components: seLinuxMount: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -215198,14 +215923,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215261,14 +215986,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215296,9 +216021,9 @@ components: seLinuxMount: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -215306,9 +216031,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -215422,14 +216147,15 @@ components: x-kubernetes-list-type: set type: object v1.CSINode: - description: CSINode holds information about all CSI drivers installed on a - node. CSI drivers do not need to create the CSINode object directly. As long - as they use the node-driver-registrar sidecar container, the kubelet will - automatically populate the CSINode object for the CSI driver as part of kubelet - plugin registration. CSINode has the same name as a node. If the object is - missing, it means either there are no CSI Drivers available on the node, or - the Kubelet version is low enough that it doesn't create this object. CSINode - has an OwnerReference that points to the corresponding node object. + 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." example: metadata: generation: 6 @@ -215461,14 +216187,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215497,14 +216223,14 @@ components: nodeID: nodeID properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -215539,26 +216265,26 @@ components: 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. + 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. + 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 @@ -215607,14 +216333,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215671,14 +216397,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215707,9 +216433,9 @@ components: nodeID: nodeID properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -215717,9 +216443,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -215753,9 +216479,9 @@ components: nodeID: nodeID 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. + 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: '#/components/schemas/v1.CSINodeDriver' type: array @@ -215807,14 +216533,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -215843,9 +216569,9 @@ components: capacity: capacity properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string capacity: description: "Quantity is a fixed-point representation of a number. It provides\ @@ -215886,9 +216612,9 @@ components: format: quantity 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string maximumVolumeSize: description: "Quantity is a fixed-point representation of a number. It provides\ @@ -215933,11 +216659,11 @@ components: nodeTopology: $ref: '#/components/schemas/v1.LabelSelector' 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. + 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 @@ -215990,14 +216716,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -216055,14 +216781,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -216091,9 +216817,9 @@ components: capacity: capacity properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -216104,9 +216830,9 @@ components: x-kubernetes-list-map-keys: - name kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -216156,14 +216882,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -216217,21 +216943,21 @@ components: 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' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' 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. + 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 @@ -216249,10 +216975,10 @@ components: 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. + 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 @@ -216305,14 +217031,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -216381,14 +217107,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -216428,9 +217154,9 @@ components: key: key properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -216438,9 +217164,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -216508,14 +217234,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -216566,7 +217292,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -216782,14 +217509,14 @@ components: attached: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -216847,14 +217574,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -216905,7 +217632,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -217149,14 +217877,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -217207,7 +217935,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -217423,9 +218152,9 @@ components: attached: true properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -217433,9 +218162,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -217449,10 +218178,10 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject 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. + 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." example: persistentVolumeName: persistentVolumeName inlineVolumeSpec: @@ -217491,7 +218220,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -217745,7 +218475,8 @@ components: local: path: path fsType: fsType - capacity: {} + capacity: + key: null cephfs: path: path secretRef: @@ -217981,17 +218712,17 @@ components: attachError: $ref: '#/components/schemas/v1.VolumeError' 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. + 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. + 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: '#/components/schemas/v1.VolumeError' @@ -218005,9 +218736,9 @@ components: message: message 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. + 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: description: time represents the time the error was encountered. @@ -218021,12 +218752,12 @@ components: count: 0 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. + 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 @@ -218136,14 +218867,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -218181,21 +218912,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -218206,10 +218940,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -218229,15 +218963,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -218247,7 +218982,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -218275,21 +219010,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -218300,10 +219038,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -218323,15 +219061,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -218341,7 +219080,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -218400,14 +219139,14 @@ components: singular: singular properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -218444,16 +219183,16 @@ components: last transition. type: string reason: - description: reason is a unique, one-word, CamelCase reason for the condition's - last transition. + 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. + 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. + description: "type is the type of the condition. Types include Established,\ + \ NamesAccepted and Terminating." type: string required: - status @@ -218501,14 +219240,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -218546,21 +219285,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -218571,10 +219313,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -218594,15 +219336,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -218612,7 +219355,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -218640,21 +219383,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -218665,10 +219411,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -218688,15 +219434,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -218706,7 +219453,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -218793,14 +219540,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -218838,21 +219585,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -218863,10 +219613,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -218886,15 +219636,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -218904,7 +219655,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -218932,21 +219683,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -218957,10 +219711,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -218980,15 +219734,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -218998,7 +219753,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -219057,9 +219812,9 @@ components: singular: singular properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -219067,9 +219822,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -219098,9 +219853,9 @@ components: singular: singular 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`. + 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 @@ -219120,9 +219875,9 @@ components: 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. + 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 @@ -219164,21 +219919,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -219189,10 +219947,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -219212,15 +219970,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -219230,7 +219989,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -219258,21 +220017,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -219283,10 +220045,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -219306,15 +220068,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -219324,7 +220087,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -219366,29 +220129,29 @@ components: names: $ref: '#/components/schemas/v1.CustomResourceDefinitionNames' 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. + 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.' + 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: '#/components/schemas/v1.CustomResourceDefinitionVersion' type: array @@ -219438,12 +220201,13 @@ components: x-kubernetes-list-map-keys: - type 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. + 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 @@ -219464,21 +220228,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -219489,10 +220256,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -219512,15 +220279,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null deprecated: true deprecationWarning: deprecationWarning served: true @@ -219530,7 +220298,7 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" storage: true additionalPrinterColumns: - format: format @@ -219547,28 +220315,28 @@ components: type: type 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. + 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: '#/components/schemas/v1.CustomResourceColumnDefinition' type: array 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. + 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. + 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. + 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: '#/components/schemas/v1.CustomResourceValidation' @@ -219596,30 +220364,31 @@ components: specReplicasPath: specReplicasPath 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.' + 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. + 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. + 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 @@ -219633,16 +220402,16 @@ components: statusReplicasPath: statusReplicasPath labelSelectorPath: labelSelectorPath specReplicasPath: specReplicasPath - status: '{}' + status: "{}" properties: scale: $ref: '#/components/schemas/v1.CustomResourceSubresourceScale' status: - description: 'status indicates the custom resource should serve a `/status` - subresource. When enabled: 1. requests to the custom resource primary - endpoint ignore changes to the `status` stanza of the object. 2. requests - to the custom resource `/status` subresource ignore changes to anything - other than the `status` stanza of the object.' + 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." properties: {} type: object type: object @@ -219661,21 +220430,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -219686,10 +220458,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -219709,15 +220481,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null properties: openAPIV3Schema: $ref: '#/components/schemas/v1.JSONSchemaProps' @@ -219749,21 +220522,24 @@ components: required: - required - required - example: '{}' + example: "{}" exclusiveMaximum: true - patternProperties: {} + patternProperties: + key: null allOf: - null - null - default: '{}' + default: "{}" + not: null oneOf: - null - null - additionalItems: '{}' + additionalItems: "{}" id: id maxProperties: 5 exclusiveMinimum: true - definitions: {} + definitions: + key: null multipleOf: 4.145608029883936 maxItems: 1 x-kubernetes-preserve-unknown-fields: true @@ -219774,10 +220550,10 @@ components: - null - null enum: - - '{}' - - '{}' + - "{}" + - "{}" dependencies: - key: '{}' + key: "{}" minProperties: 3 minItems: 7 x-kubernetes-list-map-keys: @@ -219797,15 +220573,16 @@ components: fieldPath: fieldPath rule: rule message: message - additionalProperties: '{}' + additionalProperties: "{}" externalDocs: description: description url: url $ref: $ref - items: '{}' + items: "{}" minimum: 2.027123023002322 maxLength: 5 - properties: {} + properties: + key: null properties: $ref: type: string @@ -219850,16 +220627,16 @@ components: type: string enum: items: - description: 'JSON represents any valid JSON value. These types are supported: - bool, int64, float64, string, []interface{}, map[string]interface{} - and nil.' + description: "JSON represents any valid JSON value. These types are supported:\ + \ bool, int64, float64, string, []interface{}, map[string]interface{}\ + \ and nil." properties: {} type: object type: array example: - description: 'JSON represents any valid JSON value. These types are supported: - bool, int64, float64, string, []interface{}, map[string]interface{} and - nil.' + description: "JSON represents any valid JSON value. These types are supported:\ + \ bool, int64, float64, string, []interface{}, map[string]interface{}\ + \ and nil." properties: {} type: object exclusiveMaximum: @@ -219938,12 +220715,12 @@ components: 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). + 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: |- @@ -219997,11 +220774,11 @@ components: 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. + 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 @@ -220035,9 +220812,9 @@ components: 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. + 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: @@ -220070,26 +220847,37 @@ components: 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"' + 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)+")"' + 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 + 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 reason: description: 'reason provides a machine-readable validation failure reason @@ -220172,11 +220960,11 @@ components: url: url properties: caBundle: - description: caBundle is a PEM encoded CA bundle which will be used to validate - the webhook's server certificate. If unspecified, system trust roots on - the apiserver are used. + description: "caBundle is a PEM encoded CA bundle which will be used to\ + \ validate the webhook's server certificate. If unspecified, system trust\ + \ roots on the apiserver are used." format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string service: $ref: '#/components/schemas/apiextensions.v1.ServiceReference' @@ -220213,13 +221001,13 @@ components: clientConfig: $ref: '#/components/schemas/apiextensions.v1.WebhookClientConfig' 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. + 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 @@ -220263,8 +221051,8 @@ components: format: quantity type: string v1.APIGroup: - description: APIGroup contains the name, the supported versions, and the preferred - version of a group. + description: "APIGroup contains the name, the supported versions, and the preferred\ + \ version of a group." example: apiVersion: apiVersion versions: @@ -220284,14 +221072,14 @@ components: serverAddress: serverAddress properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests 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. @@ -220299,15 +221087,15 @@ components: preferredVersion: $ref: '#/components/schemas/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.' + 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: '#/components/schemas/v1.ServerAddressByClientCIDR' type: array @@ -220325,8 +221113,8 @@ components: kind: APIGroup version: v1 v1.APIGroupList: - description: APIGroupList is a list of APIGroup, to allow clients to discover - the API at /apis. + description: "APIGroupList is a list of APIGroup, to allow clients to discover\ + \ the API at /apis." example: apiVersion: apiVersion kind: kind @@ -220365,9 +221153,9 @@ components: serverAddress: serverAddress properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. @@ -220375,9 +221163,9 @@ components: $ref: '#/components/schemas/v1.APIGroup' 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests 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 @@ -220414,9 +221202,9 @@ components: type: string type: array 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".' + 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 @@ -220440,24 +221228,25 @@ components: 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. + 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) + 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)".' + 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: - kind @@ -220467,9 +221256,9 @@ components: - verbs type: object v1.APIResourceList: - description: APIResourceList is a list of APIResource, it is used to expose - the name of the resources supported in a specific group and version, and if - the resource is namespaced. + 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." example: apiVersion: apiVersion kind: kind @@ -220509,18 +221298,18 @@ components: singularName: singularName properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests 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 @@ -220537,8 +221326,8 @@ components: kind: APIResourceList version: v1 v1.APIVersions: - description: APIVersions lists the versions that are available, to allow clients - to discover the API at /api, which is the root path of the legacy v1 API. + 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." example: apiVersion: apiVersion versions: @@ -220552,25 +221341,25 @@ components: serverAddress: serverAddress properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests 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.' + 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: '#/components/schemas/v1.ServerAddressByClientCIDR' type: array @@ -220599,10 +221388,10 @@ components: status: status properties: lastTransitionTime: - description: lastTransitionTime is the last time the condition transitioned - from one status to another. This should be when the underlying condition - changed. If that is not known, then using the time when the API field - changed is acceptable. + description: "lastTransitionTime is the last time the condition transitioned\ + \ from one status to another. This should be when the underlying condition\ + \ changed. If that is not known, then using the time when the API field\ + \ changed is acceptable." format: date-time type: string message: @@ -220610,22 +221399,22 @@ components: 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. + 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. + 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. + 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. @@ -220653,47 +221442,48 @@ components: propagationPolicy: propagationPolicy properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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 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. + description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete\ + \ immediately. If this value is nil, 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests 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.' + description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"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: '#/components/schemas/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.' + description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default\ + \ policy is decided by the existing finalizer set in the metadata.finalizers\ + \ and the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the 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: @@ -220918,16 +221708,16 @@ components: 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. + 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 v1.LabelSelectorRequirement: - description: A label selector requirement is a selector that contains values, - a key, and an operator that relates the key and values. + description: "A label selector requirement is a selector that contains values,\ + \ a key, and an operator that relates the key and values." example: values: - values @@ -220939,14 +221729,14 @@ components: 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. + 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. + 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 @@ -220955,9 +221745,9 @@ components: - operator type: object v1.ListMeta: - description: ListMeta describes metadata that synthetic resources must have, - including lists and various status objects. A resource may have only one of - {ObjectMeta, ListMeta}. + description: "ListMeta describes metadata that synthetic resources must have,\ + \ including lists and various status objects. A resource may have only one\ + \ of {ObjectMeta, ListMeta}." example: remainingItemCount: 1 continue: continue @@ -220965,46 +221755,46 @@ components: selfLink: selfLink 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. + 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. + description: "remainingItemCount is the number of subsequent items in the\ + \ list which are not included in this list response. If the list request\ + \ contained label or field selectors, then the number of remaining items\ + \ is unknown and the field will be left unset and omitted during serialization.\ + \ If the list is complete (either because it is not chunking or because\ + \ this is the last chunk), then there are no more remaining items and\ + \ this field will be left unset and omitted during serialization. Servers\ + \ older than v1.15 do not set this field. The intended use of the remainingItemCount\ + \ is *estimating* the size of a collection. Clients should not rely on\ + \ the remainingItemCount to be set or to be exact." format: int64 type: integer resourceVersion: - description: 'String that identifies the server''s internal version of this - object that can be used by clients to determine when objects have changed. - Value must be treated as opaque by clients and passed unmodified back - to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' + description: "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.' + description: "Deprecated: selfLink is a legacy read-only field that is no\ + \ longer populated by the system." type: string type: object v1.ManagedFieldsEntry: - description: ManagedFieldsEntry is a workflow-id, a FieldSet and the group version - of the resource that the fieldset applies to. + description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group\ + \ version of the resource that the fieldset applies to." example: apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -221018,8 +221808,8 @@ components: 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"' + 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 @@ -221034,26 +221824,26 @@ components: 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. + 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. + description: "Time is the timestamp of when the ManagedFields entry was\ + \ added. The timestamp will also be updated if a field is added, the manager\ + \ changes any of the owned fields value or removes a field. The timestamp\ + \ does not update when a field is removed from the entry because another\ + \ manager took it over." format: date-time type: string type: object v1.ObjectMeta: - description: ObjectMeta is metadata that all persisted resources must have, - which includes all objects users must create. + description: "ObjectMeta is metadata that all persisted resources must have,\ + \ which includes all objects users must create." example: generation: 6 finalizers: @@ -221084,14 +221874,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -221104,10 +221894,10 @@ components: 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' + description: "Annotations is an unstructured key value map stored with a\ + \ resource that may be set by external tools to store and retrieve arbitrary\ + \ metadata. They are not queryable and should be preserved when modifying\ + \ objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations" type: object creationTimestamp: description: |- @@ -221130,19 +221920,19 @@ components: format: date-time 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. + 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 @@ -221163,26 +221953,26 @@ components: 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' + 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. + 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: '#/components/schemas/v1.ManagedFieldsEntry' type: array 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' + 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: |- @@ -221191,11 +221981,11 @@ components: Must 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. + 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: '#/components/schemas/v1.OwnerReference' type: array @@ -221208,8 +221998,8 @@ components: 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 selfLink: - description: 'Deprecated: selfLink is a legacy read-only field that is no - longer populated by the system.' + description: "Deprecated: selfLink is a legacy read-only field that is no\ + \ longer populated by the system." type: string uid: description: |- @@ -221219,9 +222009,9 @@ components: type: string type: object v1.OwnerReference: - description: OwnerReference contains enough information to let you identify - an owning object. An owning object must be in the same namespace as the dependent, - or be cluster-scoped, so there is no namespace field. + 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." example: uid: uid controller: true @@ -221234,25 +222024,25 @@ components: 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. + 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. + 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' + 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' + 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' + description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids" type: string required: - apiVersion @@ -221267,8 +222057,8 @@ components: format: patch type: string v1.Preconditions: - description: Preconditions must be fulfilled before an operation (update, delete, - etc.) is carried out. + description: "Preconditions must be fulfilled before an operation (update, delete,\ + \ etc.) is carried out." example: uid: uid resourceVersion: resourceVersion @@ -221281,8 +222071,8 @@ components: type: string type: object v1.ServerAddressByClientCIDR: - description: ServerAddressByClientCIDR helps the client to determine the server - address that they should use, depending on the clientCIDR that they match. + description: "ServerAddressByClientCIDR helps the client to determine the server\ + \ address that they should use, depending on the clientCIDR that they match." example: clientCIDR: clientCIDR serverAddress: serverAddress @@ -221292,8 +222082,8 @@ components: 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. + 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 @@ -221328,20 +222118,20 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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. + description: "Suggested HTTP return code for this status, 0 if not set." format: int32 type: integer details: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests 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. @@ -221354,8 +222144,8 @@ components: 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' + 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: @@ -221366,8 +222156,8 @@ components: kind: Status version: v1alpha2 v1.StatusCause: - description: StatusCause provides more information about an api.Status failure, - including cases when multiple errors are encountered. + description: "StatusCause provides more information about an api.Status failure,\ + \ including cases when multiple errors are encountered." example: reason: reason field: field @@ -221391,11 +222181,11 @@ components: type: string type: object 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. + 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." example: uid: uid kind: kind @@ -221421,24 +222211,24 @@ components: 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' + 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. + 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' + 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 v1.WatchEvent: @@ -221635,10 +222425,10 @@ components: kind: WatchEvent version: v1beta1 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. + 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 version.Info: @@ -221718,14 +222508,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -221761,14 +222551,14 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' @@ -221801,12 +222591,12 @@ components: description: Human-readable message indicating details about last transition. type: string reason: - description: Unique, one-word, CamelCase reason for the condition's last - transition. + 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. + description: "Status is the status of the condition. Can be True, False,\ + \ Unknown." type: string type: description: Type is the type of the condition. @@ -221856,14 +222646,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -221927,14 +222717,14 @@ components: uid: uid managedFields: - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - apiVersion: apiVersion - fieldsV1: '{}' + fieldsV1: "{}" manager: manager subresource: subresource time: 2000-01-23T04:56:07.000+00:00 @@ -221970,9 +222760,9 @@ components: status: status properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ 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 @@ -221980,9 +222770,9 @@ components: $ref: '#/components/schemas/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' + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string metadata: $ref: '#/components/schemas/v1.ListMeta' @@ -221996,9 +222786,9 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject 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. + description: "APIServiceSpec contains information for locating and communicating\ + \ with a server. Only https is supported, though you are able to disable certificate\ + \ verification." example: caBundle: caBundle groupPriorityMinimum: 0 @@ -222012,26 +222802,27 @@ components: group: group 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. + 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 - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string x-kubernetes-list-type: atomic group: description: Group is the API group name this server hosts type: string groupPriorityMinimum: - description: 'GroupPriorityMininum 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 GroupPriorityMininum 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' + description: "GroupPriorityMininum 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 GroupPriorityMininum 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: @@ -222042,24 +222833,24 @@ components: service: $ref: '#/components/schemas/apiregistration.v1.ServiceReference' version: - description: Version is the API version this server hosts. For example, - "v1" + 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.' + 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: @@ -222106,9 +222897,9 @@ components: 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). + 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 @@ -222118,4 +222909,5 @@ components: in: header name: authorization type: apiKey +x-original-swagger-version: "2.0" diff --git a/kubernetes/docs/AdmissionregistrationApi.md b/kubernetes/docs/AdmissionregistrationApi.md index 1b1e18a5b2..98dd02177c 100644 --- a/kubernetes/docs/AdmissionregistrationApi.md +++ b/kubernetes/docs/AdmissionregistrationApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AdmissionregistrationApi.md#getAPIGroup) | **GET** /apis/admissionregistration.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](AdmissionregistrationApi.md#getAPIGroup) | **GET** /apis/admissionregistration.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AdmissionregistrationV1Api.md b/kubernetes/docs/AdmissionregistrationV1Api.md index 58404bb261..d3664966c9 100644 --- a/kubernetes/docs/AdmissionregistrationV1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1Api.md @@ -2,26 +2,26 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#createMutatingWebhookConfiguration) | **POST** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | -[**createValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#createValidatingWebhookConfiguration) | **POST** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | -[**deleteCollectionMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteCollectionMutatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | -[**deleteCollectionValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteCollectionValidatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | -[**deleteMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteMutatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | -[**deleteValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteValidatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | -[**getAPIResources**](AdmissionregistrationV1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1/ | -[**listMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#listMutatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | -[**listValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#listValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | -[**patchMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#patchMutatingWebhookConfiguration) | **PATCH** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | -[**patchValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#patchValidatingWebhookConfiguration) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | -[**readMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#readMutatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | -[**readValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#readValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | -[**replaceMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#replaceMutatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | -[**replaceValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#replaceValidatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#createMutatingWebhookConfiguration) | **POST** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | | +| [**createValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#createValidatingWebhookConfiguration) | **POST** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | | +| [**deleteCollectionMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteCollectionMutatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | | +| [**deleteCollectionValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteCollectionValidatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | | +| [**deleteMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteMutatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | | +| [**deleteValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteValidatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | | +| [**getAPIResources**](AdmissionregistrationV1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1/ | | +| [**listMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#listMutatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | | +| [**listValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#listValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | | +| [**patchMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#patchMutatingWebhookConfiguration) | **PATCH** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | | +| [**patchValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#patchValidatingWebhookConfiguration) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | | +| [**readMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#readMutatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | | +| [**readValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#readValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | | +| [**replaceMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#replaceMutatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | | +| [**replaceValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#replaceValidatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | | + + + # **createMutatingWebhookConfiguration** > V1MutatingWebhookConfiguration createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation) @@ -72,13 +72,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -96,12 +96,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createValidatingWebhookConfiguration** > V1ValidatingWebhookConfiguration createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation) @@ -152,13 +152,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -176,12 +176,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionMutatingWebhookConfiguration** > V1Status deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -241,22 +241,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -274,10 +274,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionValidatingWebhookConfiguration** > V1Status deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -337,22 +337,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -370,10 +370,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteMutatingWebhookConfiguration** > V1Status deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -426,15 +426,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the MutatingWebhookConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingWebhookConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -452,11 +452,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteValidatingWebhookConfiguration** > V1Status deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -509,15 +509,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingWebhookConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingWebhookConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -535,11 +535,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -602,10 +602,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listMutatingWebhookConfiguration** > V1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -662,19 +662,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -692,10 +692,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listValidatingWebhookConfiguration** > V1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -752,19 +752,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -782,10 +782,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchMutatingWebhookConfiguration** > V1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -838,15 +838,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the MutatingWebhookConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingWebhookConfiguration | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -864,11 +864,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchValidatingWebhookConfiguration** > V1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -921,15 +921,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingWebhookConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingWebhookConfiguration | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -947,11 +947,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readMutatingWebhookConfiguration** > V1MutatingWebhookConfiguration readMutatingWebhookConfiguration(name, pretty) @@ -999,10 +999,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the MutatingWebhookConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingWebhookConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1020,10 +1020,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readValidatingWebhookConfiguration** > V1ValidatingWebhookConfiguration readValidatingWebhookConfiguration(name, pretty) @@ -1071,10 +1071,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingWebhookConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingWebhookConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1092,10 +1092,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceMutatingWebhookConfiguration** > V1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1147,14 +1147,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the MutatingWebhookConfiguration | - **body** | [**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingWebhookConfiguration | | +| **body** | [**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1172,11 +1172,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceValidatingWebhookConfiguration** > V1ValidatingWebhookConfiguration replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1228,14 +1228,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingWebhookConfiguration | - **body** | [**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingWebhookConfiguration | | +| **body** | [**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1253,7 +1253,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AdmissionregistrationV1ServiceReference.md b/kubernetes/docs/AdmissionregistrationV1ServiceReference.md index 9d0420f05f..3e28304b08 100644 --- a/kubernetes/docs/AdmissionregistrationV1ServiceReference.md +++ b/kubernetes/docs/AdmissionregistrationV1ServiceReference.md @@ -3,14 +3,15 @@ # AdmissionregistrationV1ServiceReference ServiceReference holds a reference to Service.legacy.k8s.io + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of the service. Required | -**namespace** | **String** | `namespace` is the namespace of the service. Required | -**path** | **String** | `path` is an optional URL path which will be sent in any request to this service. | [optional] -**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | `name` is the name of the service. Required | | +|**namespace** | **String** | `namespace` is the namespace of the service. Required | | +|**path** | **String** | `path` is an optional URL path which will be sent in any request to this service. | [optional] | +|**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] | diff --git a/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md b/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md index 767825422f..7adc391d30 100644 --- a/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md +++ b/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md @@ -3,13 +3,14 @@ # AdmissionregistrationV1WebhookClientConfig WebhookClientConfig contains the information to make a TLS connection with the webhook + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**caBundle** | **byte[]** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] -**service** | [**AdmissionregistrationV1ServiceReference**](AdmissionregistrationV1ServiceReference.md) | | [optional] -**url** | **String** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**caBundle** | **byte[]** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] | +|**service** | [**AdmissionregistrationV1ServiceReference**](AdmissionregistrationV1ServiceReference.md) | | [optional] | +|**url** | **String** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] | diff --git a/kubernetes/docs/AdmissionregistrationV1alpha1Api.md b/kubernetes/docs/AdmissionregistrationV1alpha1Api.md index 31688477f3..e18c3f265b 100644 --- a/kubernetes/docs/AdmissionregistrationV1alpha1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1alpha1Api.md @@ -2,29 +2,29 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | -[**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | -[**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | -[**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | -[**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | -[**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | -[**getAPIResources**](AdmissionregistrationV1alpha1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/ | -[**listValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | -[**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | -[**patchValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | -[**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | -[**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | -[**readValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | -[**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | -[**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | -[**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | -[**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | -[**replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | | +| [**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | | +| [**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | | +| [**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | | +| [**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | | +| [**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | | +| [**getAPIResources**](AdmissionregistrationV1alpha1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/ | | +| [**listValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | | +| [**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | | +| [**patchValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | | +| [**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | | +| [**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | | +| [**readValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | | +| [**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | | +| [**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | | +| [**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | | +| [**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | | +| [**replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | | + + + # **createValidatingAdmissionPolicy** > V1alpha1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation) @@ -75,13 +75,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -99,12 +99,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createValidatingAdmissionPolicyBinding** > V1alpha1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation) @@ -155,13 +155,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -179,12 +179,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionValidatingAdmissionPolicy** > V1Status deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -244,22 +244,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -277,10 +277,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionValidatingAdmissionPolicyBinding** > V1Status deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -340,22 +340,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -373,10 +373,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteValidatingAdmissionPolicy** > V1Status deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -429,15 +429,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -455,11 +455,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteValidatingAdmissionPolicyBinding** > V1Status deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -512,15 +512,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -538,11 +538,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -605,10 +605,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listValidatingAdmissionPolicy** > V1alpha1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -665,19 +665,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -695,10 +695,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listValidatingAdmissionPolicyBinding** > V1alpha1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -755,19 +755,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -785,10 +785,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchValidatingAdmissionPolicy** > V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -841,15 +841,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -867,11 +867,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchValidatingAdmissionPolicyBinding** > V1alpha1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -924,15 +924,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -950,11 +950,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchValidatingAdmissionPolicyStatus** > V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1007,15 +1007,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1033,11 +1033,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readValidatingAdmissionPolicy** > V1alpha1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(name, pretty) @@ -1085,10 +1085,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1106,10 +1106,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readValidatingAdmissionPolicyBinding** > V1alpha1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(name, pretty) @@ -1157,10 +1157,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1178,10 +1178,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readValidatingAdmissionPolicyStatus** > V1alpha1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(name, pretty) @@ -1229,10 +1229,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1250,10 +1250,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceValidatingAdmissionPolicy** > V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1305,14 +1305,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1330,11 +1330,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceValidatingAdmissionPolicyBinding** > V1alpha1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1386,14 +1386,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **body** | [**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **body** | [**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1411,11 +1411,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceValidatingAdmissionPolicyStatus** > V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1467,14 +1467,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1492,7 +1492,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/ApiextensionsApi.md b/kubernetes/docs/ApiextensionsApi.md index 492e77ea90..c141bee14f 100644 --- a/kubernetes/docs/ApiextensionsApi.md +++ b/kubernetes/docs/ApiextensionsApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](ApiextensionsApi.md#getAPIGroup) | **GET** /apis/apiextensions.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](ApiextensionsApi.md#getAPIGroup) | **GET** /apis/apiextensions.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/ApiextensionsV1Api.md b/kubernetes/docs/ApiextensionsV1Api.md index 71f6ee9306..d8fe16f1f5 100644 --- a/kubernetes/docs/ApiextensionsV1Api.md +++ b/kubernetes/docs/ApiextensionsV1Api.md @@ -2,22 +2,22 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createCustomResourceDefinition**](ApiextensionsV1Api.md#createCustomResourceDefinition) | **POST** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | -[**deleteCollectionCustomResourceDefinition**](ApiextensionsV1Api.md#deleteCollectionCustomResourceDefinition) | **DELETE** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | -[**deleteCustomResourceDefinition**](ApiextensionsV1Api.md#deleteCustomResourceDefinition) | **DELETE** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} | -[**getAPIResources**](ApiextensionsV1Api.md#getAPIResources) | **GET** /apis/apiextensions.k8s.io/v1/ | -[**listCustomResourceDefinition**](ApiextensionsV1Api.md#listCustomResourceDefinition) | **GET** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | -[**patchCustomResourceDefinition**](ApiextensionsV1Api.md#patchCustomResourceDefinition) | **PATCH** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} | -[**patchCustomResourceDefinitionStatus**](ApiextensionsV1Api.md#patchCustomResourceDefinitionStatus) | **PATCH** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status | -[**readCustomResourceDefinition**](ApiextensionsV1Api.md#readCustomResourceDefinition) | **GET** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} | -[**readCustomResourceDefinitionStatus**](ApiextensionsV1Api.md#readCustomResourceDefinitionStatus) | **GET** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status | -[**replaceCustomResourceDefinition**](ApiextensionsV1Api.md#replaceCustomResourceDefinition) | **PUT** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} | -[**replaceCustomResourceDefinitionStatus**](ApiextensionsV1Api.md#replaceCustomResourceDefinitionStatus) | **PUT** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createCustomResourceDefinition**](ApiextensionsV1Api.md#createCustomResourceDefinition) | **POST** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | | +| [**deleteCollectionCustomResourceDefinition**](ApiextensionsV1Api.md#deleteCollectionCustomResourceDefinition) | **DELETE** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | | +| [**deleteCustomResourceDefinition**](ApiextensionsV1Api.md#deleteCustomResourceDefinition) | **DELETE** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} | | +| [**getAPIResources**](ApiextensionsV1Api.md#getAPIResources) | **GET** /apis/apiextensions.k8s.io/v1/ | | +| [**listCustomResourceDefinition**](ApiextensionsV1Api.md#listCustomResourceDefinition) | **GET** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | | +| [**patchCustomResourceDefinition**](ApiextensionsV1Api.md#patchCustomResourceDefinition) | **PATCH** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} | | +| [**patchCustomResourceDefinitionStatus**](ApiextensionsV1Api.md#patchCustomResourceDefinitionStatus) | **PATCH** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status | | +| [**readCustomResourceDefinition**](ApiextensionsV1Api.md#readCustomResourceDefinition) | **GET** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} | | +| [**readCustomResourceDefinitionStatus**](ApiextensionsV1Api.md#readCustomResourceDefinitionStatus) | **GET** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status | | +| [**replaceCustomResourceDefinition**](ApiextensionsV1Api.md#replaceCustomResourceDefinition) | **PUT** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} | | +| [**replaceCustomResourceDefinitionStatus**](ApiextensionsV1Api.md#replaceCustomResourceDefinitionStatus) | **PUT** /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status | | + + + # **createCustomResourceDefinition** > V1CustomResourceDefinition createCustomResourceDefinition(body, pretty, dryRun, fieldManager, fieldValidation) @@ -68,13 +68,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -92,12 +92,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionCustomResourceDefinition** > V1Status deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -157,22 +157,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -190,10 +190,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCustomResourceDefinition** > V1Status deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -246,15 +246,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CustomResourceDefinition | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CustomResourceDefinition | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -272,11 +272,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -339,10 +339,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listCustomResourceDefinition** > V1CustomResourceDefinitionList listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -399,19 +399,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -429,10 +429,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchCustomResourceDefinition** > V1CustomResourceDefinition patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -485,15 +485,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CustomResourceDefinition | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CustomResourceDefinition | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -511,11 +511,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchCustomResourceDefinitionStatus** > V1CustomResourceDefinition patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -568,15 +568,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CustomResourceDefinition | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CustomResourceDefinition | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -594,11 +594,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readCustomResourceDefinition** > V1CustomResourceDefinition readCustomResourceDefinition(name, pretty) @@ -646,10 +646,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CustomResourceDefinition | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CustomResourceDefinition | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -667,10 +667,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readCustomResourceDefinitionStatus** > V1CustomResourceDefinition readCustomResourceDefinitionStatus(name, pretty) @@ -718,10 +718,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CustomResourceDefinition | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CustomResourceDefinition | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -739,10 +739,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceCustomResourceDefinition** > V1CustomResourceDefinition replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -794,14 +794,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CustomResourceDefinition | - **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CustomResourceDefinition | | +| **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -819,11 +819,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceCustomResourceDefinitionStatus** > V1CustomResourceDefinition replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -875,14 +875,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CustomResourceDefinition | - **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CustomResourceDefinition | | +| **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -900,7 +900,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/ApiextensionsV1ServiceReference.md b/kubernetes/docs/ApiextensionsV1ServiceReference.md index 8de093ea7a..2719d3b0c3 100644 --- a/kubernetes/docs/ApiextensionsV1ServiceReference.md +++ b/kubernetes/docs/ApiextensionsV1ServiceReference.md @@ -3,14 +3,15 @@ # ApiextensionsV1ServiceReference ServiceReference holds a reference to Service.legacy.k8s.io + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name is the name of the service. Required | -**namespace** | **String** | namespace is the namespace of the service. Required | -**path** | **String** | path is an optional URL path at which the webhook will be contacted. | [optional] -**port** | **Integer** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name is the name of the service. Required | | +|**namespace** | **String** | namespace is the namespace of the service. Required | | +|**path** | **String** | path is an optional URL path at which the webhook will be contacted. | [optional] | +|**port** | **Integer** | 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. | [optional] | diff --git a/kubernetes/docs/ApiextensionsV1WebhookClientConfig.md b/kubernetes/docs/ApiextensionsV1WebhookClientConfig.md index 630c735bc6..b6b7269548 100644 --- a/kubernetes/docs/ApiextensionsV1WebhookClientConfig.md +++ b/kubernetes/docs/ApiextensionsV1WebhookClientConfig.md @@ -3,13 +3,14 @@ # ApiextensionsV1WebhookClientConfig WebhookClientConfig contains the information to make a TLS connection with the webhook. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**caBundle** | **byte[]** | caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] -**service** | [**ApiextensionsV1ServiceReference**](ApiextensionsV1ServiceReference.md) | | [optional] -**url** | **String** | url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**caBundle** | **byte[]** | caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] | +|**service** | [**ApiextensionsV1ServiceReference**](ApiextensionsV1ServiceReference.md) | | [optional] | +|**url** | **String** | url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] | diff --git a/kubernetes/docs/ApiregistrationApi.md b/kubernetes/docs/ApiregistrationApi.md index 24854cdad0..15358a84b5 100644 --- a/kubernetes/docs/ApiregistrationApi.md +++ b/kubernetes/docs/ApiregistrationApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](ApiregistrationApi.md#getAPIGroup) | **GET** /apis/apiregistration.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](ApiregistrationApi.md#getAPIGroup) | **GET** /apis/apiregistration.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/ApiregistrationV1Api.md b/kubernetes/docs/ApiregistrationV1Api.md index 204235cc58..b3ec947041 100644 --- a/kubernetes/docs/ApiregistrationV1Api.md +++ b/kubernetes/docs/ApiregistrationV1Api.md @@ -2,22 +2,22 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createAPIService**](ApiregistrationV1Api.md#createAPIService) | **POST** /apis/apiregistration.k8s.io/v1/apiservices | -[**deleteAPIService**](ApiregistrationV1Api.md#deleteAPIService) | **DELETE** /apis/apiregistration.k8s.io/v1/apiservices/{name} | -[**deleteCollectionAPIService**](ApiregistrationV1Api.md#deleteCollectionAPIService) | **DELETE** /apis/apiregistration.k8s.io/v1/apiservices | -[**getAPIResources**](ApiregistrationV1Api.md#getAPIResources) | **GET** /apis/apiregistration.k8s.io/v1/ | -[**listAPIService**](ApiregistrationV1Api.md#listAPIService) | **GET** /apis/apiregistration.k8s.io/v1/apiservices | -[**patchAPIService**](ApiregistrationV1Api.md#patchAPIService) | **PATCH** /apis/apiregistration.k8s.io/v1/apiservices/{name} | -[**patchAPIServiceStatus**](ApiregistrationV1Api.md#patchAPIServiceStatus) | **PATCH** /apis/apiregistration.k8s.io/v1/apiservices/{name}/status | -[**readAPIService**](ApiregistrationV1Api.md#readAPIService) | **GET** /apis/apiregistration.k8s.io/v1/apiservices/{name} | -[**readAPIServiceStatus**](ApiregistrationV1Api.md#readAPIServiceStatus) | **GET** /apis/apiregistration.k8s.io/v1/apiservices/{name}/status | -[**replaceAPIService**](ApiregistrationV1Api.md#replaceAPIService) | **PUT** /apis/apiregistration.k8s.io/v1/apiservices/{name} | -[**replaceAPIServiceStatus**](ApiregistrationV1Api.md#replaceAPIServiceStatus) | **PUT** /apis/apiregistration.k8s.io/v1/apiservices/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createAPIService**](ApiregistrationV1Api.md#createAPIService) | **POST** /apis/apiregistration.k8s.io/v1/apiservices | | +| [**deleteAPIService**](ApiregistrationV1Api.md#deleteAPIService) | **DELETE** /apis/apiregistration.k8s.io/v1/apiservices/{name} | | +| [**deleteCollectionAPIService**](ApiregistrationV1Api.md#deleteCollectionAPIService) | **DELETE** /apis/apiregistration.k8s.io/v1/apiservices | | +| [**getAPIResources**](ApiregistrationV1Api.md#getAPIResources) | **GET** /apis/apiregistration.k8s.io/v1/ | | +| [**listAPIService**](ApiregistrationV1Api.md#listAPIService) | **GET** /apis/apiregistration.k8s.io/v1/apiservices | | +| [**patchAPIService**](ApiregistrationV1Api.md#patchAPIService) | **PATCH** /apis/apiregistration.k8s.io/v1/apiservices/{name} | | +| [**patchAPIServiceStatus**](ApiregistrationV1Api.md#patchAPIServiceStatus) | **PATCH** /apis/apiregistration.k8s.io/v1/apiservices/{name}/status | | +| [**readAPIService**](ApiregistrationV1Api.md#readAPIService) | **GET** /apis/apiregistration.k8s.io/v1/apiservices/{name} | | +| [**readAPIServiceStatus**](ApiregistrationV1Api.md#readAPIServiceStatus) | **GET** /apis/apiregistration.k8s.io/v1/apiservices/{name}/status | | +| [**replaceAPIService**](ApiregistrationV1Api.md#replaceAPIService) | **PUT** /apis/apiregistration.k8s.io/v1/apiservices/{name} | | +| [**replaceAPIServiceStatus**](ApiregistrationV1Api.md#replaceAPIServiceStatus) | **PUT** /apis/apiregistration.k8s.io/v1/apiservices/{name}/status | | + + + # **createAPIService** > V1APIService createAPIService(body, pretty, dryRun, fieldManager, fieldValidation) @@ -68,13 +68,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1APIService**](V1APIService.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1APIService**](V1APIService.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -92,12 +92,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteAPIService** > V1Status deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -150,15 +150,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the APIService | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the APIService | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -176,11 +176,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionAPIService** > V1Status deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -240,22 +240,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -273,10 +273,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -339,10 +339,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listAPIService** > V1APIServiceList listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -399,19 +399,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -429,10 +429,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchAPIService** > V1APIService patchAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -485,15 +485,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the APIService | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the APIService | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -511,11 +511,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchAPIServiceStatus** > V1APIService patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -568,15 +568,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the APIService | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the APIService | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -594,11 +594,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readAPIService** > V1APIService readAPIService(name, pretty) @@ -646,10 +646,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the APIService | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the APIService | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -667,10 +667,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readAPIServiceStatus** > V1APIService readAPIServiceStatus(name, pretty) @@ -718,10 +718,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the APIService | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the APIService | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -739,10 +739,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceAPIService** > V1APIService replaceAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -794,14 +794,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the APIService | - **body** | [**V1APIService**](V1APIService.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the APIService | | +| **body** | [**V1APIService**](V1APIService.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -819,11 +819,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceAPIServiceStatus** > V1APIService replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -875,14 +875,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the APIService | - **body** | [**V1APIService**](V1APIService.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the APIService | | +| **body** | [**V1APIService**](V1APIService.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -900,7 +900,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/ApiregistrationV1ServiceReference.md b/kubernetes/docs/ApiregistrationV1ServiceReference.md index 267fdde0e7..67701f7685 100644 --- a/kubernetes/docs/ApiregistrationV1ServiceReference.md +++ b/kubernetes/docs/ApiregistrationV1ServiceReference.md @@ -3,13 +3,14 @@ # ApiregistrationV1ServiceReference ServiceReference holds a reference to Service.legacy.k8s.io + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name is the name of the service | [optional] -**namespace** | **String** | Namespace is the namespace of the service | [optional] -**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name is the name of the service | [optional] | +|**namespace** | **String** | Namespace is the namespace of the service | [optional] | +|**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] | diff --git a/kubernetes/docs/ApisApi.md b/kubernetes/docs/ApisApi.md index 923ef2fc0c..1267b3c8ff 100644 --- a/kubernetes/docs/ApisApi.md +++ b/kubernetes/docs/ApisApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIVersions**](ApisApi.md#getAPIVersions) | **GET** /apis/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIVersions**](ApisApi.md#getAPIVersions) | **GET** /apis/ | | - + # **getAPIVersions** > V1APIGroupList getAPIVersions() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AppsApi.md b/kubernetes/docs/AppsApi.md index 46e9ca1621..62cef43de0 100644 --- a/kubernetes/docs/AppsApi.md +++ b/kubernetes/docs/AppsApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AppsApi.md#getAPIGroup) | **GET** /apis/apps/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](AppsApi.md#getAPIGroup) | **GET** /apis/apps/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AppsV1Api.md b/kubernetes/docs/AppsV1Api.md index bddce42189..6a77803626 100644 --- a/kubernetes/docs/AppsV1Api.md +++ b/kubernetes/docs/AppsV1Api.md @@ -2,73 +2,73 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedControllerRevision**](AppsV1Api.md#createNamespacedControllerRevision) | **POST** /apis/apps/v1/namespaces/{namespace}/controllerrevisions | -[**createNamespacedDaemonSet**](AppsV1Api.md#createNamespacedDaemonSet) | **POST** /apis/apps/v1/namespaces/{namespace}/daemonsets | -[**createNamespacedDeployment**](AppsV1Api.md#createNamespacedDeployment) | **POST** /apis/apps/v1/namespaces/{namespace}/deployments | -[**createNamespacedReplicaSet**](AppsV1Api.md#createNamespacedReplicaSet) | **POST** /apis/apps/v1/namespaces/{namespace}/replicasets | -[**createNamespacedStatefulSet**](AppsV1Api.md#createNamespacedStatefulSet) | **POST** /apis/apps/v1/namespaces/{namespace}/statefulsets | -[**deleteCollectionNamespacedControllerRevision**](AppsV1Api.md#deleteCollectionNamespacedControllerRevision) | **DELETE** /apis/apps/v1/namespaces/{namespace}/controllerrevisions | -[**deleteCollectionNamespacedDaemonSet**](AppsV1Api.md#deleteCollectionNamespacedDaemonSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/daemonsets | -[**deleteCollectionNamespacedDeployment**](AppsV1Api.md#deleteCollectionNamespacedDeployment) | **DELETE** /apis/apps/v1/namespaces/{namespace}/deployments | -[**deleteCollectionNamespacedReplicaSet**](AppsV1Api.md#deleteCollectionNamespacedReplicaSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/replicasets | -[**deleteCollectionNamespacedStatefulSet**](AppsV1Api.md#deleteCollectionNamespacedStatefulSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/statefulsets | -[**deleteNamespacedControllerRevision**](AppsV1Api.md#deleteNamespacedControllerRevision) | **DELETE** /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} | -[**deleteNamespacedDaemonSet**](AppsV1Api.md#deleteNamespacedDaemonSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} | -[**deleteNamespacedDeployment**](AppsV1Api.md#deleteNamespacedDeployment) | **DELETE** /apis/apps/v1/namespaces/{namespace}/deployments/{name} | -[**deleteNamespacedReplicaSet**](AppsV1Api.md#deleteNamespacedReplicaSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/replicasets/{name} | -[**deleteNamespacedStatefulSet**](AppsV1Api.md#deleteNamespacedStatefulSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} | -[**getAPIResources**](AppsV1Api.md#getAPIResources) | **GET** /apis/apps/v1/ | -[**listControllerRevisionForAllNamespaces**](AppsV1Api.md#listControllerRevisionForAllNamespaces) | **GET** /apis/apps/v1/controllerrevisions | -[**listDaemonSetForAllNamespaces**](AppsV1Api.md#listDaemonSetForAllNamespaces) | **GET** /apis/apps/v1/daemonsets | -[**listDeploymentForAllNamespaces**](AppsV1Api.md#listDeploymentForAllNamespaces) | **GET** /apis/apps/v1/deployments | -[**listNamespacedControllerRevision**](AppsV1Api.md#listNamespacedControllerRevision) | **GET** /apis/apps/v1/namespaces/{namespace}/controllerrevisions | -[**listNamespacedDaemonSet**](AppsV1Api.md#listNamespacedDaemonSet) | **GET** /apis/apps/v1/namespaces/{namespace}/daemonsets | -[**listNamespacedDeployment**](AppsV1Api.md#listNamespacedDeployment) | **GET** /apis/apps/v1/namespaces/{namespace}/deployments | -[**listNamespacedReplicaSet**](AppsV1Api.md#listNamespacedReplicaSet) | **GET** /apis/apps/v1/namespaces/{namespace}/replicasets | -[**listNamespacedStatefulSet**](AppsV1Api.md#listNamespacedStatefulSet) | **GET** /apis/apps/v1/namespaces/{namespace}/statefulsets | -[**listReplicaSetForAllNamespaces**](AppsV1Api.md#listReplicaSetForAllNamespaces) | **GET** /apis/apps/v1/replicasets | -[**listStatefulSetForAllNamespaces**](AppsV1Api.md#listStatefulSetForAllNamespaces) | **GET** /apis/apps/v1/statefulsets | -[**patchNamespacedControllerRevision**](AppsV1Api.md#patchNamespacedControllerRevision) | **PATCH** /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} | -[**patchNamespacedDaemonSet**](AppsV1Api.md#patchNamespacedDaemonSet) | **PATCH** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} | -[**patchNamespacedDaemonSetStatus**](AppsV1Api.md#patchNamespacedDaemonSetStatus) | **PATCH** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | -[**patchNamespacedDeployment**](AppsV1Api.md#patchNamespacedDeployment) | **PATCH** /apis/apps/v1/namespaces/{namespace}/deployments/{name} | -[**patchNamespacedDeploymentScale**](AppsV1Api.md#patchNamespacedDeploymentScale) | **PATCH** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale | -[**patchNamespacedDeploymentStatus**](AppsV1Api.md#patchNamespacedDeploymentStatus) | **PATCH** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status | -[**patchNamespacedReplicaSet**](AppsV1Api.md#patchNamespacedReplicaSet) | **PATCH** /apis/apps/v1/namespaces/{namespace}/replicasets/{name} | -[**patchNamespacedReplicaSetScale**](AppsV1Api.md#patchNamespacedReplicaSetScale) | **PATCH** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale | -[**patchNamespacedReplicaSetStatus**](AppsV1Api.md#patchNamespacedReplicaSetStatus) | **PATCH** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status | -[**patchNamespacedStatefulSet**](AppsV1Api.md#patchNamespacedStatefulSet) | **PATCH** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} | -[**patchNamespacedStatefulSetScale**](AppsV1Api.md#patchNamespacedStatefulSetScale) | **PATCH** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale | -[**patchNamespacedStatefulSetStatus**](AppsV1Api.md#patchNamespacedStatefulSetStatus) | **PATCH** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status | -[**readNamespacedControllerRevision**](AppsV1Api.md#readNamespacedControllerRevision) | **GET** /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} | -[**readNamespacedDaemonSet**](AppsV1Api.md#readNamespacedDaemonSet) | **GET** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} | -[**readNamespacedDaemonSetStatus**](AppsV1Api.md#readNamespacedDaemonSetStatus) | **GET** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | -[**readNamespacedDeployment**](AppsV1Api.md#readNamespacedDeployment) | **GET** /apis/apps/v1/namespaces/{namespace}/deployments/{name} | -[**readNamespacedDeploymentScale**](AppsV1Api.md#readNamespacedDeploymentScale) | **GET** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale | -[**readNamespacedDeploymentStatus**](AppsV1Api.md#readNamespacedDeploymentStatus) | **GET** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status | -[**readNamespacedReplicaSet**](AppsV1Api.md#readNamespacedReplicaSet) | **GET** /apis/apps/v1/namespaces/{namespace}/replicasets/{name} | -[**readNamespacedReplicaSetScale**](AppsV1Api.md#readNamespacedReplicaSetScale) | **GET** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale | -[**readNamespacedReplicaSetStatus**](AppsV1Api.md#readNamespacedReplicaSetStatus) | **GET** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status | -[**readNamespacedStatefulSet**](AppsV1Api.md#readNamespacedStatefulSet) | **GET** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} | -[**readNamespacedStatefulSetScale**](AppsV1Api.md#readNamespacedStatefulSetScale) | **GET** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale | -[**readNamespacedStatefulSetStatus**](AppsV1Api.md#readNamespacedStatefulSetStatus) | **GET** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status | -[**replaceNamespacedControllerRevision**](AppsV1Api.md#replaceNamespacedControllerRevision) | **PUT** /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} | -[**replaceNamespacedDaemonSet**](AppsV1Api.md#replaceNamespacedDaemonSet) | **PUT** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} | -[**replaceNamespacedDaemonSetStatus**](AppsV1Api.md#replaceNamespacedDaemonSetStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | -[**replaceNamespacedDeployment**](AppsV1Api.md#replaceNamespacedDeployment) | **PUT** /apis/apps/v1/namespaces/{namespace}/deployments/{name} | -[**replaceNamespacedDeploymentScale**](AppsV1Api.md#replaceNamespacedDeploymentScale) | **PUT** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale | -[**replaceNamespacedDeploymentStatus**](AppsV1Api.md#replaceNamespacedDeploymentStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status | -[**replaceNamespacedReplicaSet**](AppsV1Api.md#replaceNamespacedReplicaSet) | **PUT** /apis/apps/v1/namespaces/{namespace}/replicasets/{name} | -[**replaceNamespacedReplicaSetScale**](AppsV1Api.md#replaceNamespacedReplicaSetScale) | **PUT** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale | -[**replaceNamespacedReplicaSetStatus**](AppsV1Api.md#replaceNamespacedReplicaSetStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status | -[**replaceNamespacedStatefulSet**](AppsV1Api.md#replaceNamespacedStatefulSet) | **PUT** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} | -[**replaceNamespacedStatefulSetScale**](AppsV1Api.md#replaceNamespacedStatefulSetScale) | **PUT** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale | -[**replaceNamespacedStatefulSetStatus**](AppsV1Api.md#replaceNamespacedStatefulSetStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedControllerRevision**](AppsV1Api.md#createNamespacedControllerRevision) | **POST** /apis/apps/v1/namespaces/{namespace}/controllerrevisions | | +| [**createNamespacedDaemonSet**](AppsV1Api.md#createNamespacedDaemonSet) | **POST** /apis/apps/v1/namespaces/{namespace}/daemonsets | | +| [**createNamespacedDeployment**](AppsV1Api.md#createNamespacedDeployment) | **POST** /apis/apps/v1/namespaces/{namespace}/deployments | | +| [**createNamespacedReplicaSet**](AppsV1Api.md#createNamespacedReplicaSet) | **POST** /apis/apps/v1/namespaces/{namespace}/replicasets | | +| [**createNamespacedStatefulSet**](AppsV1Api.md#createNamespacedStatefulSet) | **POST** /apis/apps/v1/namespaces/{namespace}/statefulsets | | +| [**deleteCollectionNamespacedControllerRevision**](AppsV1Api.md#deleteCollectionNamespacedControllerRevision) | **DELETE** /apis/apps/v1/namespaces/{namespace}/controllerrevisions | | +| [**deleteCollectionNamespacedDaemonSet**](AppsV1Api.md#deleteCollectionNamespacedDaemonSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/daemonsets | | +| [**deleteCollectionNamespacedDeployment**](AppsV1Api.md#deleteCollectionNamespacedDeployment) | **DELETE** /apis/apps/v1/namespaces/{namespace}/deployments | | +| [**deleteCollectionNamespacedReplicaSet**](AppsV1Api.md#deleteCollectionNamespacedReplicaSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/replicasets | | +| [**deleteCollectionNamespacedStatefulSet**](AppsV1Api.md#deleteCollectionNamespacedStatefulSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/statefulsets | | +| [**deleteNamespacedControllerRevision**](AppsV1Api.md#deleteNamespacedControllerRevision) | **DELETE** /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} | | +| [**deleteNamespacedDaemonSet**](AppsV1Api.md#deleteNamespacedDaemonSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} | | +| [**deleteNamespacedDeployment**](AppsV1Api.md#deleteNamespacedDeployment) | **DELETE** /apis/apps/v1/namespaces/{namespace}/deployments/{name} | | +| [**deleteNamespacedReplicaSet**](AppsV1Api.md#deleteNamespacedReplicaSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/replicasets/{name} | | +| [**deleteNamespacedStatefulSet**](AppsV1Api.md#deleteNamespacedStatefulSet) | **DELETE** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} | | +| [**getAPIResources**](AppsV1Api.md#getAPIResources) | **GET** /apis/apps/v1/ | | +| [**listControllerRevisionForAllNamespaces**](AppsV1Api.md#listControllerRevisionForAllNamespaces) | **GET** /apis/apps/v1/controllerrevisions | | +| [**listDaemonSetForAllNamespaces**](AppsV1Api.md#listDaemonSetForAllNamespaces) | **GET** /apis/apps/v1/daemonsets | | +| [**listDeploymentForAllNamespaces**](AppsV1Api.md#listDeploymentForAllNamespaces) | **GET** /apis/apps/v1/deployments | | +| [**listNamespacedControllerRevision**](AppsV1Api.md#listNamespacedControllerRevision) | **GET** /apis/apps/v1/namespaces/{namespace}/controllerrevisions | | +| [**listNamespacedDaemonSet**](AppsV1Api.md#listNamespacedDaemonSet) | **GET** /apis/apps/v1/namespaces/{namespace}/daemonsets | | +| [**listNamespacedDeployment**](AppsV1Api.md#listNamespacedDeployment) | **GET** /apis/apps/v1/namespaces/{namespace}/deployments | | +| [**listNamespacedReplicaSet**](AppsV1Api.md#listNamespacedReplicaSet) | **GET** /apis/apps/v1/namespaces/{namespace}/replicasets | | +| [**listNamespacedStatefulSet**](AppsV1Api.md#listNamespacedStatefulSet) | **GET** /apis/apps/v1/namespaces/{namespace}/statefulsets | | +| [**listReplicaSetForAllNamespaces**](AppsV1Api.md#listReplicaSetForAllNamespaces) | **GET** /apis/apps/v1/replicasets | | +| [**listStatefulSetForAllNamespaces**](AppsV1Api.md#listStatefulSetForAllNamespaces) | **GET** /apis/apps/v1/statefulsets | | +| [**patchNamespacedControllerRevision**](AppsV1Api.md#patchNamespacedControllerRevision) | **PATCH** /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} | | +| [**patchNamespacedDaemonSet**](AppsV1Api.md#patchNamespacedDaemonSet) | **PATCH** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} | | +| [**patchNamespacedDaemonSetStatus**](AppsV1Api.md#patchNamespacedDaemonSetStatus) | **PATCH** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | | +| [**patchNamespacedDeployment**](AppsV1Api.md#patchNamespacedDeployment) | **PATCH** /apis/apps/v1/namespaces/{namespace}/deployments/{name} | | +| [**patchNamespacedDeploymentScale**](AppsV1Api.md#patchNamespacedDeploymentScale) | **PATCH** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale | | +| [**patchNamespacedDeploymentStatus**](AppsV1Api.md#patchNamespacedDeploymentStatus) | **PATCH** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status | | +| [**patchNamespacedReplicaSet**](AppsV1Api.md#patchNamespacedReplicaSet) | **PATCH** /apis/apps/v1/namespaces/{namespace}/replicasets/{name} | | +| [**patchNamespacedReplicaSetScale**](AppsV1Api.md#patchNamespacedReplicaSetScale) | **PATCH** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale | | +| [**patchNamespacedReplicaSetStatus**](AppsV1Api.md#patchNamespacedReplicaSetStatus) | **PATCH** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status | | +| [**patchNamespacedStatefulSet**](AppsV1Api.md#patchNamespacedStatefulSet) | **PATCH** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} | | +| [**patchNamespacedStatefulSetScale**](AppsV1Api.md#patchNamespacedStatefulSetScale) | **PATCH** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale | | +| [**patchNamespacedStatefulSetStatus**](AppsV1Api.md#patchNamespacedStatefulSetStatus) | **PATCH** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status | | +| [**readNamespacedControllerRevision**](AppsV1Api.md#readNamespacedControllerRevision) | **GET** /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} | | +| [**readNamespacedDaemonSet**](AppsV1Api.md#readNamespacedDaemonSet) | **GET** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} | | +| [**readNamespacedDaemonSetStatus**](AppsV1Api.md#readNamespacedDaemonSetStatus) | **GET** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | | +| [**readNamespacedDeployment**](AppsV1Api.md#readNamespacedDeployment) | **GET** /apis/apps/v1/namespaces/{namespace}/deployments/{name} | | +| [**readNamespacedDeploymentScale**](AppsV1Api.md#readNamespacedDeploymentScale) | **GET** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale | | +| [**readNamespacedDeploymentStatus**](AppsV1Api.md#readNamespacedDeploymentStatus) | **GET** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status | | +| [**readNamespacedReplicaSet**](AppsV1Api.md#readNamespacedReplicaSet) | **GET** /apis/apps/v1/namespaces/{namespace}/replicasets/{name} | | +| [**readNamespacedReplicaSetScale**](AppsV1Api.md#readNamespacedReplicaSetScale) | **GET** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale | | +| [**readNamespacedReplicaSetStatus**](AppsV1Api.md#readNamespacedReplicaSetStatus) | **GET** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status | | +| [**readNamespacedStatefulSet**](AppsV1Api.md#readNamespacedStatefulSet) | **GET** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} | | +| [**readNamespacedStatefulSetScale**](AppsV1Api.md#readNamespacedStatefulSetScale) | **GET** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale | | +| [**readNamespacedStatefulSetStatus**](AppsV1Api.md#readNamespacedStatefulSetStatus) | **GET** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status | | +| [**replaceNamespacedControllerRevision**](AppsV1Api.md#replaceNamespacedControllerRevision) | **PUT** /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} | | +| [**replaceNamespacedDaemonSet**](AppsV1Api.md#replaceNamespacedDaemonSet) | **PUT** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} | | +| [**replaceNamespacedDaemonSetStatus**](AppsV1Api.md#replaceNamespacedDaemonSetStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status | | +| [**replaceNamespacedDeployment**](AppsV1Api.md#replaceNamespacedDeployment) | **PUT** /apis/apps/v1/namespaces/{namespace}/deployments/{name} | | +| [**replaceNamespacedDeploymentScale**](AppsV1Api.md#replaceNamespacedDeploymentScale) | **PUT** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale | | +| [**replaceNamespacedDeploymentStatus**](AppsV1Api.md#replaceNamespacedDeploymentStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status | | +| [**replaceNamespacedReplicaSet**](AppsV1Api.md#replaceNamespacedReplicaSet) | **PUT** /apis/apps/v1/namespaces/{namespace}/replicasets/{name} | | +| [**replaceNamespacedReplicaSetScale**](AppsV1Api.md#replaceNamespacedReplicaSetScale) | **PUT** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale | | +| [**replaceNamespacedReplicaSetStatus**](AppsV1Api.md#replaceNamespacedReplicaSetStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status | | +| [**replaceNamespacedStatefulSet**](AppsV1Api.md#replaceNamespacedStatefulSet) | **PUT** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} | | +| [**replaceNamespacedStatefulSetScale**](AppsV1Api.md#replaceNamespacedStatefulSetScale) | **PUT** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale | | +| [**replaceNamespacedStatefulSetStatus**](AppsV1Api.md#replaceNamespacedStatefulSetStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status | | + + + # **createNamespacedControllerRevision** > V1ControllerRevision createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -120,14 +120,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ControllerRevision**](V1ControllerRevision.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ControllerRevision**](V1ControllerRevision.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -145,12 +145,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedDaemonSet** > V1DaemonSet createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -202,14 +202,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DaemonSet**](V1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1DaemonSet**](V1DaemonSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -227,12 +227,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedDeployment** > V1Deployment createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -284,14 +284,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Deployment**](V1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Deployment**](V1Deployment.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -309,12 +309,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedReplicaSet** > V1ReplicaSet createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -366,14 +366,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -391,12 +391,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedStatefulSet** > V1StatefulSet createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -448,14 +448,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1StatefulSet**](V1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1StatefulSet**](V1StatefulSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -473,12 +473,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedControllerRevision** > V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -539,23 +539,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -573,10 +573,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedDaemonSet** > V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -637,23 +637,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -671,10 +671,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedDeployment** > V1Status deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -735,23 +735,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -769,10 +769,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedReplicaSet** > V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -833,23 +833,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -867,10 +867,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedStatefulSet** > V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -931,23 +931,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -965,10 +965,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedControllerRevision** > V1Status deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1022,16 +1022,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ControllerRevision | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ControllerRevision | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1049,11 +1049,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedDaemonSet** > V1Status deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1107,16 +1107,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DaemonSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1134,11 +1134,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedDeployment** > V1Status deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1192,16 +1192,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Deployment | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1219,11 +1219,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedReplicaSet** > V1Status deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1277,16 +1277,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicaSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1304,11 +1304,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedStatefulSet** > V1Status deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1362,16 +1362,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StatefulSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1389,11 +1389,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -1456,10 +1456,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listControllerRevisionForAllNamespaces** > V1ControllerRevisionList listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1516,19 +1516,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1546,10 +1546,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listDaemonSetForAllNamespaces** > V1DaemonSetList listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1606,19 +1606,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1636,10 +1636,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listDeploymentForAllNamespaces** > V1DeploymentList listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1696,19 +1696,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1726,10 +1726,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedControllerRevision** > V1ControllerRevisionList listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1787,20 +1787,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1818,10 +1818,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedDaemonSet** > V1DaemonSetList listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1879,20 +1879,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1910,10 +1910,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedDeployment** > V1DeploymentList listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1971,20 +1971,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -2002,10 +2002,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedReplicaSet** > V1ReplicaSetList listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -2063,20 +2063,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -2094,10 +2094,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedStatefulSet** > V1StatefulSetList listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -2155,20 +2155,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -2186,10 +2186,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listReplicaSetForAllNamespaces** > V1ReplicaSetList listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -2246,19 +2246,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -2276,10 +2276,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listStatefulSetForAllNamespaces** > V1StatefulSetList listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -2336,19 +2336,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -2366,10 +2366,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedControllerRevision** > V1ControllerRevision patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2423,16 +2423,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ControllerRevision | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ControllerRevision | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2450,11 +2450,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedDaemonSet** > V1DaemonSet patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2508,16 +2508,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DaemonSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2535,11 +2535,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedDaemonSetStatus** > V1DaemonSet patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2593,16 +2593,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DaemonSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2620,11 +2620,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedDeployment** > V1Deployment patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2678,16 +2678,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Deployment | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2705,11 +2705,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedDeploymentScale** > V1Scale patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2763,16 +2763,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2790,11 +2790,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedDeploymentStatus** > V1Deployment patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2848,16 +2848,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Deployment | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2875,11 +2875,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedReplicaSet** > V1ReplicaSet patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2933,16 +2933,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicaSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2960,11 +2960,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedReplicaSetScale** > V1Scale patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -3018,16 +3018,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -3045,11 +3045,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedReplicaSetStatus** > V1ReplicaSet patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -3103,16 +3103,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicaSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -3130,11 +3130,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedStatefulSet** > V1StatefulSet patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -3188,16 +3188,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StatefulSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -3215,11 +3215,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedStatefulSetScale** > V1Scale patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -3273,16 +3273,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -3300,11 +3300,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedStatefulSetStatus** > V1StatefulSet patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -3358,16 +3358,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StatefulSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -3385,11 +3385,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedControllerRevision** > V1ControllerRevision readNamespacedControllerRevision(name, namespace, pretty) @@ -3438,11 +3438,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ControllerRevision | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ControllerRevision | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3460,10 +3460,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedDaemonSet** > V1DaemonSet readNamespacedDaemonSet(name, namespace, pretty) @@ -3512,11 +3512,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DaemonSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3534,10 +3534,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedDaemonSetStatus** > V1DaemonSet readNamespacedDaemonSetStatus(name, namespace, pretty) @@ -3586,11 +3586,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DaemonSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3608,10 +3608,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedDeployment** > V1Deployment readNamespacedDeployment(name, namespace, pretty) @@ -3660,11 +3660,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Deployment | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3682,10 +3682,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedDeploymentScale** > V1Scale readNamespacedDeploymentScale(name, namespace, pretty) @@ -3734,11 +3734,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3756,10 +3756,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedDeploymentStatus** > V1Deployment readNamespacedDeploymentStatus(name, namespace, pretty) @@ -3808,11 +3808,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Deployment | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3830,10 +3830,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedReplicaSet** > V1ReplicaSet readNamespacedReplicaSet(name, namespace, pretty) @@ -3882,11 +3882,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicaSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3904,10 +3904,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedReplicaSetScale** > V1Scale readNamespacedReplicaSetScale(name, namespace, pretty) @@ -3956,11 +3956,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3978,10 +3978,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedReplicaSetStatus** > V1ReplicaSet readNamespacedReplicaSetStatus(name, namespace, pretty) @@ -4030,11 +4030,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicaSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -4052,10 +4052,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedStatefulSet** > V1StatefulSet readNamespacedStatefulSet(name, namespace, pretty) @@ -4104,11 +4104,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StatefulSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -4126,10 +4126,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedStatefulSetScale** > V1Scale readNamespacedStatefulSetScale(name, namespace, pretty) @@ -4178,11 +4178,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -4200,10 +4200,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedStatefulSetStatus** > V1StatefulSet readNamespacedStatefulSetStatus(name, namespace, pretty) @@ -4252,11 +4252,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StatefulSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -4274,10 +4274,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedControllerRevision** > V1ControllerRevision replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4330,15 +4330,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ControllerRevision | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ControllerRevision**](V1ControllerRevision.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ControllerRevision | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ControllerRevision**](V1ControllerRevision.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4356,11 +4356,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedDaemonSet** > V1DaemonSet replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4413,15 +4413,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DaemonSet**](V1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DaemonSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1DaemonSet**](V1DaemonSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4439,11 +4439,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedDaemonSetStatus** > V1DaemonSet replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4496,15 +4496,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DaemonSet**](V1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DaemonSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1DaemonSet**](V1DaemonSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4522,11 +4522,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedDeployment** > V1Deployment replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4579,15 +4579,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Deployment**](V1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Deployment | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Deployment**](V1Deployment.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4605,11 +4605,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedDeploymentScale** > V1Scale replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4662,15 +4662,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Scale**](V1Scale.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4688,11 +4688,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedDeploymentStatus** > V1Deployment replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4745,15 +4745,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Deployment**](V1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Deployment | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Deployment**](V1Deployment.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4771,11 +4771,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedReplicaSet** > V1ReplicaSet replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4828,15 +4828,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicaSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4854,11 +4854,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedReplicaSetScale** > V1Scale replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4911,15 +4911,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Scale**](V1Scale.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4937,11 +4937,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedReplicaSetStatus** > V1ReplicaSet replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4994,15 +4994,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicaSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -5020,11 +5020,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedStatefulSet** > V1StatefulSet replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -5077,15 +5077,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1StatefulSet**](V1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StatefulSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1StatefulSet**](V1StatefulSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -5103,11 +5103,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedStatefulSetScale** > V1Scale replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -5160,15 +5160,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Scale**](V1Scale.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -5186,11 +5186,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedStatefulSetStatus** > V1StatefulSet replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -5243,15 +5243,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1StatefulSet**](V1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StatefulSet | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1StatefulSet**](V1StatefulSet.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -5269,7 +5269,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AuthenticationApi.md b/kubernetes/docs/AuthenticationApi.md index 0176495c45..bf54665c16 100644 --- a/kubernetes/docs/AuthenticationApi.md +++ b/kubernetes/docs/AuthenticationApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AuthenticationApi.md#getAPIGroup) | **GET** /apis/authentication.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](AuthenticationApi.md#getAPIGroup) | **GET** /apis/authentication.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AuthenticationV1Api.md b/kubernetes/docs/AuthenticationV1Api.md index 9722168a9c..2d59115d23 100644 --- a/kubernetes/docs/AuthenticationV1Api.md +++ b/kubernetes/docs/AuthenticationV1Api.md @@ -140,13 +140,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1TokenReview**](V1TokenReview.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1TokenReview**](V1TokenReview.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -164,12 +164,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -232,6 +232,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AuthenticationV1TokenRequest.md b/kubernetes/docs/AuthenticationV1TokenRequest.md index e665a3b43c..61cd028076 100644 --- a/kubernetes/docs/AuthenticationV1TokenRequest.md +++ b/kubernetes/docs/AuthenticationV1TokenRequest.md @@ -3,15 +3,16 @@ # AuthenticationV1TokenRequest TokenRequest requests a token for a given service account. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1TokenRequestSpec**](V1TokenRequestSpec.md) | | -**status** | [**V1TokenRequestStatus**](V1TokenRequestStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1TokenRequestSpec**](V1TokenRequestSpec.md) | | | +|**status** | [**V1TokenRequestStatus**](V1TokenRequestStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/AuthenticationV1alpha1Api.md b/kubernetes/docs/AuthenticationV1alpha1Api.md index efe23a7e36..9ad8cea91c 100644 --- a/kubernetes/docs/AuthenticationV1alpha1Api.md +++ b/kubernetes/docs/AuthenticationV1alpha1Api.md @@ -2,13 +2,13 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createSelfSubjectReview**](AuthenticationV1alpha1Api.md#createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews | -[**getAPIResources**](AuthenticationV1alpha1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1alpha1/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createSelfSubjectReview**](AuthenticationV1alpha1Api.md#createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews | | +| [**getAPIResources**](AuthenticationV1alpha1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1alpha1/ | | - + # **createSelfSubjectReview** > V1alpha1SelfSubjectReview createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty) @@ -59,13 +59,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1SelfSubjectReview**](V1alpha1SelfSubjectReview.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha1SelfSubjectReview**](V1alpha1SelfSubjectReview.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -83,12 +83,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -151,6 +151,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AuthenticationV1beta1Api.md b/kubernetes/docs/AuthenticationV1beta1Api.md index cbf7c12d29..a575873f83 100644 --- a/kubernetes/docs/AuthenticationV1beta1Api.md +++ b/kubernetes/docs/AuthenticationV1beta1Api.md @@ -2,13 +2,13 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createSelfSubjectReview**](AuthenticationV1beta1Api.md#createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1beta1/selfsubjectreviews | -[**getAPIResources**](AuthenticationV1beta1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1beta1/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createSelfSubjectReview**](AuthenticationV1beta1Api.md#createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1beta1/selfsubjectreviews | | +| [**getAPIResources**](AuthenticationV1beta1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1beta1/ | | - + # **createSelfSubjectReview** > V1beta1SelfSubjectReview createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty) @@ -59,13 +59,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1SelfSubjectReview**](V1beta1SelfSubjectReview.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta1SelfSubjectReview**](V1beta1SelfSubjectReview.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -83,12 +83,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -151,6 +151,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AuthorizationApi.md b/kubernetes/docs/AuthorizationApi.md index 52bbace897..aeefcec74a 100644 --- a/kubernetes/docs/AuthorizationApi.md +++ b/kubernetes/docs/AuthorizationApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AuthorizationApi.md#getAPIGroup) | **GET** /apis/authorization.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](AuthorizationApi.md#getAPIGroup) | **GET** /apis/authorization.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AuthorizationV1Api.md b/kubernetes/docs/AuthorizationV1Api.md index ccfd992ea7..f91ec7db8b 100644 --- a/kubernetes/docs/AuthorizationV1Api.md +++ b/kubernetes/docs/AuthorizationV1Api.md @@ -2,16 +2,16 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedLocalSubjectAccessReview**](AuthorizationV1Api.md#createNamespacedLocalSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | -[**createSelfSubjectAccessReview**](AuthorizationV1Api.md#createSelfSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | -[**createSelfSubjectRulesReview**](AuthorizationV1Api.md#createSelfSubjectRulesReview) | **POST** /apis/authorization.k8s.io/v1/selfsubjectrulesreviews | -[**createSubjectAccessReview**](AuthorizationV1Api.md#createSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/subjectaccessreviews | -[**getAPIResources**](AuthorizationV1Api.md#getAPIResources) | **GET** /apis/authorization.k8s.io/v1/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedLocalSubjectAccessReview**](AuthorizationV1Api.md#createNamespacedLocalSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | | +| [**createSelfSubjectAccessReview**](AuthorizationV1Api.md#createSelfSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | | +| [**createSelfSubjectRulesReview**](AuthorizationV1Api.md#createSelfSubjectRulesReview) | **POST** /apis/authorization.k8s.io/v1/selfsubjectrulesreviews | | +| [**createSubjectAccessReview**](AuthorizationV1Api.md#createSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/subjectaccessreviews | | +| [**getAPIResources**](AuthorizationV1Api.md#getAPIResources) | **GET** /apis/authorization.k8s.io/v1/ | | - + # **createNamespacedLocalSubjectAccessReview** > V1LocalSubjectAccessReview createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, fieldValidation, pretty) @@ -63,14 +63,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -88,12 +88,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createSelfSubjectAccessReview** > V1SelfSubjectAccessReview createSelfSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty) @@ -144,13 +144,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1SelfSubjectAccessReview**](V1SelfSubjectAccessReview.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1SelfSubjectAccessReview**](V1SelfSubjectAccessReview.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -168,12 +168,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createSelfSubjectRulesReview** > V1SelfSubjectRulesReview createSelfSubjectRulesReview(body, dryRun, fieldManager, fieldValidation, pretty) @@ -224,13 +224,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1SelfSubjectRulesReview**](V1SelfSubjectRulesReview.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1SelfSubjectRulesReview**](V1SelfSubjectRulesReview.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -248,12 +248,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createSubjectAccessReview** > V1SubjectAccessReview createSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty) @@ -304,13 +304,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1SubjectAccessReview**](V1SubjectAccessReview.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1SubjectAccessReview**](V1SubjectAccessReview.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -328,12 +328,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -396,6 +396,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AutoscalingApi.md b/kubernetes/docs/AutoscalingApi.md index 7ee6b75ec9..dde0459ed8 100644 --- a/kubernetes/docs/AutoscalingApi.md +++ b/kubernetes/docs/AutoscalingApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AutoscalingApi.md#getAPIGroup) | **GET** /apis/autoscaling/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](AutoscalingApi.md#getAPIGroup) | **GET** /apis/autoscaling/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index a76cf89644..6010b68171 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -2,23 +2,23 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteCollectionNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**getAPIResources**](AutoscalingV1Api.md#getAPIResources) | **GET** /apis/autoscaling/v1/ | -[**listHorizontalPodAutoscalerForAllNamespaces**](AutoscalingV1Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v1/horizontalpodautoscalers | -[**listNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -[**patchNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**patchNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV1Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**readNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**readNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV1Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**replaceNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**replaceNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV1Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | | +| [**deleteCollectionNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | | +| [**deleteNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | | +| [**getAPIResources**](AutoscalingV1Api.md#getAPIResources) | **GET** /apis/autoscaling/v1/ | | +| [**listHorizontalPodAutoscalerForAllNamespaces**](AutoscalingV1Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v1/horizontalpodautoscalers | | +| [**listNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | | +| [**patchNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | | +| [**patchNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV1Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | | +| [**readNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | | +| [**readNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV1Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | | +| [**replaceNamespacedHorizontalPodAutoscaler**](AutoscalingV1Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | | +| [**replaceNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV1Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | | + + + # **createNamespacedHorizontalPodAutoscaler** > V1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -70,14 +70,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -95,12 +95,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedHorizontalPodAutoscaler** > V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -161,23 +161,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -195,10 +195,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedHorizontalPodAutoscaler** > V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -252,16 +252,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -279,11 +279,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -346,10 +346,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listHorizontalPodAutoscalerForAllNamespaces** > V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -406,19 +406,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -436,10 +436,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedHorizontalPodAutoscaler** > V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -497,20 +497,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -528,10 +528,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedHorizontalPodAutoscaler** > V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -585,16 +585,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -612,11 +612,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedHorizontalPodAutoscalerStatus** > V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -670,16 +670,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -697,11 +697,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedHorizontalPodAutoscaler** > V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(name, namespace, pretty) @@ -750,11 +750,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -772,10 +772,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedHorizontalPodAutoscalerStatus** > V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty) @@ -824,11 +824,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -846,10 +846,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedHorizontalPodAutoscaler** > V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -902,15 +902,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -928,11 +928,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedHorizontalPodAutoscalerStatus** > V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -985,15 +985,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1011,7 +1011,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/AutoscalingV2Api.md b/kubernetes/docs/AutoscalingV2Api.md index 54bf207e7e..c9e88d7e3f 100644 --- a/kubernetes/docs/AutoscalingV2Api.md +++ b/kubernetes/docs/AutoscalingV2Api.md @@ -2,23 +2,23 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteCollectionNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**getAPIResources**](AutoscalingV2Api.md#getAPIResources) | **GET** /apis/autoscaling/v2/ | -[**listHorizontalPodAutoscalerForAllNamespaces**](AutoscalingV2Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v2/horizontalpodautoscalers | -[**listNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers | -[**patchNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**patchNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**readNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**readNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**replaceNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**replaceNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers | | +| [**deleteCollectionNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers | | +| [**deleteNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | | +| [**getAPIResources**](AutoscalingV2Api.md#getAPIResources) | **GET** /apis/autoscaling/v2/ | | +| [**listHorizontalPodAutoscalerForAllNamespaces**](AutoscalingV2Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v2/horizontalpodautoscalers | | +| [**listNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers | | +| [**patchNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | | +| [**patchNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | | +| [**readNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | | +| [**readNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | | +| [**replaceNamespacedHorizontalPodAutoscaler**](AutoscalingV2Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | | +| [**replaceNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | | + + + # **createNamespacedHorizontalPodAutoscaler** > V2HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -70,14 +70,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -95,12 +95,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedHorizontalPodAutoscaler** > V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -161,23 +161,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -195,10 +195,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedHorizontalPodAutoscaler** > V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -252,16 +252,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -279,11 +279,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -346,10 +346,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listHorizontalPodAutoscalerForAllNamespaces** > V2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -406,19 +406,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -436,10 +436,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedHorizontalPodAutoscaler** > V2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -497,20 +497,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -528,10 +528,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedHorizontalPodAutoscaler** > V2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -585,16 +585,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -612,11 +612,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedHorizontalPodAutoscalerStatus** > V2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -670,16 +670,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -697,11 +697,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedHorizontalPodAutoscaler** > V2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(name, namespace, pretty) @@ -750,11 +750,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -772,10 +772,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedHorizontalPodAutoscalerStatus** > V2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty) @@ -824,11 +824,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -846,10 +846,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedHorizontalPodAutoscaler** > V2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -902,15 +902,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -928,11 +928,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedHorizontalPodAutoscalerStatus** > V2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -985,15 +985,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the HorizontalPodAutoscaler | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1011,7 +1011,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/BatchApi.md b/kubernetes/docs/BatchApi.md index 5f780aae1f..8465e8674b 100644 --- a/kubernetes/docs/BatchApi.md +++ b/kubernetes/docs/BatchApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](BatchApi.md#getAPIGroup) | **GET** /apis/batch/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](BatchApi.md#getAPIGroup) | **GET** /apis/batch/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index 070c1f3ed0..1134a14bc3 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -2,34 +2,34 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedCronJob**](BatchV1Api.md#createNamespacedCronJob) | **POST** /apis/batch/v1/namespaces/{namespace}/cronjobs | -[**createNamespacedJob**](BatchV1Api.md#createNamespacedJob) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | -[**deleteCollectionNamespacedCronJob**](BatchV1Api.md#deleteCollectionNamespacedCronJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/cronjobs | -[**deleteCollectionNamespacedJob**](BatchV1Api.md#deleteCollectionNamespacedJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | -[**deleteNamespacedCronJob**](BatchV1Api.md#deleteNamespacedCronJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} | -[**deleteNamespacedJob**](BatchV1Api.md#deleteNamespacedJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -[**getAPIResources**](BatchV1Api.md#getAPIResources) | **GET** /apis/batch/v1/ | -[**listCronJobForAllNamespaces**](BatchV1Api.md#listCronJobForAllNamespaces) | **GET** /apis/batch/v1/cronjobs | -[**listJobForAllNamespaces**](BatchV1Api.md#listJobForAllNamespaces) | **GET** /apis/batch/v1/jobs | -[**listNamespacedCronJob**](BatchV1Api.md#listNamespacedCronJob) | **GET** /apis/batch/v1/namespaces/{namespace}/cronjobs | -[**listNamespacedJob**](BatchV1Api.md#listNamespacedJob) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs | -[**patchNamespacedCronJob**](BatchV1Api.md#patchNamespacedCronJob) | **PATCH** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} | -[**patchNamespacedCronJobStatus**](BatchV1Api.md#patchNamespacedCronJobStatus) | **PATCH** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status | -[**patchNamespacedJob**](BatchV1Api.md#patchNamespacedJob) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -[**patchNamespacedJobStatus**](BatchV1Api.md#patchNamespacedJobStatus) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -[**readNamespacedCronJob**](BatchV1Api.md#readNamespacedCronJob) | **GET** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} | -[**readNamespacedCronJobStatus**](BatchV1Api.md#readNamespacedCronJobStatus) | **GET** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status | -[**readNamespacedJob**](BatchV1Api.md#readNamespacedJob) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -[**readNamespacedJobStatus**](BatchV1Api.md#readNamespacedJobStatus) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -[**replaceNamespacedCronJob**](BatchV1Api.md#replaceNamespacedCronJob) | **PUT** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} | -[**replaceNamespacedCronJobStatus**](BatchV1Api.md#replaceNamespacedCronJobStatus) | **PUT** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status | -[**replaceNamespacedJob**](BatchV1Api.md#replaceNamespacedJob) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -[**replaceNamespacedJobStatus**](BatchV1Api.md#replaceNamespacedJobStatus) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedCronJob**](BatchV1Api.md#createNamespacedCronJob) | **POST** /apis/batch/v1/namespaces/{namespace}/cronjobs | | +| [**createNamespacedJob**](BatchV1Api.md#createNamespacedJob) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | | +| [**deleteCollectionNamespacedCronJob**](BatchV1Api.md#deleteCollectionNamespacedCronJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/cronjobs | | +| [**deleteCollectionNamespacedJob**](BatchV1Api.md#deleteCollectionNamespacedJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | | +| [**deleteNamespacedCronJob**](BatchV1Api.md#deleteNamespacedCronJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} | | +| [**deleteNamespacedJob**](BatchV1Api.md#deleteNamespacedJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | | +| [**getAPIResources**](BatchV1Api.md#getAPIResources) | **GET** /apis/batch/v1/ | | +| [**listCronJobForAllNamespaces**](BatchV1Api.md#listCronJobForAllNamespaces) | **GET** /apis/batch/v1/cronjobs | | +| [**listJobForAllNamespaces**](BatchV1Api.md#listJobForAllNamespaces) | **GET** /apis/batch/v1/jobs | | +| [**listNamespacedCronJob**](BatchV1Api.md#listNamespacedCronJob) | **GET** /apis/batch/v1/namespaces/{namespace}/cronjobs | | +| [**listNamespacedJob**](BatchV1Api.md#listNamespacedJob) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs | | +| [**patchNamespacedCronJob**](BatchV1Api.md#patchNamespacedCronJob) | **PATCH** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} | | +| [**patchNamespacedCronJobStatus**](BatchV1Api.md#patchNamespacedCronJobStatus) | **PATCH** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status | | +| [**patchNamespacedJob**](BatchV1Api.md#patchNamespacedJob) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | | +| [**patchNamespacedJobStatus**](BatchV1Api.md#patchNamespacedJobStatus) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | | +| [**readNamespacedCronJob**](BatchV1Api.md#readNamespacedCronJob) | **GET** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} | | +| [**readNamespacedCronJobStatus**](BatchV1Api.md#readNamespacedCronJobStatus) | **GET** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status | | +| [**readNamespacedJob**](BatchV1Api.md#readNamespacedJob) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | | +| [**readNamespacedJobStatus**](BatchV1Api.md#readNamespacedJobStatus) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | | +| [**replaceNamespacedCronJob**](BatchV1Api.md#replaceNamespacedCronJob) | **PUT** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} | | +| [**replaceNamespacedCronJobStatus**](BatchV1Api.md#replaceNamespacedCronJobStatus) | **PUT** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status | | +| [**replaceNamespacedJob**](BatchV1Api.md#replaceNamespacedJob) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | | +| [**replaceNamespacedJobStatus**](BatchV1Api.md#replaceNamespacedJobStatus) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | | + + + # **createNamespacedCronJob** > V1CronJob createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -81,14 +81,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1CronJob**](V1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1CronJob**](V1CronJob.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -106,12 +106,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedJob** > V1Job createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -163,14 +163,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Job**](V1Job.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -188,12 +188,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedCronJob** > V1Status deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -254,23 +254,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -288,10 +288,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedJob** > V1Status deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -352,23 +352,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -386,10 +386,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedCronJob** > V1Status deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -443,16 +443,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CronJob | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -470,11 +470,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedJob** > V1Status deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -528,16 +528,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Job | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -555,11 +555,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -622,10 +622,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listCronJobForAllNamespaces** > V1CronJobList listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -682,19 +682,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -712,10 +712,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listJobForAllNamespaces** > V1JobList listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -772,19 +772,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -802,10 +802,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedCronJob** > V1CronJobList listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -863,20 +863,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -894,10 +894,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedJob** > V1JobList listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -955,20 +955,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -986,10 +986,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedCronJob** > V1CronJob patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1043,16 +1043,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CronJob | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1070,11 +1070,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedCronJobStatus** > V1CronJob patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1128,16 +1128,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CronJob | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1155,11 +1155,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedJob** > V1Job patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1213,16 +1213,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Job | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1240,11 +1240,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedJobStatus** > V1Job patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1298,16 +1298,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Job | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1325,11 +1325,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedCronJob** > V1CronJob readNamespacedCronJob(name, namespace, pretty) @@ -1378,11 +1378,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CronJob | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1400,10 +1400,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedCronJobStatus** > V1CronJob readNamespacedCronJobStatus(name, namespace, pretty) @@ -1452,11 +1452,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CronJob | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1474,10 +1474,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedJob** > V1Job readNamespacedJob(name, namespace, pretty) @@ -1526,11 +1526,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Job | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1548,10 +1548,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedJobStatus** > V1Job readNamespacedJobStatus(name, namespace, pretty) @@ -1600,11 +1600,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Job | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1622,10 +1622,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedCronJob** > V1CronJob replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1678,15 +1678,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1CronJob**](V1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CronJob | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1CronJob**](V1CronJob.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1704,11 +1704,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedCronJobStatus** > V1CronJob replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1761,15 +1761,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1CronJob**](V1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CronJob | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1CronJob**](V1CronJob.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1787,11 +1787,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedJob** > V1Job replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1844,15 +1844,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Job | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Job**](V1Job.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1870,11 +1870,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedJobStatus** > V1Job replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1927,15 +1927,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Job | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Job**](V1Job.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1953,7 +1953,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/CertificatesApi.md b/kubernetes/docs/CertificatesApi.md index 2b6338f4db..f948549e12 100644 --- a/kubernetes/docs/CertificatesApi.md +++ b/kubernetes/docs/CertificatesApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](CertificatesApi.md#getAPIGroup) | **GET** /apis/certificates.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](CertificatesApi.md#getAPIGroup) | **GET** /apis/certificates.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/CertificatesV1Api.md b/kubernetes/docs/CertificatesV1Api.md index f120990785..4062cb7933 100644 --- a/kubernetes/docs/CertificatesV1Api.md +++ b/kubernetes/docs/CertificatesV1Api.md @@ -2,25 +2,25 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createCertificateSigningRequest**](CertificatesV1Api.md#createCertificateSigningRequest) | **POST** /apis/certificates.k8s.io/v1/certificatesigningrequests | -[**deleteCertificateSigningRequest**](CertificatesV1Api.md#deleteCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | -[**deleteCollectionCertificateSigningRequest**](CertificatesV1Api.md#deleteCollectionCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests | -[**getAPIResources**](CertificatesV1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1/ | -[**listCertificateSigningRequest**](CertificatesV1Api.md#listCertificateSigningRequest) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests | -[**patchCertificateSigningRequest**](CertificatesV1Api.md#patchCertificateSigningRequest) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | -[**patchCertificateSigningRequestApproval**](CertificatesV1Api.md#patchCertificateSigningRequestApproval) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | -[**patchCertificateSigningRequestStatus**](CertificatesV1Api.md#patchCertificateSigningRequestStatus) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | -[**readCertificateSigningRequest**](CertificatesV1Api.md#readCertificateSigningRequest) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | -[**readCertificateSigningRequestApproval**](CertificatesV1Api.md#readCertificateSigningRequestApproval) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | -[**readCertificateSigningRequestStatus**](CertificatesV1Api.md#readCertificateSigningRequestStatus) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | -[**replaceCertificateSigningRequest**](CertificatesV1Api.md#replaceCertificateSigningRequest) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | -[**replaceCertificateSigningRequestApproval**](CertificatesV1Api.md#replaceCertificateSigningRequestApproval) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | -[**replaceCertificateSigningRequestStatus**](CertificatesV1Api.md#replaceCertificateSigningRequestStatus) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createCertificateSigningRequest**](CertificatesV1Api.md#createCertificateSigningRequest) | **POST** /apis/certificates.k8s.io/v1/certificatesigningrequests | | +| [**deleteCertificateSigningRequest**](CertificatesV1Api.md#deleteCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | | +| [**deleteCollectionCertificateSigningRequest**](CertificatesV1Api.md#deleteCollectionCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests | | +| [**getAPIResources**](CertificatesV1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1/ | | +| [**listCertificateSigningRequest**](CertificatesV1Api.md#listCertificateSigningRequest) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests | | +| [**patchCertificateSigningRequest**](CertificatesV1Api.md#patchCertificateSigningRequest) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | | +| [**patchCertificateSigningRequestApproval**](CertificatesV1Api.md#patchCertificateSigningRequestApproval) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | | +| [**patchCertificateSigningRequestStatus**](CertificatesV1Api.md#patchCertificateSigningRequestStatus) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | | +| [**readCertificateSigningRequest**](CertificatesV1Api.md#readCertificateSigningRequest) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | | +| [**readCertificateSigningRequestApproval**](CertificatesV1Api.md#readCertificateSigningRequestApproval) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | | +| [**readCertificateSigningRequestStatus**](CertificatesV1Api.md#readCertificateSigningRequestStatus) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | | +| [**replaceCertificateSigningRequest**](CertificatesV1Api.md#replaceCertificateSigningRequest) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | | +| [**replaceCertificateSigningRequestApproval**](CertificatesV1Api.md#replaceCertificateSigningRequestApproval) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | | +| [**replaceCertificateSigningRequestStatus**](CertificatesV1Api.md#replaceCertificateSigningRequestStatus) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | | + + + # **createCertificateSigningRequest** > V1CertificateSigningRequest createCertificateSigningRequest(body, pretty, dryRun, fieldManager, fieldValidation) @@ -71,13 +71,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -95,12 +95,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCertificateSigningRequest** > V1Status deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -153,15 +153,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -179,11 +179,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionCertificateSigningRequest** > V1Status deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -243,22 +243,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -276,10 +276,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -342,10 +342,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listCertificateSigningRequest** > V1CertificateSigningRequestList listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -402,19 +402,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -432,10 +432,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchCertificateSigningRequest** > V1CertificateSigningRequest patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -488,15 +488,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -514,11 +514,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchCertificateSigningRequestApproval** > V1CertificateSigningRequest patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -571,15 +571,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -597,11 +597,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchCertificateSigningRequestStatus** > V1CertificateSigningRequest patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -654,15 +654,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -680,11 +680,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readCertificateSigningRequest** > V1CertificateSigningRequest readCertificateSigningRequest(name, pretty) @@ -732,10 +732,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -753,10 +753,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readCertificateSigningRequestApproval** > V1CertificateSigningRequest readCertificateSigningRequestApproval(name, pretty) @@ -804,10 +804,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -825,10 +825,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readCertificateSigningRequestStatus** > V1CertificateSigningRequest readCertificateSigningRequestStatus(name, pretty) @@ -876,10 +876,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -897,10 +897,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceCertificateSigningRequest** > V1CertificateSigningRequest replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -952,14 +952,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -977,11 +977,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceCertificateSigningRequestApproval** > V1CertificateSigningRequest replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1033,14 +1033,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1058,11 +1058,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceCertificateSigningRequestStatus** > V1CertificateSigningRequest replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1114,14 +1114,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1139,7 +1139,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/CertificatesV1alpha1Api.md index 6b35640877..758d76cbd9 100644 --- a/kubernetes/docs/CertificatesV1alpha1Api.md +++ b/kubernetes/docs/CertificatesV1alpha1Api.md @@ -2,19 +2,19 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createClusterTrustBundle**](CertificatesV1alpha1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**deleteClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**deleteCollectionClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**getAPIResources**](CertificatesV1alpha1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | -[**listClusterTrustBundle**](CertificatesV1alpha1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**patchClusterTrustBundle**](CertificatesV1alpha1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**readClusterTrustBundle**](CertificatesV1alpha1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**replaceClusterTrustBundle**](CertificatesV1alpha1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createClusterTrustBundle**](CertificatesV1alpha1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | +| [**deleteClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | +| [**deleteCollectionClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | +| [**getAPIResources**](CertificatesV1alpha1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | | +| [**listClusterTrustBundle**](CertificatesV1alpha1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | +| [**patchClusterTrustBundle**](CertificatesV1alpha1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | +| [**readClusterTrustBundle**](CertificatesV1alpha1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | +| [**replaceClusterTrustBundle**](CertificatesV1alpha1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | + + + # **createClusterTrustBundle** > V1alpha1ClusterTrustBundle createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation) @@ -65,13 +65,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -89,12 +89,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteClusterTrustBundle** > V1Status deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -147,15 +147,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterTrustBundle | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -173,11 +173,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionClusterTrustBundle** > V1Status deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -237,22 +237,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -270,10 +270,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -336,10 +336,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listClusterTrustBundle** > V1alpha1ClusterTrustBundleList listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -396,19 +396,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -426,10 +426,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchClusterTrustBundle** > V1alpha1ClusterTrustBundle patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -482,15 +482,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterTrustBundle | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -508,11 +508,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readClusterTrustBundle** > V1alpha1ClusterTrustBundle readClusterTrustBundle(name, pretty) @@ -560,10 +560,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterTrustBundle | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -581,10 +581,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceClusterTrustBundle** > V1alpha1ClusterTrustBundle replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -636,14 +636,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterTrustBundle | - **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -661,7 +661,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/CoordinationApi.md b/kubernetes/docs/CoordinationApi.md index 1853b48151..375f40e3d2 100644 --- a/kubernetes/docs/CoordinationApi.md +++ b/kubernetes/docs/CoordinationApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](CoordinationApi.md#getAPIGroup) | **GET** /apis/coordination.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](CoordinationApi.md#getAPIGroup) | **GET** /apis/coordination.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/CoordinationV1Api.md b/kubernetes/docs/CoordinationV1Api.md index 2e871fce08..e35a639236 100644 --- a/kubernetes/docs/CoordinationV1Api.md +++ b/kubernetes/docs/CoordinationV1Api.md @@ -2,20 +2,20 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedLease**](CoordinationV1Api.md#createNamespacedLease) | **POST** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases | -[**deleteCollectionNamespacedLease**](CoordinationV1Api.md#deleteCollectionNamespacedLease) | **DELETE** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases | -[**deleteNamespacedLease**](CoordinationV1Api.md#deleteNamespacedLease) | **DELETE** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} | -[**getAPIResources**](CoordinationV1Api.md#getAPIResources) | **GET** /apis/coordination.k8s.io/v1/ | -[**listLeaseForAllNamespaces**](CoordinationV1Api.md#listLeaseForAllNamespaces) | **GET** /apis/coordination.k8s.io/v1/leases | -[**listNamespacedLease**](CoordinationV1Api.md#listNamespacedLease) | **GET** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases | -[**patchNamespacedLease**](CoordinationV1Api.md#patchNamespacedLease) | **PATCH** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} | -[**readNamespacedLease**](CoordinationV1Api.md#readNamespacedLease) | **GET** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} | -[**replaceNamespacedLease**](CoordinationV1Api.md#replaceNamespacedLease) | **PUT** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedLease**](CoordinationV1Api.md#createNamespacedLease) | **POST** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases | | +| [**deleteCollectionNamespacedLease**](CoordinationV1Api.md#deleteCollectionNamespacedLease) | **DELETE** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases | | +| [**deleteNamespacedLease**](CoordinationV1Api.md#deleteNamespacedLease) | **DELETE** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} | | +| [**getAPIResources**](CoordinationV1Api.md#getAPIResources) | **GET** /apis/coordination.k8s.io/v1/ | | +| [**listLeaseForAllNamespaces**](CoordinationV1Api.md#listLeaseForAllNamespaces) | **GET** /apis/coordination.k8s.io/v1/leases | | +| [**listNamespacedLease**](CoordinationV1Api.md#listNamespacedLease) | **GET** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases | | +| [**patchNamespacedLease**](CoordinationV1Api.md#patchNamespacedLease) | **PATCH** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} | | +| [**readNamespacedLease**](CoordinationV1Api.md#readNamespacedLease) | **GET** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} | | +| [**replaceNamespacedLease**](CoordinationV1Api.md#replaceNamespacedLease) | **PUT** /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} | | + + + # **createNamespacedLease** > V1Lease createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -67,14 +67,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Lease**](V1Lease.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Lease**](V1Lease.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -92,12 +92,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedLease** > V1Status deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -158,23 +158,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -192,10 +192,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedLease** > V1Status deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -249,16 +249,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Lease | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Lease | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -276,11 +276,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -343,10 +343,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listLeaseForAllNamespaces** > V1LeaseList listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -403,19 +403,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -433,10 +433,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedLease** > V1LeaseList listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -494,20 +494,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -525,10 +525,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedLease** > V1Lease patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -582,16 +582,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Lease | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Lease | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -609,11 +609,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedLease** > V1Lease readNamespacedLease(name, namespace, pretty) @@ -662,11 +662,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Lease | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Lease | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -684,10 +684,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedLease** > V1Lease replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -740,15 +740,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Lease | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Lease**](V1Lease.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Lease | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Lease**](V1Lease.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -766,7 +766,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md index b9563faf58..b2dd8e172f 100644 --- a/kubernetes/docs/CoreApi.md +++ b/kubernetes/docs/CoreApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIVersions**](CoreApi.md#getAPIVersions) | **GET** /api/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIVersions**](CoreApi.md#getAPIVersions) | **GET** /api/ | | - + # **getAPIVersions** > V1APIVersions getAPIVersions() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index 5d0a91ef47..092392fe36 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -2,214 +2,214 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**connectDeleteNamespacedPodProxy**](CoreV1Api.md#connectDeleteNamespacedPodProxy) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectDeleteNamespacedPodProxyWithPath**](CoreV1Api.md#connectDeleteNamespacedPodProxyWithPath) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectDeleteNamespacedServiceProxy**](CoreV1Api.md#connectDeleteNamespacedServiceProxy) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectDeleteNamespacedServiceProxyWithPath**](CoreV1Api.md#connectDeleteNamespacedServiceProxyWithPath) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectDeleteNodeProxy**](CoreV1Api.md#connectDeleteNodeProxy) | **DELETE** /api/v1/nodes/{name}/proxy | -[**connectDeleteNodeProxyWithPath**](CoreV1Api.md#connectDeleteNodeProxyWithPath) | **DELETE** /api/v1/nodes/{name}/proxy/{path} | -[**connectGetNamespacedPodAttach**](CoreV1Api.md#connectGetNamespacedPodAttach) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/attach | -[**connectGetNamespacedPodExec**](CoreV1Api.md#connectGetNamespacedPodExec) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/exec | -[**connectGetNamespacedPodPortforward**](CoreV1Api.md#connectGetNamespacedPodPortforward) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/portforward | -[**connectGetNamespacedPodProxy**](CoreV1Api.md#connectGetNamespacedPodProxy) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectGetNamespacedPodProxyWithPath**](CoreV1Api.md#connectGetNamespacedPodProxyWithPath) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectGetNamespacedServiceProxy**](CoreV1Api.md#connectGetNamespacedServiceProxy) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectGetNamespacedServiceProxyWithPath**](CoreV1Api.md#connectGetNamespacedServiceProxyWithPath) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectGetNodeProxy**](CoreV1Api.md#connectGetNodeProxy) | **GET** /api/v1/nodes/{name}/proxy | -[**connectGetNodeProxyWithPath**](CoreV1Api.md#connectGetNodeProxyWithPath) | **GET** /api/v1/nodes/{name}/proxy/{path} | -[**connectHeadNamespacedPodProxy**](CoreV1Api.md#connectHeadNamespacedPodProxy) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectHeadNamespacedPodProxyWithPath**](CoreV1Api.md#connectHeadNamespacedPodProxyWithPath) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectHeadNamespacedServiceProxy**](CoreV1Api.md#connectHeadNamespacedServiceProxy) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectHeadNamespacedServiceProxyWithPath**](CoreV1Api.md#connectHeadNamespacedServiceProxyWithPath) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectHeadNodeProxy**](CoreV1Api.md#connectHeadNodeProxy) | **HEAD** /api/v1/nodes/{name}/proxy | -[**connectHeadNodeProxyWithPath**](CoreV1Api.md#connectHeadNodeProxyWithPath) | **HEAD** /api/v1/nodes/{name}/proxy/{path} | -[**connectOptionsNamespacedPodProxy**](CoreV1Api.md#connectOptionsNamespacedPodProxy) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectOptionsNamespacedPodProxyWithPath**](CoreV1Api.md#connectOptionsNamespacedPodProxyWithPath) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectOptionsNamespacedServiceProxy**](CoreV1Api.md#connectOptionsNamespacedServiceProxy) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectOptionsNamespacedServiceProxyWithPath**](CoreV1Api.md#connectOptionsNamespacedServiceProxyWithPath) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectOptionsNodeProxy**](CoreV1Api.md#connectOptionsNodeProxy) | **OPTIONS** /api/v1/nodes/{name}/proxy | -[**connectOptionsNodeProxyWithPath**](CoreV1Api.md#connectOptionsNodeProxyWithPath) | **OPTIONS** /api/v1/nodes/{name}/proxy/{path} | -[**connectPatchNamespacedPodProxy**](CoreV1Api.md#connectPatchNamespacedPodProxy) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectPatchNamespacedPodProxyWithPath**](CoreV1Api.md#connectPatchNamespacedPodProxyWithPath) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectPatchNamespacedServiceProxy**](CoreV1Api.md#connectPatchNamespacedServiceProxy) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectPatchNamespacedServiceProxyWithPath**](CoreV1Api.md#connectPatchNamespacedServiceProxyWithPath) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectPatchNodeProxy**](CoreV1Api.md#connectPatchNodeProxy) | **PATCH** /api/v1/nodes/{name}/proxy | -[**connectPatchNodeProxyWithPath**](CoreV1Api.md#connectPatchNodeProxyWithPath) | **PATCH** /api/v1/nodes/{name}/proxy/{path} | -[**connectPostNamespacedPodAttach**](CoreV1Api.md#connectPostNamespacedPodAttach) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/attach | -[**connectPostNamespacedPodExec**](CoreV1Api.md#connectPostNamespacedPodExec) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/exec | -[**connectPostNamespacedPodPortforward**](CoreV1Api.md#connectPostNamespacedPodPortforward) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/portforward | -[**connectPostNamespacedPodProxy**](CoreV1Api.md#connectPostNamespacedPodProxy) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectPostNamespacedPodProxyWithPath**](CoreV1Api.md#connectPostNamespacedPodProxyWithPath) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectPostNamespacedServiceProxy**](CoreV1Api.md#connectPostNamespacedServiceProxy) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectPostNamespacedServiceProxyWithPath**](CoreV1Api.md#connectPostNamespacedServiceProxyWithPath) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectPostNodeProxy**](CoreV1Api.md#connectPostNodeProxy) | **POST** /api/v1/nodes/{name}/proxy | -[**connectPostNodeProxyWithPath**](CoreV1Api.md#connectPostNodeProxyWithPath) | **POST** /api/v1/nodes/{name}/proxy/{path} | -[**connectPutNamespacedPodProxy**](CoreV1Api.md#connectPutNamespacedPodProxy) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectPutNamespacedPodProxyWithPath**](CoreV1Api.md#connectPutNamespacedPodProxyWithPath) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectPutNamespacedServiceProxy**](CoreV1Api.md#connectPutNamespacedServiceProxy) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectPutNamespacedServiceProxyWithPath**](CoreV1Api.md#connectPutNamespacedServiceProxyWithPath) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectPutNodeProxy**](CoreV1Api.md#connectPutNodeProxy) | **PUT** /api/v1/nodes/{name}/proxy | -[**connectPutNodeProxyWithPath**](CoreV1Api.md#connectPutNodeProxyWithPath) | **PUT** /api/v1/nodes/{name}/proxy/{path} | -[**createNamespace**](CoreV1Api.md#createNamespace) | **POST** /api/v1/namespaces | -[**createNamespacedBinding**](CoreV1Api.md#createNamespacedBinding) | **POST** /api/v1/namespaces/{namespace}/bindings | -[**createNamespacedConfigMap**](CoreV1Api.md#createNamespacedConfigMap) | **POST** /api/v1/namespaces/{namespace}/configmaps | -[**createNamespacedEndpoints**](CoreV1Api.md#createNamespacedEndpoints) | **POST** /api/v1/namespaces/{namespace}/endpoints | -[**createNamespacedEvent**](CoreV1Api.md#createNamespacedEvent) | **POST** /api/v1/namespaces/{namespace}/events | -[**createNamespacedLimitRange**](CoreV1Api.md#createNamespacedLimitRange) | **POST** /api/v1/namespaces/{namespace}/limitranges | -[**createNamespacedPersistentVolumeClaim**](CoreV1Api.md#createNamespacedPersistentVolumeClaim) | **POST** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -[**createNamespacedPod**](CoreV1Api.md#createNamespacedPod) | **POST** /api/v1/namespaces/{namespace}/pods | -[**createNamespacedPodBinding**](CoreV1Api.md#createNamespacedPodBinding) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/binding | -[**createNamespacedPodEviction**](CoreV1Api.md#createNamespacedPodEviction) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/eviction | -[**createNamespacedPodTemplate**](CoreV1Api.md#createNamespacedPodTemplate) | **POST** /api/v1/namespaces/{namespace}/podtemplates | -[**createNamespacedReplicationController**](CoreV1Api.md#createNamespacedReplicationController) | **POST** /api/v1/namespaces/{namespace}/replicationcontrollers | -[**createNamespacedResourceQuota**](CoreV1Api.md#createNamespacedResourceQuota) | **POST** /api/v1/namespaces/{namespace}/resourcequotas | -[**createNamespacedSecret**](CoreV1Api.md#createNamespacedSecret) | **POST** /api/v1/namespaces/{namespace}/secrets | -[**createNamespacedService**](CoreV1Api.md#createNamespacedService) | **POST** /api/v1/namespaces/{namespace}/services | -[**createNamespacedServiceAccount**](CoreV1Api.md#createNamespacedServiceAccount) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts | -[**createNamespacedServiceAccountToken**](CoreV1Api.md#createNamespacedServiceAccountToken) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts/{name}/token | -[**createNode**](CoreV1Api.md#createNode) | **POST** /api/v1/nodes | -[**createPersistentVolume**](CoreV1Api.md#createPersistentVolume) | **POST** /api/v1/persistentvolumes | -[**deleteCollectionNamespacedConfigMap**](CoreV1Api.md#deleteCollectionNamespacedConfigMap) | **DELETE** /api/v1/namespaces/{namespace}/configmaps | -[**deleteCollectionNamespacedEndpoints**](CoreV1Api.md#deleteCollectionNamespacedEndpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints | -[**deleteCollectionNamespacedEvent**](CoreV1Api.md#deleteCollectionNamespacedEvent) | **DELETE** /api/v1/namespaces/{namespace}/events | -[**deleteCollectionNamespacedLimitRange**](CoreV1Api.md#deleteCollectionNamespacedLimitRange) | **DELETE** /api/v1/namespaces/{namespace}/limitranges | -[**deleteCollectionNamespacedPersistentVolumeClaim**](CoreV1Api.md#deleteCollectionNamespacedPersistentVolumeClaim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -[**deleteCollectionNamespacedPod**](CoreV1Api.md#deleteCollectionNamespacedPod) | **DELETE** /api/v1/namespaces/{namespace}/pods | -[**deleteCollectionNamespacedPodTemplate**](CoreV1Api.md#deleteCollectionNamespacedPodTemplate) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates | -[**deleteCollectionNamespacedReplicationController**](CoreV1Api.md#deleteCollectionNamespacedReplicationController) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers | -[**deleteCollectionNamespacedResourceQuota**](CoreV1Api.md#deleteCollectionNamespacedResourceQuota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas | -[**deleteCollectionNamespacedSecret**](CoreV1Api.md#deleteCollectionNamespacedSecret) | **DELETE** /api/v1/namespaces/{namespace}/secrets | -[**deleteCollectionNamespacedService**](CoreV1Api.md#deleteCollectionNamespacedService) | **DELETE** /api/v1/namespaces/{namespace}/services | -[**deleteCollectionNamespacedServiceAccount**](CoreV1Api.md#deleteCollectionNamespacedServiceAccount) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts | -[**deleteCollectionNode**](CoreV1Api.md#deleteCollectionNode) | **DELETE** /api/v1/nodes | -[**deleteCollectionPersistentVolume**](CoreV1Api.md#deleteCollectionPersistentVolume) | **DELETE** /api/v1/persistentvolumes | -[**deleteNamespace**](CoreV1Api.md#deleteNamespace) | **DELETE** /api/v1/namespaces/{name} | -[**deleteNamespacedConfigMap**](CoreV1Api.md#deleteNamespacedConfigMap) | **DELETE** /api/v1/namespaces/{namespace}/configmaps/{name} | -[**deleteNamespacedEndpoints**](CoreV1Api.md#deleteNamespacedEndpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints/{name} | -[**deleteNamespacedEvent**](CoreV1Api.md#deleteNamespacedEvent) | **DELETE** /api/v1/namespaces/{namespace}/events/{name} | -[**deleteNamespacedLimitRange**](CoreV1Api.md#deleteNamespacedLimitRange) | **DELETE** /api/v1/namespaces/{namespace}/limitranges/{name} | -[**deleteNamespacedPersistentVolumeClaim**](CoreV1Api.md#deleteNamespacedPersistentVolumeClaim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**deleteNamespacedPod**](CoreV1Api.md#deleteNamespacedPod) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name} | -[**deleteNamespacedPodTemplate**](CoreV1Api.md#deleteNamespacedPodTemplate) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates/{name} | -[**deleteNamespacedReplicationController**](CoreV1Api.md#deleteNamespacedReplicationController) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -[**deleteNamespacedResourceQuota**](CoreV1Api.md#deleteNamespacedResourceQuota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -[**deleteNamespacedSecret**](CoreV1Api.md#deleteNamespacedSecret) | **DELETE** /api/v1/namespaces/{namespace}/secrets/{name} | -[**deleteNamespacedService**](CoreV1Api.md#deleteNamespacedService) | **DELETE** /api/v1/namespaces/{namespace}/services/{name} | -[**deleteNamespacedServiceAccount**](CoreV1Api.md#deleteNamespacedServiceAccount) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -[**deleteNode**](CoreV1Api.md#deleteNode) | **DELETE** /api/v1/nodes/{name} | -[**deletePersistentVolume**](CoreV1Api.md#deletePersistentVolume) | **DELETE** /api/v1/persistentvolumes/{name} | -[**getAPIResources**](CoreV1Api.md#getAPIResources) | **GET** /api/v1/ | -[**listComponentStatus**](CoreV1Api.md#listComponentStatus) | **GET** /api/v1/componentstatuses | -[**listConfigMapForAllNamespaces**](CoreV1Api.md#listConfigMapForAllNamespaces) | **GET** /api/v1/configmaps | -[**listEndpointsForAllNamespaces**](CoreV1Api.md#listEndpointsForAllNamespaces) | **GET** /api/v1/endpoints | -[**listEventForAllNamespaces**](CoreV1Api.md#listEventForAllNamespaces) | **GET** /api/v1/events | -[**listLimitRangeForAllNamespaces**](CoreV1Api.md#listLimitRangeForAllNamespaces) | **GET** /api/v1/limitranges | -[**listNamespace**](CoreV1Api.md#listNamespace) | **GET** /api/v1/namespaces | -[**listNamespacedConfigMap**](CoreV1Api.md#listNamespacedConfigMap) | **GET** /api/v1/namespaces/{namespace}/configmaps | -[**listNamespacedEndpoints**](CoreV1Api.md#listNamespacedEndpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints | -[**listNamespacedEvent**](CoreV1Api.md#listNamespacedEvent) | **GET** /api/v1/namespaces/{namespace}/events | -[**listNamespacedLimitRange**](CoreV1Api.md#listNamespacedLimitRange) | **GET** /api/v1/namespaces/{namespace}/limitranges | -[**listNamespacedPersistentVolumeClaim**](CoreV1Api.md#listNamespacedPersistentVolumeClaim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -[**listNamespacedPod**](CoreV1Api.md#listNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods | -[**listNamespacedPodTemplate**](CoreV1Api.md#listNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates | -[**listNamespacedReplicationController**](CoreV1Api.md#listNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers | -[**listNamespacedResourceQuota**](CoreV1Api.md#listNamespacedResourceQuota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas | -[**listNamespacedSecret**](CoreV1Api.md#listNamespacedSecret) | **GET** /api/v1/namespaces/{namespace}/secrets | -[**listNamespacedService**](CoreV1Api.md#listNamespacedService) | **GET** /api/v1/namespaces/{namespace}/services | -[**listNamespacedServiceAccount**](CoreV1Api.md#listNamespacedServiceAccount) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts | -[**listNode**](CoreV1Api.md#listNode) | **GET** /api/v1/nodes | -[**listPersistentVolume**](CoreV1Api.md#listPersistentVolume) | **GET** /api/v1/persistentvolumes | -[**listPersistentVolumeClaimForAllNamespaces**](CoreV1Api.md#listPersistentVolumeClaimForAllNamespaces) | **GET** /api/v1/persistentvolumeclaims | -[**listPodForAllNamespaces**](CoreV1Api.md#listPodForAllNamespaces) | **GET** /api/v1/pods | -[**listPodTemplateForAllNamespaces**](CoreV1Api.md#listPodTemplateForAllNamespaces) | **GET** /api/v1/podtemplates | -[**listReplicationControllerForAllNamespaces**](CoreV1Api.md#listReplicationControllerForAllNamespaces) | **GET** /api/v1/replicationcontrollers | -[**listResourceQuotaForAllNamespaces**](CoreV1Api.md#listResourceQuotaForAllNamespaces) | **GET** /api/v1/resourcequotas | -[**listSecretForAllNamespaces**](CoreV1Api.md#listSecretForAllNamespaces) | **GET** /api/v1/secrets | -[**listServiceAccountForAllNamespaces**](CoreV1Api.md#listServiceAccountForAllNamespaces) | **GET** /api/v1/serviceaccounts | -[**listServiceForAllNamespaces**](CoreV1Api.md#listServiceForAllNamespaces) | **GET** /api/v1/services | -[**patchNamespace**](CoreV1Api.md#patchNamespace) | **PATCH** /api/v1/namespaces/{name} | -[**patchNamespaceStatus**](CoreV1Api.md#patchNamespaceStatus) | **PATCH** /api/v1/namespaces/{name}/status | -[**patchNamespacedConfigMap**](CoreV1Api.md#patchNamespacedConfigMap) | **PATCH** /api/v1/namespaces/{namespace}/configmaps/{name} | -[**patchNamespacedEndpoints**](CoreV1Api.md#patchNamespacedEndpoints) | **PATCH** /api/v1/namespaces/{namespace}/endpoints/{name} | -[**patchNamespacedEvent**](CoreV1Api.md#patchNamespacedEvent) | **PATCH** /api/v1/namespaces/{namespace}/events/{name} | -[**patchNamespacedLimitRange**](CoreV1Api.md#patchNamespacedLimitRange) | **PATCH** /api/v1/namespaces/{namespace}/limitranges/{name} | -[**patchNamespacedPersistentVolumeClaim**](CoreV1Api.md#patchNamespacedPersistentVolumeClaim) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**patchNamespacedPersistentVolumeClaimStatus**](CoreV1Api.md#patchNamespacedPersistentVolumeClaimStatus) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -[**patchNamespacedPod**](CoreV1Api.md#patchNamespacedPod) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name} | -[**patchNamespacedPodEphemeralcontainers**](CoreV1Api.md#patchNamespacedPodEphemeralcontainers) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | -[**patchNamespacedPodStatus**](CoreV1Api.md#patchNamespacedPodStatus) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/status | -[**patchNamespacedPodTemplate**](CoreV1Api.md#patchNamespacedPodTemplate) | **PATCH** /api/v1/namespaces/{namespace}/podtemplates/{name} | -[**patchNamespacedReplicationController**](CoreV1Api.md#patchNamespacedReplicationController) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -[**patchNamespacedReplicationControllerScale**](CoreV1Api.md#patchNamespacedReplicationControllerScale) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**patchNamespacedReplicationControllerStatus**](CoreV1Api.md#patchNamespacedReplicationControllerStatus) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -[**patchNamespacedResourceQuota**](CoreV1Api.md#patchNamespacedResourceQuota) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -[**patchNamespacedResourceQuotaStatus**](CoreV1Api.md#patchNamespacedResourceQuotaStatus) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -[**patchNamespacedSecret**](CoreV1Api.md#patchNamespacedSecret) | **PATCH** /api/v1/namespaces/{namespace}/secrets/{name} | -[**patchNamespacedService**](CoreV1Api.md#patchNamespacedService) | **PATCH** /api/v1/namespaces/{namespace}/services/{name} | -[**patchNamespacedServiceAccount**](CoreV1Api.md#patchNamespacedServiceAccount) | **PATCH** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -[**patchNamespacedServiceStatus**](CoreV1Api.md#patchNamespacedServiceStatus) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/status | -[**patchNode**](CoreV1Api.md#patchNode) | **PATCH** /api/v1/nodes/{name} | -[**patchNodeStatus**](CoreV1Api.md#patchNodeStatus) | **PATCH** /api/v1/nodes/{name}/status | -[**patchPersistentVolume**](CoreV1Api.md#patchPersistentVolume) | **PATCH** /api/v1/persistentvolumes/{name} | -[**patchPersistentVolumeStatus**](CoreV1Api.md#patchPersistentVolumeStatus) | **PATCH** /api/v1/persistentvolumes/{name}/status | -[**readComponentStatus**](CoreV1Api.md#readComponentStatus) | **GET** /api/v1/componentstatuses/{name} | -[**readNamespace**](CoreV1Api.md#readNamespace) | **GET** /api/v1/namespaces/{name} | -[**readNamespaceStatus**](CoreV1Api.md#readNamespaceStatus) | **GET** /api/v1/namespaces/{name}/status | -[**readNamespacedConfigMap**](CoreV1Api.md#readNamespacedConfigMap) | **GET** /api/v1/namespaces/{namespace}/configmaps/{name} | -[**readNamespacedEndpoints**](CoreV1Api.md#readNamespacedEndpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints/{name} | -[**readNamespacedEvent**](CoreV1Api.md#readNamespacedEvent) | **GET** /api/v1/namespaces/{namespace}/events/{name} | -[**readNamespacedLimitRange**](CoreV1Api.md#readNamespacedLimitRange) | **GET** /api/v1/namespaces/{namespace}/limitranges/{name} | -[**readNamespacedPersistentVolumeClaim**](CoreV1Api.md#readNamespacedPersistentVolumeClaim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**readNamespacedPersistentVolumeClaimStatus**](CoreV1Api.md#readNamespacedPersistentVolumeClaimStatus) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -[**readNamespacedPod**](CoreV1Api.md#readNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods/{name} | -[**readNamespacedPodEphemeralcontainers**](CoreV1Api.md#readNamespacedPodEphemeralcontainers) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | -[**readNamespacedPodLog**](CoreV1Api.md#readNamespacedPodLog) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/log | -[**readNamespacedPodStatus**](CoreV1Api.md#readNamespacedPodStatus) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/status | -[**readNamespacedPodTemplate**](CoreV1Api.md#readNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates/{name} | -[**readNamespacedReplicationController**](CoreV1Api.md#readNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -[**readNamespacedReplicationControllerScale**](CoreV1Api.md#readNamespacedReplicationControllerScale) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**readNamespacedReplicationControllerStatus**](CoreV1Api.md#readNamespacedReplicationControllerStatus) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -[**readNamespacedResourceQuota**](CoreV1Api.md#readNamespacedResourceQuota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -[**readNamespacedResourceQuotaStatus**](CoreV1Api.md#readNamespacedResourceQuotaStatus) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -[**readNamespacedSecret**](CoreV1Api.md#readNamespacedSecret) | **GET** /api/v1/namespaces/{namespace}/secrets/{name} | -[**readNamespacedService**](CoreV1Api.md#readNamespacedService) | **GET** /api/v1/namespaces/{namespace}/services/{name} | -[**readNamespacedServiceAccount**](CoreV1Api.md#readNamespacedServiceAccount) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -[**readNamespacedServiceStatus**](CoreV1Api.md#readNamespacedServiceStatus) | **GET** /api/v1/namespaces/{namespace}/services/{name}/status | -[**readNode**](CoreV1Api.md#readNode) | **GET** /api/v1/nodes/{name} | -[**readNodeStatus**](CoreV1Api.md#readNodeStatus) | **GET** /api/v1/nodes/{name}/status | -[**readPersistentVolume**](CoreV1Api.md#readPersistentVolume) | **GET** /api/v1/persistentvolumes/{name} | -[**readPersistentVolumeStatus**](CoreV1Api.md#readPersistentVolumeStatus) | **GET** /api/v1/persistentvolumes/{name}/status | -[**replaceNamespace**](CoreV1Api.md#replaceNamespace) | **PUT** /api/v1/namespaces/{name} | -[**replaceNamespaceFinalize**](CoreV1Api.md#replaceNamespaceFinalize) | **PUT** /api/v1/namespaces/{name}/finalize | -[**replaceNamespaceStatus**](CoreV1Api.md#replaceNamespaceStatus) | **PUT** /api/v1/namespaces/{name}/status | -[**replaceNamespacedConfigMap**](CoreV1Api.md#replaceNamespacedConfigMap) | **PUT** /api/v1/namespaces/{namespace}/configmaps/{name} | -[**replaceNamespacedEndpoints**](CoreV1Api.md#replaceNamespacedEndpoints) | **PUT** /api/v1/namespaces/{namespace}/endpoints/{name} | -[**replaceNamespacedEvent**](CoreV1Api.md#replaceNamespacedEvent) | **PUT** /api/v1/namespaces/{namespace}/events/{name} | -[**replaceNamespacedLimitRange**](CoreV1Api.md#replaceNamespacedLimitRange) | **PUT** /api/v1/namespaces/{namespace}/limitranges/{name} | -[**replaceNamespacedPersistentVolumeClaim**](CoreV1Api.md#replaceNamespacedPersistentVolumeClaim) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**replaceNamespacedPersistentVolumeClaimStatus**](CoreV1Api.md#replaceNamespacedPersistentVolumeClaimStatus) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -[**replaceNamespacedPod**](CoreV1Api.md#replaceNamespacedPod) | **PUT** /api/v1/namespaces/{namespace}/pods/{name} | -[**replaceNamespacedPodEphemeralcontainers**](CoreV1Api.md#replaceNamespacedPodEphemeralcontainers) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | -[**replaceNamespacedPodStatus**](CoreV1Api.md#replaceNamespacedPodStatus) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/status | -[**replaceNamespacedPodTemplate**](CoreV1Api.md#replaceNamespacedPodTemplate) | **PUT** /api/v1/namespaces/{namespace}/podtemplates/{name} | -[**replaceNamespacedReplicationController**](CoreV1Api.md#replaceNamespacedReplicationController) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -[**replaceNamespacedReplicationControllerScale**](CoreV1Api.md#replaceNamespacedReplicationControllerScale) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**replaceNamespacedReplicationControllerStatus**](CoreV1Api.md#replaceNamespacedReplicationControllerStatus) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -[**replaceNamespacedResourceQuota**](CoreV1Api.md#replaceNamespacedResourceQuota) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -[**replaceNamespacedResourceQuotaStatus**](CoreV1Api.md#replaceNamespacedResourceQuotaStatus) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -[**replaceNamespacedSecret**](CoreV1Api.md#replaceNamespacedSecret) | **PUT** /api/v1/namespaces/{namespace}/secrets/{name} | -[**replaceNamespacedService**](CoreV1Api.md#replaceNamespacedService) | **PUT** /api/v1/namespaces/{namespace}/services/{name} | -[**replaceNamespacedServiceAccount**](CoreV1Api.md#replaceNamespacedServiceAccount) | **PUT** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -[**replaceNamespacedServiceStatus**](CoreV1Api.md#replaceNamespacedServiceStatus) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/status | -[**replaceNode**](CoreV1Api.md#replaceNode) | **PUT** /api/v1/nodes/{name} | -[**replaceNodeStatus**](CoreV1Api.md#replaceNodeStatus) | **PUT** /api/v1/nodes/{name}/status | -[**replacePersistentVolume**](CoreV1Api.md#replacePersistentVolume) | **PUT** /api/v1/persistentvolumes/{name} | -[**replacePersistentVolumeStatus**](CoreV1Api.md#replacePersistentVolumeStatus) | **PUT** /api/v1/persistentvolumes/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**connectDeleteNamespacedPodProxy**](CoreV1Api.md#connectDeleteNamespacedPodProxy) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy | | +| [**connectDeleteNamespacedPodProxyWithPath**](CoreV1Api.md#connectDeleteNamespacedPodProxyWithPath) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | | +| [**connectDeleteNamespacedServiceProxy**](CoreV1Api.md#connectDeleteNamespacedServiceProxy) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy | | +| [**connectDeleteNamespacedServiceProxyWithPath**](CoreV1Api.md#connectDeleteNamespacedServiceProxyWithPath) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | | +| [**connectDeleteNodeProxy**](CoreV1Api.md#connectDeleteNodeProxy) | **DELETE** /api/v1/nodes/{name}/proxy | | +| [**connectDeleteNodeProxyWithPath**](CoreV1Api.md#connectDeleteNodeProxyWithPath) | **DELETE** /api/v1/nodes/{name}/proxy/{path} | | +| [**connectGetNamespacedPodAttach**](CoreV1Api.md#connectGetNamespacedPodAttach) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/attach | | +| [**connectGetNamespacedPodExec**](CoreV1Api.md#connectGetNamespacedPodExec) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/exec | | +| [**connectGetNamespacedPodPortforward**](CoreV1Api.md#connectGetNamespacedPodPortforward) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/portforward | | +| [**connectGetNamespacedPodProxy**](CoreV1Api.md#connectGetNamespacedPodProxy) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy | | +| [**connectGetNamespacedPodProxyWithPath**](CoreV1Api.md#connectGetNamespacedPodProxyWithPath) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | | +| [**connectGetNamespacedServiceProxy**](CoreV1Api.md#connectGetNamespacedServiceProxy) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy | | +| [**connectGetNamespacedServiceProxyWithPath**](CoreV1Api.md#connectGetNamespacedServiceProxyWithPath) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | | +| [**connectGetNodeProxy**](CoreV1Api.md#connectGetNodeProxy) | **GET** /api/v1/nodes/{name}/proxy | | +| [**connectGetNodeProxyWithPath**](CoreV1Api.md#connectGetNodeProxyWithPath) | **GET** /api/v1/nodes/{name}/proxy/{path} | | +| [**connectHeadNamespacedPodProxy**](CoreV1Api.md#connectHeadNamespacedPodProxy) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy | | +| [**connectHeadNamespacedPodProxyWithPath**](CoreV1Api.md#connectHeadNamespacedPodProxyWithPath) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | | +| [**connectHeadNamespacedServiceProxy**](CoreV1Api.md#connectHeadNamespacedServiceProxy) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy | | +| [**connectHeadNamespacedServiceProxyWithPath**](CoreV1Api.md#connectHeadNamespacedServiceProxyWithPath) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | | +| [**connectHeadNodeProxy**](CoreV1Api.md#connectHeadNodeProxy) | **HEAD** /api/v1/nodes/{name}/proxy | | +| [**connectHeadNodeProxyWithPath**](CoreV1Api.md#connectHeadNodeProxyWithPath) | **HEAD** /api/v1/nodes/{name}/proxy/{path} | | +| [**connectOptionsNamespacedPodProxy**](CoreV1Api.md#connectOptionsNamespacedPodProxy) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy | | +| [**connectOptionsNamespacedPodProxyWithPath**](CoreV1Api.md#connectOptionsNamespacedPodProxyWithPath) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | | +| [**connectOptionsNamespacedServiceProxy**](CoreV1Api.md#connectOptionsNamespacedServiceProxy) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy | | +| [**connectOptionsNamespacedServiceProxyWithPath**](CoreV1Api.md#connectOptionsNamespacedServiceProxyWithPath) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | | +| [**connectOptionsNodeProxy**](CoreV1Api.md#connectOptionsNodeProxy) | **OPTIONS** /api/v1/nodes/{name}/proxy | | +| [**connectOptionsNodeProxyWithPath**](CoreV1Api.md#connectOptionsNodeProxyWithPath) | **OPTIONS** /api/v1/nodes/{name}/proxy/{path} | | +| [**connectPatchNamespacedPodProxy**](CoreV1Api.md#connectPatchNamespacedPodProxy) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/proxy | | +| [**connectPatchNamespacedPodProxyWithPath**](CoreV1Api.md#connectPatchNamespacedPodProxyWithPath) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | | +| [**connectPatchNamespacedServiceProxy**](CoreV1Api.md#connectPatchNamespacedServiceProxy) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/proxy | | +| [**connectPatchNamespacedServiceProxyWithPath**](CoreV1Api.md#connectPatchNamespacedServiceProxyWithPath) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | | +| [**connectPatchNodeProxy**](CoreV1Api.md#connectPatchNodeProxy) | **PATCH** /api/v1/nodes/{name}/proxy | | +| [**connectPatchNodeProxyWithPath**](CoreV1Api.md#connectPatchNodeProxyWithPath) | **PATCH** /api/v1/nodes/{name}/proxy/{path} | | +| [**connectPostNamespacedPodAttach**](CoreV1Api.md#connectPostNamespacedPodAttach) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/attach | | +| [**connectPostNamespacedPodExec**](CoreV1Api.md#connectPostNamespacedPodExec) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/exec | | +| [**connectPostNamespacedPodPortforward**](CoreV1Api.md#connectPostNamespacedPodPortforward) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/portforward | | +| [**connectPostNamespacedPodProxy**](CoreV1Api.md#connectPostNamespacedPodProxy) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy | | +| [**connectPostNamespacedPodProxyWithPath**](CoreV1Api.md#connectPostNamespacedPodProxyWithPath) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | | +| [**connectPostNamespacedServiceProxy**](CoreV1Api.md#connectPostNamespacedServiceProxy) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy | | +| [**connectPostNamespacedServiceProxyWithPath**](CoreV1Api.md#connectPostNamespacedServiceProxyWithPath) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | | +| [**connectPostNodeProxy**](CoreV1Api.md#connectPostNodeProxy) | **POST** /api/v1/nodes/{name}/proxy | | +| [**connectPostNodeProxyWithPath**](CoreV1Api.md#connectPostNodeProxyWithPath) | **POST** /api/v1/nodes/{name}/proxy/{path} | | +| [**connectPutNamespacedPodProxy**](CoreV1Api.md#connectPutNamespacedPodProxy) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy | | +| [**connectPutNamespacedPodProxyWithPath**](CoreV1Api.md#connectPutNamespacedPodProxyWithPath) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | | +| [**connectPutNamespacedServiceProxy**](CoreV1Api.md#connectPutNamespacedServiceProxy) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy | | +| [**connectPutNamespacedServiceProxyWithPath**](CoreV1Api.md#connectPutNamespacedServiceProxyWithPath) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | | +| [**connectPutNodeProxy**](CoreV1Api.md#connectPutNodeProxy) | **PUT** /api/v1/nodes/{name}/proxy | | +| [**connectPutNodeProxyWithPath**](CoreV1Api.md#connectPutNodeProxyWithPath) | **PUT** /api/v1/nodes/{name}/proxy/{path} | | +| [**createNamespace**](CoreV1Api.md#createNamespace) | **POST** /api/v1/namespaces | | +| [**createNamespacedBinding**](CoreV1Api.md#createNamespacedBinding) | **POST** /api/v1/namespaces/{namespace}/bindings | | +| [**createNamespacedConfigMap**](CoreV1Api.md#createNamespacedConfigMap) | **POST** /api/v1/namespaces/{namespace}/configmaps | | +| [**createNamespacedEndpoints**](CoreV1Api.md#createNamespacedEndpoints) | **POST** /api/v1/namespaces/{namespace}/endpoints | | +| [**createNamespacedEvent**](CoreV1Api.md#createNamespacedEvent) | **POST** /api/v1/namespaces/{namespace}/events | | +| [**createNamespacedLimitRange**](CoreV1Api.md#createNamespacedLimitRange) | **POST** /api/v1/namespaces/{namespace}/limitranges | | +| [**createNamespacedPersistentVolumeClaim**](CoreV1Api.md#createNamespacedPersistentVolumeClaim) | **POST** /api/v1/namespaces/{namespace}/persistentvolumeclaims | | +| [**createNamespacedPod**](CoreV1Api.md#createNamespacedPod) | **POST** /api/v1/namespaces/{namespace}/pods | | +| [**createNamespacedPodBinding**](CoreV1Api.md#createNamespacedPodBinding) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/binding | | +| [**createNamespacedPodEviction**](CoreV1Api.md#createNamespacedPodEviction) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/eviction | | +| [**createNamespacedPodTemplate**](CoreV1Api.md#createNamespacedPodTemplate) | **POST** /api/v1/namespaces/{namespace}/podtemplates | | +| [**createNamespacedReplicationController**](CoreV1Api.md#createNamespacedReplicationController) | **POST** /api/v1/namespaces/{namespace}/replicationcontrollers | | +| [**createNamespacedResourceQuota**](CoreV1Api.md#createNamespacedResourceQuota) | **POST** /api/v1/namespaces/{namespace}/resourcequotas | | +| [**createNamespacedSecret**](CoreV1Api.md#createNamespacedSecret) | **POST** /api/v1/namespaces/{namespace}/secrets | | +| [**createNamespacedService**](CoreV1Api.md#createNamespacedService) | **POST** /api/v1/namespaces/{namespace}/services | | +| [**createNamespacedServiceAccount**](CoreV1Api.md#createNamespacedServiceAccount) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts | | +| [**createNamespacedServiceAccountToken**](CoreV1Api.md#createNamespacedServiceAccountToken) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts/{name}/token | | +| [**createNode**](CoreV1Api.md#createNode) | **POST** /api/v1/nodes | | +| [**createPersistentVolume**](CoreV1Api.md#createPersistentVolume) | **POST** /api/v1/persistentvolumes | | +| [**deleteCollectionNamespacedConfigMap**](CoreV1Api.md#deleteCollectionNamespacedConfigMap) | **DELETE** /api/v1/namespaces/{namespace}/configmaps | | +| [**deleteCollectionNamespacedEndpoints**](CoreV1Api.md#deleteCollectionNamespacedEndpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints | | +| [**deleteCollectionNamespacedEvent**](CoreV1Api.md#deleteCollectionNamespacedEvent) | **DELETE** /api/v1/namespaces/{namespace}/events | | +| [**deleteCollectionNamespacedLimitRange**](CoreV1Api.md#deleteCollectionNamespacedLimitRange) | **DELETE** /api/v1/namespaces/{namespace}/limitranges | | +| [**deleteCollectionNamespacedPersistentVolumeClaim**](CoreV1Api.md#deleteCollectionNamespacedPersistentVolumeClaim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims | | +| [**deleteCollectionNamespacedPod**](CoreV1Api.md#deleteCollectionNamespacedPod) | **DELETE** /api/v1/namespaces/{namespace}/pods | | +| [**deleteCollectionNamespacedPodTemplate**](CoreV1Api.md#deleteCollectionNamespacedPodTemplate) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates | | +| [**deleteCollectionNamespacedReplicationController**](CoreV1Api.md#deleteCollectionNamespacedReplicationController) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers | | +| [**deleteCollectionNamespacedResourceQuota**](CoreV1Api.md#deleteCollectionNamespacedResourceQuota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas | | +| [**deleteCollectionNamespacedSecret**](CoreV1Api.md#deleteCollectionNamespacedSecret) | **DELETE** /api/v1/namespaces/{namespace}/secrets | | +| [**deleteCollectionNamespacedService**](CoreV1Api.md#deleteCollectionNamespacedService) | **DELETE** /api/v1/namespaces/{namespace}/services | | +| [**deleteCollectionNamespacedServiceAccount**](CoreV1Api.md#deleteCollectionNamespacedServiceAccount) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts | | +| [**deleteCollectionNode**](CoreV1Api.md#deleteCollectionNode) | **DELETE** /api/v1/nodes | | +| [**deleteCollectionPersistentVolume**](CoreV1Api.md#deleteCollectionPersistentVolume) | **DELETE** /api/v1/persistentvolumes | | +| [**deleteNamespace**](CoreV1Api.md#deleteNamespace) | **DELETE** /api/v1/namespaces/{name} | | +| [**deleteNamespacedConfigMap**](CoreV1Api.md#deleteNamespacedConfigMap) | **DELETE** /api/v1/namespaces/{namespace}/configmaps/{name} | | +| [**deleteNamespacedEndpoints**](CoreV1Api.md#deleteNamespacedEndpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints/{name} | | +| [**deleteNamespacedEvent**](CoreV1Api.md#deleteNamespacedEvent) | **DELETE** /api/v1/namespaces/{namespace}/events/{name} | | +| [**deleteNamespacedLimitRange**](CoreV1Api.md#deleteNamespacedLimitRange) | **DELETE** /api/v1/namespaces/{namespace}/limitranges/{name} | | +| [**deleteNamespacedPersistentVolumeClaim**](CoreV1Api.md#deleteNamespacedPersistentVolumeClaim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | | +| [**deleteNamespacedPod**](CoreV1Api.md#deleteNamespacedPod) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name} | | +| [**deleteNamespacedPodTemplate**](CoreV1Api.md#deleteNamespacedPodTemplate) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates/{name} | | +| [**deleteNamespacedReplicationController**](CoreV1Api.md#deleteNamespacedReplicationController) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | | +| [**deleteNamespacedResourceQuota**](CoreV1Api.md#deleteNamespacedResourceQuota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas/{name} | | +| [**deleteNamespacedSecret**](CoreV1Api.md#deleteNamespacedSecret) | **DELETE** /api/v1/namespaces/{namespace}/secrets/{name} | | +| [**deleteNamespacedService**](CoreV1Api.md#deleteNamespacedService) | **DELETE** /api/v1/namespaces/{namespace}/services/{name} | | +| [**deleteNamespacedServiceAccount**](CoreV1Api.md#deleteNamespacedServiceAccount) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | | +| [**deleteNode**](CoreV1Api.md#deleteNode) | **DELETE** /api/v1/nodes/{name} | | +| [**deletePersistentVolume**](CoreV1Api.md#deletePersistentVolume) | **DELETE** /api/v1/persistentvolumes/{name} | | +| [**getAPIResources**](CoreV1Api.md#getAPIResources) | **GET** /api/v1/ | | +| [**listComponentStatus**](CoreV1Api.md#listComponentStatus) | **GET** /api/v1/componentstatuses | | +| [**listConfigMapForAllNamespaces**](CoreV1Api.md#listConfigMapForAllNamespaces) | **GET** /api/v1/configmaps | | +| [**listEndpointsForAllNamespaces**](CoreV1Api.md#listEndpointsForAllNamespaces) | **GET** /api/v1/endpoints | | +| [**listEventForAllNamespaces**](CoreV1Api.md#listEventForAllNamespaces) | **GET** /api/v1/events | | +| [**listLimitRangeForAllNamespaces**](CoreV1Api.md#listLimitRangeForAllNamespaces) | **GET** /api/v1/limitranges | | +| [**listNamespace**](CoreV1Api.md#listNamespace) | **GET** /api/v1/namespaces | | +| [**listNamespacedConfigMap**](CoreV1Api.md#listNamespacedConfigMap) | **GET** /api/v1/namespaces/{namespace}/configmaps | | +| [**listNamespacedEndpoints**](CoreV1Api.md#listNamespacedEndpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints | | +| [**listNamespacedEvent**](CoreV1Api.md#listNamespacedEvent) | **GET** /api/v1/namespaces/{namespace}/events | | +| [**listNamespacedLimitRange**](CoreV1Api.md#listNamespacedLimitRange) | **GET** /api/v1/namespaces/{namespace}/limitranges | | +| [**listNamespacedPersistentVolumeClaim**](CoreV1Api.md#listNamespacedPersistentVolumeClaim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims | | +| [**listNamespacedPod**](CoreV1Api.md#listNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods | | +| [**listNamespacedPodTemplate**](CoreV1Api.md#listNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates | | +| [**listNamespacedReplicationController**](CoreV1Api.md#listNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers | | +| [**listNamespacedResourceQuota**](CoreV1Api.md#listNamespacedResourceQuota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas | | +| [**listNamespacedSecret**](CoreV1Api.md#listNamespacedSecret) | **GET** /api/v1/namespaces/{namespace}/secrets | | +| [**listNamespacedService**](CoreV1Api.md#listNamespacedService) | **GET** /api/v1/namespaces/{namespace}/services | | +| [**listNamespacedServiceAccount**](CoreV1Api.md#listNamespacedServiceAccount) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts | | +| [**listNode**](CoreV1Api.md#listNode) | **GET** /api/v1/nodes | | +| [**listPersistentVolume**](CoreV1Api.md#listPersistentVolume) | **GET** /api/v1/persistentvolumes | | +| [**listPersistentVolumeClaimForAllNamespaces**](CoreV1Api.md#listPersistentVolumeClaimForAllNamespaces) | **GET** /api/v1/persistentvolumeclaims | | +| [**listPodForAllNamespaces**](CoreV1Api.md#listPodForAllNamespaces) | **GET** /api/v1/pods | | +| [**listPodTemplateForAllNamespaces**](CoreV1Api.md#listPodTemplateForAllNamespaces) | **GET** /api/v1/podtemplates | | +| [**listReplicationControllerForAllNamespaces**](CoreV1Api.md#listReplicationControllerForAllNamespaces) | **GET** /api/v1/replicationcontrollers | | +| [**listResourceQuotaForAllNamespaces**](CoreV1Api.md#listResourceQuotaForAllNamespaces) | **GET** /api/v1/resourcequotas | | +| [**listSecretForAllNamespaces**](CoreV1Api.md#listSecretForAllNamespaces) | **GET** /api/v1/secrets | | +| [**listServiceAccountForAllNamespaces**](CoreV1Api.md#listServiceAccountForAllNamespaces) | **GET** /api/v1/serviceaccounts | | +| [**listServiceForAllNamespaces**](CoreV1Api.md#listServiceForAllNamespaces) | **GET** /api/v1/services | | +| [**patchNamespace**](CoreV1Api.md#patchNamespace) | **PATCH** /api/v1/namespaces/{name} | | +| [**patchNamespaceStatus**](CoreV1Api.md#patchNamespaceStatus) | **PATCH** /api/v1/namespaces/{name}/status | | +| [**patchNamespacedConfigMap**](CoreV1Api.md#patchNamespacedConfigMap) | **PATCH** /api/v1/namespaces/{namespace}/configmaps/{name} | | +| [**patchNamespacedEndpoints**](CoreV1Api.md#patchNamespacedEndpoints) | **PATCH** /api/v1/namespaces/{namespace}/endpoints/{name} | | +| [**patchNamespacedEvent**](CoreV1Api.md#patchNamespacedEvent) | **PATCH** /api/v1/namespaces/{namespace}/events/{name} | | +| [**patchNamespacedLimitRange**](CoreV1Api.md#patchNamespacedLimitRange) | **PATCH** /api/v1/namespaces/{namespace}/limitranges/{name} | | +| [**patchNamespacedPersistentVolumeClaim**](CoreV1Api.md#patchNamespacedPersistentVolumeClaim) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | | +| [**patchNamespacedPersistentVolumeClaimStatus**](CoreV1Api.md#patchNamespacedPersistentVolumeClaimStatus) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | | +| [**patchNamespacedPod**](CoreV1Api.md#patchNamespacedPod) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name} | | +| [**patchNamespacedPodEphemeralcontainers**](CoreV1Api.md#patchNamespacedPodEphemeralcontainers) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | | +| [**patchNamespacedPodStatus**](CoreV1Api.md#patchNamespacedPodStatus) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/status | | +| [**patchNamespacedPodTemplate**](CoreV1Api.md#patchNamespacedPodTemplate) | **PATCH** /api/v1/namespaces/{namespace}/podtemplates/{name} | | +| [**patchNamespacedReplicationController**](CoreV1Api.md#patchNamespacedReplicationController) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | | +| [**patchNamespacedReplicationControllerScale**](CoreV1Api.md#patchNamespacedReplicationControllerScale) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | | +| [**patchNamespacedReplicationControllerStatus**](CoreV1Api.md#patchNamespacedReplicationControllerStatus) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | | +| [**patchNamespacedResourceQuota**](CoreV1Api.md#patchNamespacedResourceQuota) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name} | | +| [**patchNamespacedResourceQuotaStatus**](CoreV1Api.md#patchNamespacedResourceQuotaStatus) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | | +| [**patchNamespacedSecret**](CoreV1Api.md#patchNamespacedSecret) | **PATCH** /api/v1/namespaces/{namespace}/secrets/{name} | | +| [**patchNamespacedService**](CoreV1Api.md#patchNamespacedService) | **PATCH** /api/v1/namespaces/{namespace}/services/{name} | | +| [**patchNamespacedServiceAccount**](CoreV1Api.md#patchNamespacedServiceAccount) | **PATCH** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | | +| [**patchNamespacedServiceStatus**](CoreV1Api.md#patchNamespacedServiceStatus) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/status | | +| [**patchNode**](CoreV1Api.md#patchNode) | **PATCH** /api/v1/nodes/{name} | | +| [**patchNodeStatus**](CoreV1Api.md#patchNodeStatus) | **PATCH** /api/v1/nodes/{name}/status | | +| [**patchPersistentVolume**](CoreV1Api.md#patchPersistentVolume) | **PATCH** /api/v1/persistentvolumes/{name} | | +| [**patchPersistentVolumeStatus**](CoreV1Api.md#patchPersistentVolumeStatus) | **PATCH** /api/v1/persistentvolumes/{name}/status | | +| [**readComponentStatus**](CoreV1Api.md#readComponentStatus) | **GET** /api/v1/componentstatuses/{name} | | +| [**readNamespace**](CoreV1Api.md#readNamespace) | **GET** /api/v1/namespaces/{name} | | +| [**readNamespaceStatus**](CoreV1Api.md#readNamespaceStatus) | **GET** /api/v1/namespaces/{name}/status | | +| [**readNamespacedConfigMap**](CoreV1Api.md#readNamespacedConfigMap) | **GET** /api/v1/namespaces/{namespace}/configmaps/{name} | | +| [**readNamespacedEndpoints**](CoreV1Api.md#readNamespacedEndpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints/{name} | | +| [**readNamespacedEvent**](CoreV1Api.md#readNamespacedEvent) | **GET** /api/v1/namespaces/{namespace}/events/{name} | | +| [**readNamespacedLimitRange**](CoreV1Api.md#readNamespacedLimitRange) | **GET** /api/v1/namespaces/{namespace}/limitranges/{name} | | +| [**readNamespacedPersistentVolumeClaim**](CoreV1Api.md#readNamespacedPersistentVolumeClaim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | | +| [**readNamespacedPersistentVolumeClaimStatus**](CoreV1Api.md#readNamespacedPersistentVolumeClaimStatus) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | | +| [**readNamespacedPod**](CoreV1Api.md#readNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods/{name} | | +| [**readNamespacedPodEphemeralcontainers**](CoreV1Api.md#readNamespacedPodEphemeralcontainers) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | | +| [**readNamespacedPodLog**](CoreV1Api.md#readNamespacedPodLog) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/log | | +| [**readNamespacedPodStatus**](CoreV1Api.md#readNamespacedPodStatus) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/status | | +| [**readNamespacedPodTemplate**](CoreV1Api.md#readNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates/{name} | | +| [**readNamespacedReplicationController**](CoreV1Api.md#readNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | | +| [**readNamespacedReplicationControllerScale**](CoreV1Api.md#readNamespacedReplicationControllerScale) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | | +| [**readNamespacedReplicationControllerStatus**](CoreV1Api.md#readNamespacedReplicationControllerStatus) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | | +| [**readNamespacedResourceQuota**](CoreV1Api.md#readNamespacedResourceQuota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name} | | +| [**readNamespacedResourceQuotaStatus**](CoreV1Api.md#readNamespacedResourceQuotaStatus) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | | +| [**readNamespacedSecret**](CoreV1Api.md#readNamespacedSecret) | **GET** /api/v1/namespaces/{namespace}/secrets/{name} | | +| [**readNamespacedService**](CoreV1Api.md#readNamespacedService) | **GET** /api/v1/namespaces/{namespace}/services/{name} | | +| [**readNamespacedServiceAccount**](CoreV1Api.md#readNamespacedServiceAccount) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | | +| [**readNamespacedServiceStatus**](CoreV1Api.md#readNamespacedServiceStatus) | **GET** /api/v1/namespaces/{namespace}/services/{name}/status | | +| [**readNode**](CoreV1Api.md#readNode) | **GET** /api/v1/nodes/{name} | | +| [**readNodeStatus**](CoreV1Api.md#readNodeStatus) | **GET** /api/v1/nodes/{name}/status | | +| [**readPersistentVolume**](CoreV1Api.md#readPersistentVolume) | **GET** /api/v1/persistentvolumes/{name} | | +| [**readPersistentVolumeStatus**](CoreV1Api.md#readPersistentVolumeStatus) | **GET** /api/v1/persistentvolumes/{name}/status | | +| [**replaceNamespace**](CoreV1Api.md#replaceNamespace) | **PUT** /api/v1/namespaces/{name} | | +| [**replaceNamespaceFinalize**](CoreV1Api.md#replaceNamespaceFinalize) | **PUT** /api/v1/namespaces/{name}/finalize | | +| [**replaceNamespaceStatus**](CoreV1Api.md#replaceNamespaceStatus) | **PUT** /api/v1/namespaces/{name}/status | | +| [**replaceNamespacedConfigMap**](CoreV1Api.md#replaceNamespacedConfigMap) | **PUT** /api/v1/namespaces/{namespace}/configmaps/{name} | | +| [**replaceNamespacedEndpoints**](CoreV1Api.md#replaceNamespacedEndpoints) | **PUT** /api/v1/namespaces/{namespace}/endpoints/{name} | | +| [**replaceNamespacedEvent**](CoreV1Api.md#replaceNamespacedEvent) | **PUT** /api/v1/namespaces/{namespace}/events/{name} | | +| [**replaceNamespacedLimitRange**](CoreV1Api.md#replaceNamespacedLimitRange) | **PUT** /api/v1/namespaces/{namespace}/limitranges/{name} | | +| [**replaceNamespacedPersistentVolumeClaim**](CoreV1Api.md#replaceNamespacedPersistentVolumeClaim) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | | +| [**replaceNamespacedPersistentVolumeClaimStatus**](CoreV1Api.md#replaceNamespacedPersistentVolumeClaimStatus) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | | +| [**replaceNamespacedPod**](CoreV1Api.md#replaceNamespacedPod) | **PUT** /api/v1/namespaces/{namespace}/pods/{name} | | +| [**replaceNamespacedPodEphemeralcontainers**](CoreV1Api.md#replaceNamespacedPodEphemeralcontainers) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | | +| [**replaceNamespacedPodStatus**](CoreV1Api.md#replaceNamespacedPodStatus) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/status | | +| [**replaceNamespacedPodTemplate**](CoreV1Api.md#replaceNamespacedPodTemplate) | **PUT** /api/v1/namespaces/{namespace}/podtemplates/{name} | | +| [**replaceNamespacedReplicationController**](CoreV1Api.md#replaceNamespacedReplicationController) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | | +| [**replaceNamespacedReplicationControllerScale**](CoreV1Api.md#replaceNamespacedReplicationControllerScale) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | | +| [**replaceNamespacedReplicationControllerStatus**](CoreV1Api.md#replaceNamespacedReplicationControllerStatus) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | | +| [**replaceNamespacedResourceQuota**](CoreV1Api.md#replaceNamespacedResourceQuota) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name} | | +| [**replaceNamespacedResourceQuotaStatus**](CoreV1Api.md#replaceNamespacedResourceQuotaStatus) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | | +| [**replaceNamespacedSecret**](CoreV1Api.md#replaceNamespacedSecret) | **PUT** /api/v1/namespaces/{namespace}/secrets/{name} | | +| [**replaceNamespacedService**](CoreV1Api.md#replaceNamespacedService) | **PUT** /api/v1/namespaces/{namespace}/services/{name} | | +| [**replaceNamespacedServiceAccount**](CoreV1Api.md#replaceNamespacedServiceAccount) | **PUT** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | | +| [**replaceNamespacedServiceStatus**](CoreV1Api.md#replaceNamespacedServiceStatus) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/status | | +| [**replaceNode**](CoreV1Api.md#replaceNode) | **PUT** /api/v1/nodes/{name} | | +| [**replaceNodeStatus**](CoreV1Api.md#replaceNodeStatus) | **PUT** /api/v1/nodes/{name}/status | | +| [**replacePersistentVolume**](CoreV1Api.md#replacePersistentVolume) | **PUT** /api/v1/persistentvolumes/{name} | | +| [**replacePersistentVolumeStatus**](CoreV1Api.md#replacePersistentVolumeStatus) | **PUT** /api/v1/persistentvolumes/{name}/status | | + + + # **connectDeleteNamespacedPodProxy** > String connectDeleteNamespacedPodProxy(name, namespace, path) @@ -258,11 +258,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -280,10 +280,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectDeleteNamespacedPodProxyWithPath** > String connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -333,12 +333,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -356,10 +356,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectDeleteNamespacedServiceProxy** > String connectDeleteNamespacedServiceProxy(name, namespace, path) @@ -408,11 +408,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| 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. | [optional] | ### Return type @@ -430,10 +430,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectDeleteNamespacedServiceProxyWithPath** > String connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -483,12 +483,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| 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. | [optional] | ### Return type @@ -506,10 +506,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectDeleteNodeProxy** > String connectDeleteNodeProxy(name, path) @@ -557,10 +557,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -578,10 +578,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectDeleteNodeProxyWithPath** > String connectDeleteNodeProxyWithPath(name, path, path2) @@ -630,11 +630,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -652,10 +652,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNamespacedPodAttach** > String connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty) @@ -708,15 +708,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodAttachOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **container** | **String**| The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] - **stderr** | **Boolean**| Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] - **stdin** | **Boolean**| Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] - **stdout** | **Boolean**| Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] - **tty** | **Boolean**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodAttachOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **container** | **String**| The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] | +| **stderr** | **Boolean**| Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] | +| **stdin** | **Boolean**| Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] | +| **stdout** | **Boolean**| Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] | +| **tty** | **Boolean**| 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. | [optional] | ### Return type @@ -734,10 +734,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNamespacedPodExec** > String connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty) @@ -791,16 +791,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodExecOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **command** | **String**| Command is the remote command to execute. argv array. Not executed within a shell. | [optional] - **container** | **String**| Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] - **stderr** | **Boolean**| Redirect the standard error stream of the pod for this call. | [optional] - **stdin** | **Boolean**| Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] - **stdout** | **Boolean**| Redirect the standard output stream of the pod for this call. | [optional] - **tty** | **Boolean**| TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodExecOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **command** | **String**| Command is the remote command to execute. argv array. Not executed within a shell. | [optional] | +| **container** | **String**| Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] | +| **stderr** | **Boolean**| Redirect the standard error stream of the pod for this call. | [optional] | +| **stdin** | **Boolean**| Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] | +| **stdout** | **Boolean**| Redirect the standard output stream of the pod for this call. | [optional] | +| **tty** | **Boolean**| TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] | ### Return type @@ -818,10 +818,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNamespacedPodPortforward** > String connectGetNamespacedPodPortforward(name, namespace, ports) @@ -870,11 +870,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodPortForwardOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **ports** | **Integer**| List of ports to forward Required when using WebSockets | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodPortForwardOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **ports** | **Integer**| List of ports to forward Required when using WebSockets | [optional] | ### Return type @@ -892,10 +892,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNamespacedPodProxy** > String connectGetNamespacedPodProxy(name, namespace, path) @@ -944,11 +944,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -966,10 +966,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNamespacedPodProxyWithPath** > String connectGetNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -1019,12 +1019,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -1042,10 +1042,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNamespacedServiceProxy** > String connectGetNamespacedServiceProxy(name, namespace, path) @@ -1094,11 +1094,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| 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. | [optional] | ### Return type @@ -1116,10 +1116,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNamespacedServiceProxyWithPath** > String connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -1169,12 +1169,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| 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. | [optional] | ### Return type @@ -1192,10 +1192,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNodeProxy** > String connectGetNodeProxy(name, path) @@ -1243,10 +1243,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -1264,10 +1264,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectGetNodeProxyWithPath** > String connectGetNodeProxyWithPath(name, path, path2) @@ -1316,11 +1316,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -1338,10 +1338,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectHeadNamespacedPodProxy** > String connectHeadNamespacedPodProxy(name, namespace, path) @@ -1390,11 +1390,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -1412,10 +1412,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectHeadNamespacedPodProxyWithPath** > String connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -1465,12 +1465,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -1488,10 +1488,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectHeadNamespacedServiceProxy** > String connectHeadNamespacedServiceProxy(name, namespace, path) @@ -1540,11 +1540,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| 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. | [optional] | ### Return type @@ -1562,10 +1562,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectHeadNamespacedServiceProxyWithPath** > String connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -1615,12 +1615,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| 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. | [optional] | ### Return type @@ -1638,10 +1638,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectHeadNodeProxy** > String connectHeadNodeProxy(name, path) @@ -1689,10 +1689,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -1710,10 +1710,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectHeadNodeProxyWithPath** > String connectHeadNodeProxyWithPath(name, path, path2) @@ -1762,11 +1762,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -1784,10 +1784,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectOptionsNamespacedPodProxy** > String connectOptionsNamespacedPodProxy(name, namespace, path) @@ -1836,11 +1836,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -1858,10 +1858,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectOptionsNamespacedPodProxyWithPath** > String connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -1911,12 +1911,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -1934,10 +1934,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectOptionsNamespacedServiceProxy** > String connectOptionsNamespacedServiceProxy(name, namespace, path) @@ -1986,11 +1986,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| 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. | [optional] | ### Return type @@ -2008,10 +2008,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectOptionsNamespacedServiceProxyWithPath** > String connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -2061,12 +2061,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| 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. | [optional] | ### Return type @@ -2084,10 +2084,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectOptionsNodeProxy** > String connectOptionsNodeProxy(name, path) @@ -2135,10 +2135,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -2156,10 +2156,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectOptionsNodeProxyWithPath** > String connectOptionsNodeProxyWithPath(name, path, path2) @@ -2208,11 +2208,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -2230,10 +2230,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPatchNamespacedPodProxy** > String connectPatchNamespacedPodProxy(name, namespace, path) @@ -2282,11 +2282,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -2304,10 +2304,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPatchNamespacedPodProxyWithPath** > String connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -2357,12 +2357,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -2380,10 +2380,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPatchNamespacedServiceProxy** > String connectPatchNamespacedServiceProxy(name, namespace, path) @@ -2432,11 +2432,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| 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. | [optional] | ### Return type @@ -2454,10 +2454,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPatchNamespacedServiceProxyWithPath** > String connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -2507,12 +2507,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| 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. | [optional] | ### Return type @@ -2530,10 +2530,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPatchNodeProxy** > String connectPatchNodeProxy(name, path) @@ -2581,10 +2581,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -2602,10 +2602,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPatchNodeProxyWithPath** > String connectPatchNodeProxyWithPath(name, path, path2) @@ -2654,11 +2654,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -2676,10 +2676,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNamespacedPodAttach** > String connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty) @@ -2732,15 +2732,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodAttachOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **container** | **String**| The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] - **stderr** | **Boolean**| Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] - **stdin** | **Boolean**| Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] - **stdout** | **Boolean**| Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] - **tty** | **Boolean**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodAttachOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **container** | **String**| The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] | +| **stderr** | **Boolean**| Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] | +| **stdin** | **Boolean**| Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] | +| **stdout** | **Boolean**| Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] | +| **tty** | **Boolean**| 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. | [optional] | ### Return type @@ -2758,10 +2758,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNamespacedPodExec** > String connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty) @@ -2815,16 +2815,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodExecOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **command** | **String**| Command is the remote command to execute. argv array. Not executed within a shell. | [optional] - **container** | **String**| Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] - **stderr** | **Boolean**| Redirect the standard error stream of the pod for this call. | [optional] - **stdin** | **Boolean**| Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] - **stdout** | **Boolean**| Redirect the standard output stream of the pod for this call. | [optional] - **tty** | **Boolean**| TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodExecOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **command** | **String**| Command is the remote command to execute. argv array. Not executed within a shell. | [optional] | +| **container** | **String**| Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] | +| **stderr** | **Boolean**| Redirect the standard error stream of the pod for this call. | [optional] | +| **stdin** | **Boolean**| Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] | +| **stdout** | **Boolean**| Redirect the standard output stream of the pod for this call. | [optional] | +| **tty** | **Boolean**| TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] | ### Return type @@ -2842,10 +2842,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNamespacedPodPortforward** > String connectPostNamespacedPodPortforward(name, namespace, ports) @@ -2894,11 +2894,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodPortForwardOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **ports** | **Integer**| List of ports to forward Required when using WebSockets | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodPortForwardOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **ports** | **Integer**| List of ports to forward Required when using WebSockets | [optional] | ### Return type @@ -2916,10 +2916,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNamespacedPodProxy** > String connectPostNamespacedPodProxy(name, namespace, path) @@ -2968,11 +2968,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -2990,10 +2990,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNamespacedPodProxyWithPath** > String connectPostNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -3043,12 +3043,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -3066,10 +3066,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNamespacedServiceProxy** > String connectPostNamespacedServiceProxy(name, namespace, path) @@ -3118,11 +3118,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| 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. | [optional] | ### Return type @@ -3140,10 +3140,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNamespacedServiceProxyWithPath** > String connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -3193,12 +3193,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| 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. | [optional] | ### Return type @@ -3216,10 +3216,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNodeProxy** > String connectPostNodeProxy(name, path) @@ -3267,10 +3267,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -3288,10 +3288,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPostNodeProxyWithPath** > String connectPostNodeProxyWithPath(name, path, path2) @@ -3340,11 +3340,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -3362,10 +3362,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPutNamespacedPodProxy** > String connectPutNamespacedPodProxy(name, namespace, path) @@ -3414,11 +3414,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -3436,10 +3436,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPutNamespacedPodProxyWithPath** > String connectPutNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -3489,12 +3489,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] | ### Return type @@ -3512,10 +3512,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPutNamespacedServiceProxy** > String connectPutNamespacedServiceProxy(name, namespace, path) @@ -3564,11 +3564,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| 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. | [optional] | ### Return type @@ -3586,10 +3586,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPutNamespacedServiceProxyWithPath** > String connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -3639,12 +3639,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceProxyOptions | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| 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. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceProxyOptions | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| 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. | [optional] | ### Return type @@ -3662,10 +3662,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPutNodeProxy** > String connectPutNodeProxy(name, path) @@ -3713,10 +3713,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -3734,10 +3734,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **connectPutNodeProxyWithPath** > String connectPutNodeProxyWithPath(name, path, path2) @@ -3786,11 +3786,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NodeProxyOptions | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NodeProxyOptions | | +| **path** | **String**| path to the resource | | +| **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] | ### Return type @@ -3808,10 +3808,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **createNamespace** > V1Namespace createNamespace(body, pretty, dryRun, fieldManager, fieldValidation) @@ -3862,13 +3862,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1Namespace**](V1Namespace.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3886,12 +3886,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedBinding** > V1Binding createNamespacedBinding(namespace, body, dryRun, fieldManager, fieldValidation, pretty) @@ -3943,14 +3943,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Binding**](V1Binding.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Binding**](V1Binding.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -3968,12 +3968,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedConfigMap** > V1ConfigMap createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4025,14 +4025,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ConfigMap**](V1ConfigMap.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ConfigMap**](V1ConfigMap.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4050,12 +4050,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedEndpoints** > V1Endpoints createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4107,14 +4107,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Endpoints**](V1Endpoints.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Endpoints**](V1Endpoints.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4132,12 +4132,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedEvent** > CoreV1Event createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4189,14 +4189,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**CoreV1Event**](CoreV1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**CoreV1Event**](CoreV1Event.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4214,12 +4214,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedLimitRange** > V1LimitRange createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4271,14 +4271,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1LimitRange**](V1LimitRange.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1LimitRange**](V1LimitRange.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4296,12 +4296,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4353,14 +4353,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4378,12 +4378,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedPod** > V1Pod createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4435,14 +4435,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Pod**](V1Pod.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4460,12 +4460,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedPodBinding** > V1Binding createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty) @@ -4518,15 +4518,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Binding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Binding**](V1Binding.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Binding | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Binding**](V1Binding.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -4544,12 +4544,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedPodEviction** > V1Eviction createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty) @@ -4602,15 +4602,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Eviction | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Eviction**](V1Eviction.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Eviction | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Eviction**](V1Eviction.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -4628,12 +4628,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedPodTemplate** > V1PodTemplate createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4685,14 +4685,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PodTemplate**](V1PodTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PodTemplate**](V1PodTemplate.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4710,12 +4710,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedReplicationController** > V1ReplicationController createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4767,14 +4767,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ReplicationController**](V1ReplicationController.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4792,12 +4792,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedResourceQuota** > V1ResourceQuota createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4849,14 +4849,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4874,12 +4874,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedSecret** > V1Secret createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -4931,14 +4931,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Secret**](V1Secret.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Secret**](V1Secret.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -4956,12 +4956,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedService** > V1Service createNamespacedService(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -5013,14 +5013,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Service**](V1Service.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -5038,12 +5038,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedServiceAccount** > V1ServiceAccount createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -5095,14 +5095,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -5120,12 +5120,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedServiceAccountToken** > AuthenticationV1TokenRequest createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty) @@ -5178,15 +5178,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the TokenRequest | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**AuthenticationV1TokenRequest**](AuthenticationV1TokenRequest.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the TokenRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**AuthenticationV1TokenRequest**](AuthenticationV1TokenRequest.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -5204,12 +5204,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNode** > V1Node createNode(body, pretty, dryRun, fieldManager, fieldValidation) @@ -5260,13 +5260,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1Node**](V1Node.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -5284,12 +5284,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createPersistentVolume** > V1PersistentVolume createPersistentVolume(body, pretty, dryRun, fieldManager, fieldValidation) @@ -5340,13 +5340,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -5364,12 +5364,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedConfigMap** > V1Status deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5430,23 +5430,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -5464,10 +5464,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedEndpoints** > V1Status deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5528,23 +5528,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -5562,10 +5562,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedEvent** > V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5626,23 +5626,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -5660,10 +5660,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedLimitRange** > V1Status deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5724,23 +5724,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -5758,10 +5758,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedPersistentVolumeClaim** > V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5822,23 +5822,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -5856,10 +5856,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedPod** > V1Status deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5920,23 +5920,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -5954,10 +5954,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedPodTemplate** > V1Status deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6018,23 +6018,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6052,10 +6052,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedReplicationController** > V1Status deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6116,23 +6116,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6150,10 +6150,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedResourceQuota** > V1Status deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6214,23 +6214,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6248,10 +6248,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedSecret** > V1Status deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6312,23 +6312,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6346,10 +6346,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedService** > V1Status deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6410,23 +6410,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6444,10 +6444,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedServiceAccount** > V1Status deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6508,23 +6508,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6542,10 +6542,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNode** > V1Status deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6605,22 +6605,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6638,10 +6638,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionPersistentVolume** > V1Status deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6701,22 +6701,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6734,10 +6734,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespace** > V1Status deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -6790,15 +6790,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Namespace | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6816,11 +6816,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedConfigMap** > V1Status deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -6874,16 +6874,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ConfigMap | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ConfigMap | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6901,11 +6901,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedEndpoints** > V1Status deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -6959,16 +6959,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Endpoints | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Endpoints | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -6986,11 +6986,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedEvent** > V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7044,16 +7044,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Event | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7071,11 +7071,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedLimitRange** > V1Status deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7129,16 +7129,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the LimitRange | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the LimitRange | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7156,11 +7156,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7214,16 +7214,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolumeClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7241,11 +7241,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedPod** > V1Pod deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7299,16 +7299,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7326,11 +7326,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedPodTemplate** > V1PodTemplate deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7384,16 +7384,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7411,11 +7411,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedReplicationController** > V1Status deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7469,16 +7469,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicationController | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7496,11 +7496,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedResourceQuota** > V1ResourceQuota deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7554,16 +7554,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceQuota | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7581,11 +7581,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedSecret** > V1Status deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7639,16 +7639,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Secret | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Secret | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7666,11 +7666,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedService** > V1Service deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7724,16 +7724,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Service | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7751,11 +7751,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedServiceAccount** > V1ServiceAccount deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7809,16 +7809,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceAccount | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceAccount | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7836,11 +7836,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNode** > V1Status deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7893,15 +7893,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Node | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -7919,11 +7919,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deletePersistentVolume** > V1PersistentVolume deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -7976,15 +7976,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolume | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -8002,11 +8002,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -8069,10 +8069,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listComponentStatus** > V1ComponentStatusList listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8129,19 +8129,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8159,10 +8159,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listConfigMapForAllNamespaces** > V1ConfigMapList listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8219,19 +8219,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8249,10 +8249,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listEndpointsForAllNamespaces** > V1EndpointsList listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8309,19 +8309,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8339,10 +8339,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listEventForAllNamespaces** > CoreV1EventList listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8399,19 +8399,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8429,10 +8429,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listLimitRangeForAllNamespaces** > V1LimitRangeList listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8489,19 +8489,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8519,10 +8519,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespace** > V1NamespaceList listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8579,19 +8579,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8609,10 +8609,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedConfigMap** > V1ConfigMapList listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8670,20 +8670,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8701,10 +8701,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedEndpoints** > V1EndpointsList listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8762,20 +8762,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8793,10 +8793,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedEvent** > CoreV1EventList listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8854,20 +8854,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8885,10 +8885,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedLimitRange** > V1LimitRangeList listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -8946,20 +8946,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -8977,10 +8977,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9038,20 +9038,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9069,10 +9069,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedPod** > V1PodList listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9130,20 +9130,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9161,10 +9161,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedPodTemplate** > V1PodTemplateList listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9222,20 +9222,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9253,10 +9253,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedReplicationController** > V1ReplicationControllerList listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9314,20 +9314,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9345,10 +9345,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedResourceQuota** > V1ResourceQuotaList listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9406,20 +9406,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9437,10 +9437,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedSecret** > V1SecretList listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9498,20 +9498,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9529,10 +9529,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedService** > V1ServiceList listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9590,20 +9590,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9621,10 +9621,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedServiceAccount** > V1ServiceAccountList listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9682,20 +9682,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9713,10 +9713,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNode** > V1NodeList listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9773,19 +9773,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9803,10 +9803,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPersistentVolume** > V1PersistentVolumeList listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9863,19 +9863,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9893,10 +9893,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPersistentVolumeClaimForAllNamespaces** > V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -9953,19 +9953,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -9983,10 +9983,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPodForAllNamespaces** > V1PodList listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -10043,19 +10043,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -10073,10 +10073,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPodTemplateForAllNamespaces** > V1PodTemplateList listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -10133,19 +10133,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -10163,10 +10163,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listReplicationControllerForAllNamespaces** > V1ReplicationControllerList listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -10223,19 +10223,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -10253,10 +10253,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listResourceQuotaForAllNamespaces** > V1ResourceQuotaList listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -10313,19 +10313,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -10343,10 +10343,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listSecretForAllNamespaces** > V1SecretList listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -10403,19 +10403,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -10433,10 +10433,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listServiceAccountForAllNamespaces** > V1ServiceAccountList listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -10493,19 +10493,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -10523,10 +10523,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listServiceForAllNamespaces** > V1ServiceList listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -10583,19 +10583,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -10613,10 +10613,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespace** > V1Namespace patchNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -10669,15 +10669,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Namespace | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -10695,11 +10695,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespaceStatus** > V1Namespace patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -10752,15 +10752,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Namespace | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -10778,11 +10778,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedConfigMap** > V1ConfigMap patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -10836,16 +10836,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ConfigMap | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ConfigMap | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -10863,11 +10863,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedEndpoints** > V1Endpoints patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -10921,16 +10921,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Endpoints | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Endpoints | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -10948,11 +10948,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedEvent** > CoreV1Event patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11006,16 +11006,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Event | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11033,11 +11033,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedLimitRange** > V1LimitRange patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11091,16 +11091,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the LimitRange | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the LimitRange | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11118,11 +11118,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11176,16 +11176,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolumeClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11203,11 +11203,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPersistentVolumeClaimStatus** > V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11261,16 +11261,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolumeClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11288,11 +11288,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPod** > V1Pod patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11346,16 +11346,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11373,11 +11373,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPodEphemeralcontainers** > V1Pod patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11431,16 +11431,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11458,11 +11458,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPodStatus** > V1Pod patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11516,16 +11516,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11543,11 +11543,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPodTemplate** > V1PodTemplate patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11601,16 +11601,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11628,11 +11628,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedReplicationController** > V1ReplicationController patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11686,16 +11686,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicationController | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11713,11 +11713,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedReplicationControllerScale** > V1Scale patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11771,16 +11771,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11798,11 +11798,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedReplicationControllerStatus** > V1ReplicationController patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11856,16 +11856,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicationController | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11883,11 +11883,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedResourceQuota** > V1ResourceQuota patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -11941,16 +11941,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceQuota | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -11968,11 +11968,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedResourceQuotaStatus** > V1ResourceQuota patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12026,16 +12026,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceQuota | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12053,11 +12053,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedSecret** > V1Secret patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12111,16 +12111,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Secret | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Secret | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12138,11 +12138,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedService** > V1Service patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12196,16 +12196,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Service | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12223,11 +12223,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedServiceAccount** > V1ServiceAccount patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12281,16 +12281,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceAccount | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceAccount | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12308,11 +12308,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedServiceStatus** > V1Service patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12366,16 +12366,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Service | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12393,11 +12393,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNode** > V1Node patchNode(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12450,15 +12450,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Node | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12476,11 +12476,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNodeStatus** > V1Node patchNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12533,15 +12533,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Node | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12559,11 +12559,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchPersistentVolume** > V1PersistentVolume patchPersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12616,15 +12616,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolume | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12642,11 +12642,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchPersistentVolumeStatus** > V1PersistentVolume patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -12699,15 +12699,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolume | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -12725,11 +12725,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readComponentStatus** > V1ComponentStatus readComponentStatus(name, pretty) @@ -12777,10 +12777,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ComponentStatus | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ComponentStatus | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -12798,10 +12798,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespace** > V1Namespace readNamespace(name, pretty) @@ -12849,10 +12849,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Namespace | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -12870,10 +12870,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespaceStatus** > V1Namespace readNamespaceStatus(name, pretty) @@ -12921,10 +12921,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Namespace | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -12942,10 +12942,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedConfigMap** > V1ConfigMap readNamespacedConfigMap(name, namespace, pretty) @@ -12994,11 +12994,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ConfigMap | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ConfigMap | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13016,10 +13016,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedEndpoints** > V1Endpoints readNamespacedEndpoints(name, namespace, pretty) @@ -13068,11 +13068,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Endpoints | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Endpoints | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13090,10 +13090,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedEvent** > CoreV1Event readNamespacedEvent(name, namespace, pretty) @@ -13142,11 +13142,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Event | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13164,10 +13164,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedLimitRange** > V1LimitRange readNamespacedLimitRange(name, namespace, pretty) @@ -13216,11 +13216,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the LimitRange | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the LimitRange | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13238,10 +13238,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim readNamespacedPersistentVolumeClaim(name, namespace, pretty) @@ -13290,11 +13290,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolumeClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13312,10 +13312,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPersistentVolumeClaimStatus** > V1PersistentVolumeClaim readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty) @@ -13364,11 +13364,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolumeClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13386,10 +13386,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPod** > V1Pod readNamespacedPod(name, namespace, pretty) @@ -13438,11 +13438,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13460,10 +13460,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPodEphemeralcontainers** > V1Pod readNamespacedPodEphemeralcontainers(name, namespace, pretty) @@ -13512,11 +13512,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13534,10 +13534,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPodLog** > String readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps) @@ -13594,19 +13594,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **container** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. | [optional] - **follow** | **Boolean**| Follow the log stream of the pod. Defaults to false. | [optional] - **insecureSkipTLSVerifyBackend** | **Boolean**| 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). | [optional] - **limitBytes** | **Integer**| 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. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **previous** | **Boolean**| Return previous terminated container logs. Defaults to false. | [optional] - **sinceSeconds** | **Integer**| 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. | [optional] - **tailLines** | **Integer**| 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 | [optional] - **timestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **container** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. | [optional] | +| **follow** | **Boolean**| Follow the log stream of the pod. Defaults to false. | [optional] | +| **insecureSkipTLSVerifyBackend** | **Boolean**| 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). | [optional] | +| **limitBytes** | **Integer**| 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. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **previous** | **Boolean**| Return previous terminated container logs. Defaults to false. | [optional] | +| **sinceSeconds** | **Integer**| 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. | [optional] | +| **tailLines** | **Integer**| 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 | [optional] | +| **timestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] | ### Return type @@ -13624,10 +13624,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPodStatus** > V1Pod readNamespacedPodStatus(name, namespace, pretty) @@ -13676,11 +13676,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13698,10 +13698,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPodTemplate** > V1PodTemplate readNamespacedPodTemplate(name, namespace, pretty) @@ -13750,11 +13750,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13772,10 +13772,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedReplicationController** > V1ReplicationController readNamespacedReplicationController(name, namespace, pretty) @@ -13824,11 +13824,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicationController | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13846,10 +13846,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedReplicationControllerScale** > V1Scale readNamespacedReplicationControllerScale(name, namespace, pretty) @@ -13898,11 +13898,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13920,10 +13920,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedReplicationControllerStatus** > V1ReplicationController readNamespacedReplicationControllerStatus(name, namespace, pretty) @@ -13972,11 +13972,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicationController | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -13994,10 +13994,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedResourceQuota** > V1ResourceQuota readNamespacedResourceQuota(name, namespace, pretty) @@ -14046,11 +14046,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceQuota | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14068,10 +14068,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedResourceQuotaStatus** > V1ResourceQuota readNamespacedResourceQuotaStatus(name, namespace, pretty) @@ -14120,11 +14120,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceQuota | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14142,10 +14142,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedSecret** > V1Secret readNamespacedSecret(name, namespace, pretty) @@ -14194,11 +14194,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Secret | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Secret | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14216,10 +14216,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedService** > V1Service readNamespacedService(name, namespace, pretty) @@ -14268,11 +14268,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Service | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14290,10 +14290,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedServiceAccount** > V1ServiceAccount readNamespacedServiceAccount(name, namespace, pretty) @@ -14342,11 +14342,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceAccount | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceAccount | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14364,10 +14364,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedServiceStatus** > V1Service readNamespacedServiceStatus(name, namespace, pretty) @@ -14416,11 +14416,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Service | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14438,10 +14438,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNode** > V1Node readNode(name, pretty) @@ -14489,10 +14489,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Node | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14510,10 +14510,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNodeStatus** > V1Node readNodeStatus(name, pretty) @@ -14561,10 +14561,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Node | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14582,10 +14582,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readPersistentVolume** > V1PersistentVolume readPersistentVolume(name, pretty) @@ -14633,10 +14633,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolume | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14654,10 +14654,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readPersistentVolumeStatus** > V1PersistentVolume readPersistentVolumeStatus(name, pretty) @@ -14705,10 +14705,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolume | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14726,10 +14726,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespace** > V1Namespace replaceNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -14781,14 +14781,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Namespace | | +| **body** | [**V1Namespace**](V1Namespace.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -14806,11 +14806,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespaceFinalize** > V1Namespace replaceNamespaceFinalize(name, body, dryRun, fieldManager, fieldValidation, pretty) @@ -14862,14 +14862,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | [**V1Namespace**](V1Namespace.md)| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Namespace | | +| **body** | [**V1Namespace**](V1Namespace.md)| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -14887,11 +14887,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespaceStatus** > V1Namespace replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -14943,14 +14943,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Namespace | | +| **body** | [**V1Namespace**](V1Namespace.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -14968,11 +14968,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedConfigMap** > V1ConfigMap replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15025,15 +15025,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ConfigMap | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ConfigMap**](V1ConfigMap.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ConfigMap | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ConfigMap**](V1ConfigMap.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15051,11 +15051,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedEndpoints** > V1Endpoints replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15108,15 +15108,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Endpoints | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Endpoints**](V1Endpoints.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Endpoints | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Endpoints**](V1Endpoints.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15134,11 +15134,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedEvent** > CoreV1Event replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15191,15 +15191,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**CoreV1Event**](CoreV1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Event | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**CoreV1Event**](CoreV1Event.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15217,11 +15217,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedLimitRange** > V1LimitRange replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15274,15 +15274,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the LimitRange | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1LimitRange**](V1LimitRange.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the LimitRange | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1LimitRange**](V1LimitRange.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15300,11 +15300,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15357,15 +15357,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolumeClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15383,11 +15383,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPersistentVolumeClaimStatus** > V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15440,15 +15440,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolumeClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15466,11 +15466,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPod** > V1Pod replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15523,15 +15523,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Pod**](V1Pod.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15549,11 +15549,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPodEphemeralcontainers** > V1Pod replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15606,15 +15606,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Pod**](V1Pod.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15632,11 +15632,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPodStatus** > V1Pod replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15689,15 +15689,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Pod | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Pod**](V1Pod.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15715,11 +15715,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPodTemplate** > V1PodTemplate replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15772,15 +15772,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PodTemplate**](V1PodTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PodTemplate**](V1PodTemplate.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15798,11 +15798,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedReplicationController** > V1ReplicationController replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15855,15 +15855,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicationController | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ReplicationController**](V1ReplicationController.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15881,11 +15881,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedReplicationControllerScale** > V1Scale replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -15938,15 +15938,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Scale | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Scale**](V1Scale.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -15964,11 +15964,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedReplicationControllerStatus** > V1ReplicationController replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16021,15 +16021,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ReplicationController | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ReplicationController**](V1ReplicationController.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16047,11 +16047,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedResourceQuota** > V1ResourceQuota replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16104,15 +16104,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceQuota | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16130,11 +16130,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedResourceQuotaStatus** > V1ResourceQuota replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16187,15 +16187,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceQuota | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16213,11 +16213,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedSecret** > V1Secret replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16270,15 +16270,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Secret | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Secret**](V1Secret.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Secret | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Secret**](V1Secret.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16296,11 +16296,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedService** > V1Service replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16353,15 +16353,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Service | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Service**](V1Service.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16379,11 +16379,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedServiceAccount** > V1ServiceAccount replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16436,15 +16436,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceAccount | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ServiceAccount | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16462,11 +16462,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedServiceStatus** > V1Service replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16519,15 +16519,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Service | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Service**](V1Service.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16545,11 +16545,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNode** > V1Node replaceNode(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16601,14 +16601,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Node | | +| **body** | [**V1Node**](V1Node.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16626,11 +16626,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNodeStatus** > V1Node replaceNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16682,14 +16682,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Node | | +| **body** | [**V1Node**](V1Node.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16707,11 +16707,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replacePersistentVolume** > V1PersistentVolume replacePersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16763,14 +16763,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolume | | +| **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16788,11 +16788,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replacePersistentVolumeStatus** > V1PersistentVolume replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -16844,14 +16844,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PersistentVolume | | +| **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -16869,7 +16869,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/CoreV1EndpointPort.md b/kubernetes/docs/CoreV1EndpointPort.md index f42230f70c..7dbaf29356 100644 --- a/kubernetes/docs/CoreV1EndpointPort.md +++ b/kubernetes/docs/CoreV1EndpointPort.md @@ -3,6 +3,7 @@ # CoreV1EndpointPort EndpointPort is a tuple that describes a single port. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/CoreV1Event.md b/kubernetes/docs/CoreV1Event.md index 0b61f631e7..031fb0caf5 100644 --- a/kubernetes/docs/CoreV1Event.md +++ b/kubernetes/docs/CoreV1Event.md @@ -3,27 +3,28 @@ # CoreV1Event 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | What action was taken/failed regarding to the Regarding object. | [optional] -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**count** | **Integer** | The number of times this event has occurred. | [optional] -**eventTime** | [**OffsetDateTime**](OffsetDateTime.md) | Time when this Event was first observed. | [optional] -**firstTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [optional] -**involvedObject** | [**V1ObjectReference**](V1ObjectReference.md) | | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**lastTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | The time at which the most recent occurrence of this event was recorded. | [optional] -**message** | **String** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | -**reason** | **String** | This should be a short, machine understandable string that gives the reason for the transition into the object's current status. | [optional] -**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**reportingComponent** | **String** | Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. | [optional] -**reportingInstance** | **String** | ID of the controller instance, e.g. `kubelet-xyzf`. | [optional] -**series** | [**CoreV1EventSeries**](CoreV1EventSeries.md) | | [optional] -**source** | [**V1EventSource**](V1EventSource.md) | | [optional] -**type** | **String** | Type of this event (Normal, Warning), new types could be added in the future | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | What action was taken/failed regarding to the Regarding object. | [optional] | +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**count** | **Integer** | The number of times this event has occurred. | [optional] | +|**eventTime** | **OffsetDateTime** | Time when this Event was first observed. | [optional] | +|**firstTimestamp** | **OffsetDateTime** | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [optional] | +|**involvedObject** | [**V1ObjectReference**](V1ObjectReference.md) | | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**lastTimestamp** | **OffsetDateTime** | The time at which the most recent occurrence of this event was recorded. | [optional] | +|**message** | **String** | A human-readable description of the status of this operation. | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | | +|**reason** | **String** | This should be a short, machine understandable string that gives the reason for the transition into the object's current status. | [optional] | +|**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] | +|**reportingComponent** | **String** | Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. | [optional] | +|**reportingInstance** | **String** | ID of the controller instance, e.g. `kubelet-xyzf`. | [optional] | +|**series** | [**CoreV1EventSeries**](CoreV1EventSeries.md) | | [optional] | +|**source** | [**V1EventSource**](V1EventSource.md) | | [optional] | +|**type** | **String** | Type of this event (Normal, Warning), new types could be added in the future | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/CoreV1EventList.md b/kubernetes/docs/CoreV1EventList.md index 9916e79c58..894753c9a9 100644 --- a/kubernetes/docs/CoreV1EventList.md +++ b/kubernetes/docs/CoreV1EventList.md @@ -3,14 +3,15 @@ # CoreV1EventList EventList is a list of events. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<CoreV1Event>**](CoreV1Event.md) | List of events | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<CoreV1Event>**](CoreV1Event.md) | List of events | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/CoreV1EventSeries.md b/kubernetes/docs/CoreV1EventSeries.md index 1c15f665c4..ecc4cf5347 100644 --- a/kubernetes/docs/CoreV1EventSeries.md +++ b/kubernetes/docs/CoreV1EventSeries.md @@ -3,12 +3,13 @@ # CoreV1EventSeries EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Integer** | Number of occurrences in this series up to the last heartbeat time | [optional] -**lastObservedTime** | [**OffsetDateTime**](OffsetDateTime.md) | Time of the last occurrence observed | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**count** | **Integer** | Number of occurrences in this series up to the last heartbeat time | [optional] | +|**lastObservedTime** | **OffsetDateTime** | Time of the last occurrence observed | [optional] | diff --git a/kubernetes/docs/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index 0fa9503c93..94240be93c 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -2,38 +2,38 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createClusterCustomObject**](CustomObjectsApi.md#createClusterCustomObject) | **POST** /apis/{group}/{version}/{plural} | -[**createNamespacedCustomObject**](CustomObjectsApi.md#createNamespacedCustomObject) | **POST** /apis/{group}/{version}/namespaces/{namespace}/{plural} | -[**deleteClusterCustomObject**](CustomObjectsApi.md#deleteClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural}/{name} | -[**deleteCollectionClusterCustomObject**](CustomObjectsApi.md#deleteCollectionClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural} | -[**deleteCollectionNamespacedCustomObject**](CustomObjectsApi.md#deleteCollectionNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | -[**deleteNamespacedCustomObject**](CustomObjectsApi.md#deleteNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | -[**getAPIResources**](CustomObjectsApi.md#getAPIResources) | **GET** /apis/{group}/{version} | -[**getClusterCustomObject**](CustomObjectsApi.md#getClusterCustomObject) | **GET** /apis/{group}/{version}/{plural}/{name} | -[**getClusterCustomObjectScale**](CustomObjectsApi.md#getClusterCustomObjectScale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | -[**getClusterCustomObjectStatus**](CustomObjectsApi.md#getClusterCustomObjectStatus) | **GET** /apis/{group}/{version}/{plural}/{name}/status | -[**getNamespacedCustomObject**](CustomObjectsApi.md#getNamespacedCustomObject) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | -[**getNamespacedCustomObjectScale**](CustomObjectsApi.md#getNamespacedCustomObjectScale) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | -[**getNamespacedCustomObjectStatus**](CustomObjectsApi.md#getNamespacedCustomObjectStatus) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | -[**listClusterCustomObject**](CustomObjectsApi.md#listClusterCustomObject) | **GET** /apis/{group}/{version}/{plural} | -[**listNamespacedCustomObject**](CustomObjectsApi.md#listNamespacedCustomObject) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural} | -[**patchClusterCustomObject**](CustomObjectsApi.md#patchClusterCustomObject) | **PATCH** /apis/{group}/{version}/{plural}/{name} | -[**patchClusterCustomObjectScale**](CustomObjectsApi.md#patchClusterCustomObjectScale) | **PATCH** /apis/{group}/{version}/{plural}/{name}/scale | -[**patchClusterCustomObjectStatus**](CustomObjectsApi.md#patchClusterCustomObjectStatus) | **PATCH** /apis/{group}/{version}/{plural}/{name}/status | -[**patchNamespacedCustomObject**](CustomObjectsApi.md#patchNamespacedCustomObject) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | -[**patchNamespacedCustomObjectScale**](CustomObjectsApi.md#patchNamespacedCustomObjectScale) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | -[**patchNamespacedCustomObjectStatus**](CustomObjectsApi.md#patchNamespacedCustomObjectStatus) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | -[**replaceClusterCustomObject**](CustomObjectsApi.md#replaceClusterCustomObject) | **PUT** /apis/{group}/{version}/{plural}/{name} | -[**replaceClusterCustomObjectScale**](CustomObjectsApi.md#replaceClusterCustomObjectScale) | **PUT** /apis/{group}/{version}/{plural}/{name}/scale | -[**replaceClusterCustomObjectStatus**](CustomObjectsApi.md#replaceClusterCustomObjectStatus) | **PUT** /apis/{group}/{version}/{plural}/{name}/status | -[**replaceNamespacedCustomObject**](CustomObjectsApi.md#replaceNamespacedCustomObject) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | -[**replaceNamespacedCustomObjectScale**](CustomObjectsApi.md#replaceNamespacedCustomObjectScale) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | -[**replaceNamespacedCustomObjectStatus**](CustomObjectsApi.md#replaceNamespacedCustomObjectStatus) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createClusterCustomObject**](CustomObjectsApi.md#createClusterCustomObject) | **POST** /apis/{group}/{version}/{plural} | | +| [**createNamespacedCustomObject**](CustomObjectsApi.md#createNamespacedCustomObject) | **POST** /apis/{group}/{version}/namespaces/{namespace}/{plural} | | +| [**deleteClusterCustomObject**](CustomObjectsApi.md#deleteClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural}/{name} | | +| [**deleteCollectionClusterCustomObject**](CustomObjectsApi.md#deleteCollectionClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural} | | +| [**deleteCollectionNamespacedCustomObject**](CustomObjectsApi.md#deleteCollectionNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | | +| [**deleteNamespacedCustomObject**](CustomObjectsApi.md#deleteNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | | +| [**getAPIResources**](CustomObjectsApi.md#getAPIResources) | **GET** /apis/{group}/{version} | | +| [**getClusterCustomObject**](CustomObjectsApi.md#getClusterCustomObject) | **GET** /apis/{group}/{version}/{plural}/{name} | | +| [**getClusterCustomObjectScale**](CustomObjectsApi.md#getClusterCustomObjectScale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | | +| [**getClusterCustomObjectStatus**](CustomObjectsApi.md#getClusterCustomObjectStatus) | **GET** /apis/{group}/{version}/{plural}/{name}/status | | +| [**getNamespacedCustomObject**](CustomObjectsApi.md#getNamespacedCustomObject) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | | +| [**getNamespacedCustomObjectScale**](CustomObjectsApi.md#getNamespacedCustomObjectScale) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | | +| [**getNamespacedCustomObjectStatus**](CustomObjectsApi.md#getNamespacedCustomObjectStatus) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | | +| [**listClusterCustomObject**](CustomObjectsApi.md#listClusterCustomObject) | **GET** /apis/{group}/{version}/{plural} | | +| [**listNamespacedCustomObject**](CustomObjectsApi.md#listNamespacedCustomObject) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural} | | +| [**patchClusterCustomObject**](CustomObjectsApi.md#patchClusterCustomObject) | **PATCH** /apis/{group}/{version}/{plural}/{name} | | +| [**patchClusterCustomObjectScale**](CustomObjectsApi.md#patchClusterCustomObjectScale) | **PATCH** /apis/{group}/{version}/{plural}/{name}/scale | | +| [**patchClusterCustomObjectStatus**](CustomObjectsApi.md#patchClusterCustomObjectStatus) | **PATCH** /apis/{group}/{version}/{plural}/{name}/status | | +| [**patchNamespacedCustomObject**](CustomObjectsApi.md#patchNamespacedCustomObject) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | | +| [**patchNamespacedCustomObjectScale**](CustomObjectsApi.md#patchNamespacedCustomObjectScale) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | | +| [**patchNamespacedCustomObjectStatus**](CustomObjectsApi.md#patchNamespacedCustomObjectStatus) | **PATCH** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | | +| [**replaceClusterCustomObject**](CustomObjectsApi.md#replaceClusterCustomObject) | **PUT** /apis/{group}/{version}/{plural}/{name} | | +| [**replaceClusterCustomObjectScale**](CustomObjectsApi.md#replaceClusterCustomObjectScale) | **PUT** /apis/{group}/{version}/{plural}/{name}/scale | | +| [**replaceClusterCustomObjectStatus**](CustomObjectsApi.md#replaceClusterCustomObjectStatus) | **PUT** /apis/{group}/{version}/{plural}/{name}/status | | +| [**replaceNamespacedCustomObject**](CustomObjectsApi.md#replaceNamespacedCustomObject) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | | +| [**replaceNamespacedCustomObjectScale**](CustomObjectsApi.md#replaceNamespacedCustomObjectScale) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | | +| [**replaceNamespacedCustomObjectStatus**](CustomObjectsApi.md#replaceNamespacedCustomObjectStatus) | **PUT** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | | + + + # **createClusterCustomObject** > Object createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager) @@ -86,15 +86,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| The custom resource's group name | - **version** | **String**| The custom resource's version | - **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **body** | **Object**| The JSON schema of the Resource to create. | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| The custom resource's group name | | +| **version** | **String**| The custom resource's version | | +| **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **body** | **Object**| The JSON schema of the Resource to create. | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | ### Return type @@ -112,10 +112,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Created | - | -**401** | Unauthorized | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **createNamespacedCustomObject** > Object createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager) @@ -169,16 +169,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| The custom resource's group name | - **version** | **String**| The custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **body** | **Object**| The JSON schema of the Resource to create. | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| The custom resource's group name | | +| **version** | **String**| The custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **body** | **Object**| The JSON schema of the Resource to create. | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | ### Return type @@ -196,10 +196,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Created | - | -**401** | Unauthorized | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **deleteClusterCustomObject** > Object deleteClusterCustomObject(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body) @@ -254,17 +254,17 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom object's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom object's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -282,10 +282,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionClusterCustomObject** > Object deleteCollectionClusterCustomObject(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body) @@ -340,17 +340,17 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| The custom resource's group name | - **version** | **String**| The custom resource's version | - **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| The custom resource's group name | | +| **version** | **String**| The custom resource's version | | +| **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -368,10 +368,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedCustomObject** > Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body) @@ -427,18 +427,18 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| The custom resource's group name | - **version** | **String**| The custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| The custom resource's group name | | +| **version** | **String**| The custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -456,10 +456,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedCustomObject** > Object deleteNamespacedCustomObject(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body) @@ -515,18 +515,18 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -544,10 +544,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources(group, version) @@ -595,10 +595,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| The custom resource's group name | - **version** | **String**| The custom resource's version | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| The custom resource's group name | | +| **version** | **String**| The custom resource's version | | ### Return type @@ -616,10 +616,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **getClusterCustomObject** > Object getClusterCustomObject(group, version, plural, name) @@ -669,12 +669,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom object's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom object's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | ### Return type @@ -692,10 +692,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | A single Resource | - | -**401** | Unauthorized | - | +| **200** | A single Resource | - | +| **401** | Unauthorized | - | - + # **getClusterCustomObjectScale** > Object getClusterCustomObjectScale(group, version, plural, name) @@ -745,12 +745,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | ### Return type @@ -768,10 +768,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **getClusterCustomObjectStatus** > Object getClusterCustomObjectStatus(group, version, plural, name) @@ -821,12 +821,12 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | ### Return type @@ -844,10 +844,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **getNamespacedCustomObject** > Object getNamespacedCustomObject(group, version, namespace, plural, name) @@ -898,13 +898,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | ### Return type @@ -922,10 +922,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | A single Resource | - | -**401** | Unauthorized | - | +| **200** | A single Resource | - | +| **401** | Unauthorized | - | - + # **getNamespacedCustomObjectScale** > Object getNamespacedCustomObjectScale(group, version, namespace, plural, name) @@ -976,13 +976,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | ### Return type @@ -1000,10 +1000,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **getNamespacedCustomObjectStatus** > Object getNamespacedCustomObjectStatus(group, version, namespace, plural, name) @@ -1054,13 +1054,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | ### Return type @@ -1078,10 +1078,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listClusterCustomObject** > Object listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) @@ -1140,21 +1140,21 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| The custom resource's group name | - **version** | **String**| The custom resource's version | - **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| The custom resource's group name | | +| **version** | **String**| The custom resource's version | | +| **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | [optional] | ### Return type @@ -1172,10 +1172,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedCustomObject** > Object listNamespacedCustomObject(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) @@ -1235,22 +1235,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| The custom resource's group name | - **version** | **String**| The custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| The custom resource's group name | | +| **version** | **String**| The custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | [optional] | ### Return type @@ -1268,10 +1268,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchClusterCustomObject** > Object patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, force) @@ -1325,16 +1325,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom object's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| The JSON schema of the Resource to patch. | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom object's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| The JSON schema of the Resource to patch. | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1352,10 +1352,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchClusterCustomObjectScale** > Object patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, force) @@ -1409,16 +1409,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1436,10 +1436,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchClusterCustomObjectStatus** > Object patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, force) @@ -1493,16 +1493,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1520,10 +1520,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedCustomObject** > Object patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, force) @@ -1578,17 +1578,17 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| The JSON schema of the Resource to patch. | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| The JSON schema of the Resource to patch. | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1606,10 +1606,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedCustomObjectScale** > Object patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, force) @@ -1664,17 +1664,17 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1692,10 +1692,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedCustomObjectStatus** > Object patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, force) @@ -1750,17 +1750,17 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1778,10 +1778,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceClusterCustomObject** > Object replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager) @@ -1834,15 +1834,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom object's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| The JSON schema of the Resource to replace. | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom object's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| The JSON schema of the Resource to replace. | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | ### Return type @@ -1860,10 +1860,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceClusterCustomObjectScale** > Object replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager) @@ -1916,15 +1916,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | ### Return type @@ -1942,11 +1942,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceClusterCustomObjectStatus** > Object replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager) @@ -1999,15 +1999,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | ### Return type @@ -2025,11 +2025,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedCustomObject** > Object replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager) @@ -2083,16 +2083,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| The JSON schema of the Resource to replace. | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| The JSON schema of the Resource to replace. | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | ### Return type @@ -2110,10 +2110,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedCustomObjectScale** > Object replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager) @@ -2167,16 +2167,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | ### Return type @@ -2194,11 +2194,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedCustomObjectStatus** > Object replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager) @@ -2252,16 +2252,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group** | **String**| the custom resource's group | - **version** | **String**| the custom resource's version | - **namespace** | **String**| The custom resource's namespace | - **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | - **name** | **String**| the custom object's name | - **body** | **Object**| | - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **group** | **String**| the custom resource's group | | +| **version** | **String**| the custom resource's version | | +| **namespace** | **String**| The custom resource's namespace | | +| **plural** | **String**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **name** | **String**| the custom object's name | | +| **body** | **Object**| | | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | ### Return type @@ -2279,7 +2279,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/DiscoveryApi.md b/kubernetes/docs/DiscoveryApi.md index 47858db2ad..e404094582 100644 --- a/kubernetes/docs/DiscoveryApi.md +++ b/kubernetes/docs/DiscoveryApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](DiscoveryApi.md#getAPIGroup) | **GET** /apis/discovery.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](DiscoveryApi.md#getAPIGroup) | **GET** /apis/discovery.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/DiscoveryV1Api.md b/kubernetes/docs/DiscoveryV1Api.md index 5946401f0f..2f9a2b8672 100644 --- a/kubernetes/docs/DiscoveryV1Api.md +++ b/kubernetes/docs/DiscoveryV1Api.md @@ -2,20 +2,20 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedEndpointSlice**](DiscoveryV1Api.md#createNamespacedEndpointSlice) | **POST** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices | -[**deleteCollectionNamespacedEndpointSlice**](DiscoveryV1Api.md#deleteCollectionNamespacedEndpointSlice) | **DELETE** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices | -[**deleteNamespacedEndpointSlice**](DiscoveryV1Api.md#deleteNamespacedEndpointSlice) | **DELETE** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | -[**getAPIResources**](DiscoveryV1Api.md#getAPIResources) | **GET** /apis/discovery.k8s.io/v1/ | -[**listEndpointSliceForAllNamespaces**](DiscoveryV1Api.md#listEndpointSliceForAllNamespaces) | **GET** /apis/discovery.k8s.io/v1/endpointslices | -[**listNamespacedEndpointSlice**](DiscoveryV1Api.md#listNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices | -[**patchNamespacedEndpointSlice**](DiscoveryV1Api.md#patchNamespacedEndpointSlice) | **PATCH** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | -[**readNamespacedEndpointSlice**](DiscoveryV1Api.md#readNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | -[**replaceNamespacedEndpointSlice**](DiscoveryV1Api.md#replaceNamespacedEndpointSlice) | **PUT** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedEndpointSlice**](DiscoveryV1Api.md#createNamespacedEndpointSlice) | **POST** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices | | +| [**deleteCollectionNamespacedEndpointSlice**](DiscoveryV1Api.md#deleteCollectionNamespacedEndpointSlice) | **DELETE** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices | | +| [**deleteNamespacedEndpointSlice**](DiscoveryV1Api.md#deleteNamespacedEndpointSlice) | **DELETE** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | | +| [**getAPIResources**](DiscoveryV1Api.md#getAPIResources) | **GET** /apis/discovery.k8s.io/v1/ | | +| [**listEndpointSliceForAllNamespaces**](DiscoveryV1Api.md#listEndpointSliceForAllNamespaces) | **GET** /apis/discovery.k8s.io/v1/endpointslices | | +| [**listNamespacedEndpointSlice**](DiscoveryV1Api.md#listNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices | | +| [**patchNamespacedEndpointSlice**](DiscoveryV1Api.md#patchNamespacedEndpointSlice) | **PATCH** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | | +| [**readNamespacedEndpointSlice**](DiscoveryV1Api.md#readNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | | +| [**replaceNamespacedEndpointSlice**](DiscoveryV1Api.md#replaceNamespacedEndpointSlice) | **PUT** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | | + + + # **createNamespacedEndpointSlice** > V1EndpointSlice createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -67,14 +67,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1EndpointSlice**](V1EndpointSlice.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1EndpointSlice**](V1EndpointSlice.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -92,12 +92,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedEndpointSlice** > V1Status deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -158,23 +158,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -192,10 +192,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedEndpointSlice** > V1Status deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -249,16 +249,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the EndpointSlice | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the EndpointSlice | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -276,11 +276,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -343,10 +343,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listEndpointSliceForAllNamespaces** > V1EndpointSliceList listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -403,19 +403,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -433,10 +433,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedEndpointSlice** > V1EndpointSliceList listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -494,20 +494,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -525,10 +525,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedEndpointSlice** > V1EndpointSlice patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -582,16 +582,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the EndpointSlice | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the EndpointSlice | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -609,11 +609,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedEndpointSlice** > V1EndpointSlice readNamespacedEndpointSlice(name, namespace, pretty) @@ -662,11 +662,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the EndpointSlice | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the EndpointSlice | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -684,10 +684,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedEndpointSlice** > V1EndpointSlice replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -740,15 +740,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the EndpointSlice | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1EndpointSlice**](V1EndpointSlice.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the EndpointSlice | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1EndpointSlice**](V1EndpointSlice.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -766,7 +766,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/DiscoveryV1EndpointPort.md b/kubernetes/docs/DiscoveryV1EndpointPort.md index c33ded56cb..835ef6b767 100644 --- a/kubernetes/docs/DiscoveryV1EndpointPort.md +++ b/kubernetes/docs/DiscoveryV1EndpointPort.md @@ -3,6 +3,7 @@ # DiscoveryV1EndpointPort EndpointPort represents a Port used by an EndpointSlice + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/EventsApi.md b/kubernetes/docs/EventsApi.md index 039298885e..2bc00503b5 100644 --- a/kubernetes/docs/EventsApi.md +++ b/kubernetes/docs/EventsApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](EventsApi.md#getAPIGroup) | **GET** /apis/events.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](EventsApi.md#getAPIGroup) | **GET** /apis/events.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/EventsV1Api.md b/kubernetes/docs/EventsV1Api.md index 146d1bbd30..4d4304e477 100644 --- a/kubernetes/docs/EventsV1Api.md +++ b/kubernetes/docs/EventsV1Api.md @@ -2,20 +2,20 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedEvent**](EventsV1Api.md#createNamespacedEvent) | **POST** /apis/events.k8s.io/v1/namespaces/{namespace}/events | -[**deleteCollectionNamespacedEvent**](EventsV1Api.md#deleteCollectionNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1/namespaces/{namespace}/events | -[**deleteNamespacedEvent**](EventsV1Api.md#deleteNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | -[**getAPIResources**](EventsV1Api.md#getAPIResources) | **GET** /apis/events.k8s.io/v1/ | -[**listEventForAllNamespaces**](EventsV1Api.md#listEventForAllNamespaces) | **GET** /apis/events.k8s.io/v1/events | -[**listNamespacedEvent**](EventsV1Api.md#listNamespacedEvent) | **GET** /apis/events.k8s.io/v1/namespaces/{namespace}/events | -[**patchNamespacedEvent**](EventsV1Api.md#patchNamespacedEvent) | **PATCH** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | -[**readNamespacedEvent**](EventsV1Api.md#readNamespacedEvent) | **GET** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | -[**replaceNamespacedEvent**](EventsV1Api.md#replaceNamespacedEvent) | **PUT** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedEvent**](EventsV1Api.md#createNamespacedEvent) | **POST** /apis/events.k8s.io/v1/namespaces/{namespace}/events | | +| [**deleteCollectionNamespacedEvent**](EventsV1Api.md#deleteCollectionNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1/namespaces/{namespace}/events | | +| [**deleteNamespacedEvent**](EventsV1Api.md#deleteNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | | +| [**getAPIResources**](EventsV1Api.md#getAPIResources) | **GET** /apis/events.k8s.io/v1/ | | +| [**listEventForAllNamespaces**](EventsV1Api.md#listEventForAllNamespaces) | **GET** /apis/events.k8s.io/v1/events | | +| [**listNamespacedEvent**](EventsV1Api.md#listNamespacedEvent) | **GET** /apis/events.k8s.io/v1/namespaces/{namespace}/events | | +| [**patchNamespacedEvent**](EventsV1Api.md#patchNamespacedEvent) | **PATCH** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | | +| [**readNamespacedEvent**](EventsV1Api.md#readNamespacedEvent) | **GET** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | | +| [**replaceNamespacedEvent**](EventsV1Api.md#replaceNamespacedEvent) | **PUT** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | | + + + # **createNamespacedEvent** > EventsV1Event createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -67,14 +67,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**EventsV1Event**](EventsV1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**EventsV1Event**](EventsV1Event.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -92,12 +92,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedEvent** > V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -158,23 +158,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -192,10 +192,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedEvent** > V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -249,16 +249,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Event | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -276,11 +276,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -343,10 +343,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listEventForAllNamespaces** > EventsV1EventList listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -403,19 +403,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -433,10 +433,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedEvent** > EventsV1EventList listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -494,20 +494,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -525,10 +525,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedEvent** > EventsV1Event patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -582,16 +582,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Event | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -609,11 +609,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedEvent** > EventsV1Event readNamespacedEvent(name, namespace, pretty) @@ -662,11 +662,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Event | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -684,10 +684,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedEvent** > EventsV1Event replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -740,15 +740,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**EventsV1Event**](EventsV1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Event | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**EventsV1Event**](EventsV1Event.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -766,7 +766,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/EventsV1Event.md b/kubernetes/docs/EventsV1Event.md index 4c7c57eebc..09c76fc77b 100644 --- a/kubernetes/docs/EventsV1Event.md +++ b/kubernetes/docs/EventsV1Event.md @@ -3,27 +3,28 @@ # EventsV1Event 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. | [optional] -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**deprecatedCount** | **Integer** | deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedFirstTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedLastTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedSource** | [**V1EventSource**](V1EventSource.md) | | [optional] -**eventTime** | [**OffsetDateTime**](OffsetDateTime.md) | eventTime is the time when this Event was first observed. It is required. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**note** | **String** | note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. | [optional] -**reason** | **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. | [optional] -**regarding** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**reportingController** | **String** | reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. | [optional] -**reportingInstance** | **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. | [optional] -**series** | [**EventsV1EventSeries**](EventsV1EventSeries.md) | | [optional] -**type** | **String** | type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. | [optional] | +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**deprecatedCount** | **Integer** | deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] | +|**deprecatedFirstTimestamp** | **OffsetDateTime** | deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] | +|**deprecatedLastTimestamp** | **OffsetDateTime** | deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] | +|**deprecatedSource** | [**V1EventSource**](V1EventSource.md) | | [optional] | +|**eventTime** | **OffsetDateTime** | eventTime is the time when this Event was first observed. It is required. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**note** | **String** | note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. | [optional] | +|**reason** | **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. | [optional] | +|**regarding** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] | +|**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] | +|**reportingController** | **String** | reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. | [optional] | +|**reportingInstance** | **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. | [optional] | +|**series** | [**EventsV1EventSeries**](EventsV1EventSeries.md) | | [optional] | +|**type** | **String** | type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/EventsV1EventList.md b/kubernetes/docs/EventsV1EventList.md index 0329a6475e..2c8d9d26c4 100644 --- a/kubernetes/docs/EventsV1EventList.md +++ b/kubernetes/docs/EventsV1EventList.md @@ -3,14 +3,15 @@ # EventsV1EventList EventList is a list of Event objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<EventsV1Event>**](EventsV1Event.md) | items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<EventsV1Event>**](EventsV1Event.md) | items is a list of schema objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/EventsV1EventSeries.md b/kubernetes/docs/EventsV1EventSeries.md index 746786738b..edc210433c 100644 --- a/kubernetes/docs/EventsV1EventSeries.md +++ b/kubernetes/docs/EventsV1EventSeries.md @@ -3,12 +3,13 @@ # EventsV1EventSeries 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Integer** | count is the number of occurrences in this series up to the last heartbeat time. | -**lastObservedTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastObservedTime is the time when last Event from the series was seen before last heartbeat. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**count** | **Integer** | count is the number of occurrences in this series up to the last heartbeat time. | | +|**lastObservedTime** | **OffsetDateTime** | lastObservedTime is the time when last Event from the series was seen before last heartbeat. | | diff --git a/kubernetes/docs/FlowcontrolApiserverApi.md b/kubernetes/docs/FlowcontrolApiserverApi.md index a4a5a90c99..183dfae5d1 100644 --- a/kubernetes/docs/FlowcontrolApiserverApi.md +++ b/kubernetes/docs/FlowcontrolApiserverApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](FlowcontrolApiserverApi.md#getAPIGroup) | **GET** /apis/flowcontrol.apiserver.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](FlowcontrolApiserverApi.md#getAPIGroup) | **GET** /apis/flowcontrol.apiserver.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/FlowcontrolApiserverV1beta2Api.md b/kubernetes/docs/FlowcontrolApiserverV1beta2Api.md index 13517eaff4..89a790372d 100644 --- a/kubernetes/docs/FlowcontrolApiserverV1beta2Api.md +++ b/kubernetes/docs/FlowcontrolApiserverV1beta2Api.md @@ -2,32 +2,32 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createFlowSchema**](FlowcontrolApiserverV1beta2Api.md#createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | -[**createPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | -[**deleteCollectionFlowSchema**](FlowcontrolApiserverV1beta2Api.md#deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | -[**deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | -[**deleteFlowSchema**](FlowcontrolApiserverV1beta2Api.md#deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | -[**deletePriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | -[**getAPIResources**](FlowcontrolApiserverV1beta2Api.md#getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/ | -[**listFlowSchema**](FlowcontrolApiserverV1beta2Api.md#listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | -[**listPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | -[**patchFlowSchema**](FlowcontrolApiserverV1beta2Api.md#patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | -[**patchFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | -[**patchPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | -[**patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | -[**readFlowSchema**](FlowcontrolApiserverV1beta2Api.md#readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | -[**readFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | -[**readPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | -[**readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | -[**replaceFlowSchema**](FlowcontrolApiserverV1beta2Api.md#replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | -[**replaceFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | -[**replacePriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | -[**replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createFlowSchema**](FlowcontrolApiserverV1beta2Api.md#createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | | +| [**createPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | | +| [**deleteCollectionFlowSchema**](FlowcontrolApiserverV1beta2Api.md#deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | | +| [**deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | | +| [**deleteFlowSchema**](FlowcontrolApiserverV1beta2Api.md#deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | | +| [**deletePriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | | +| [**getAPIResources**](FlowcontrolApiserverV1beta2Api.md#getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/ | | +| [**listFlowSchema**](FlowcontrolApiserverV1beta2Api.md#listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | | +| [**listPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | | +| [**patchFlowSchema**](FlowcontrolApiserverV1beta2Api.md#patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | | +| [**patchFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | | +| [**patchPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | | +| [**patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | | +| [**readFlowSchema**](FlowcontrolApiserverV1beta2Api.md#readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | | +| [**readFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | | +| [**readPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | | +| [**readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | | +| [**replaceFlowSchema**](FlowcontrolApiserverV1beta2Api.md#replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | | +| [**replaceFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | | +| [**replacePriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | | +| [**replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | | + + + # **createFlowSchema** > V1beta2FlowSchema createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation) @@ -78,13 +78,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -102,12 +102,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createPriorityLevelConfiguration** > V1beta2PriorityLevelConfiguration createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation) @@ -158,13 +158,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -182,12 +182,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionFlowSchema** > V1Status deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -247,22 +247,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -280,10 +280,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionPriorityLevelConfiguration** > V1Status deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -343,22 +343,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -376,10 +376,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteFlowSchema** > V1Status deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -432,15 +432,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -458,11 +458,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deletePriorityLevelConfiguration** > V1Status deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -515,15 +515,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -541,11 +541,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -608,10 +608,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listFlowSchema** > V1beta2FlowSchemaList listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -668,19 +668,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -698,10 +698,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPriorityLevelConfiguration** > V1beta2PriorityLevelConfigurationList listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -758,19 +758,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -788,10 +788,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchFlowSchema** > V1beta2FlowSchema patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -844,15 +844,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -870,11 +870,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchFlowSchemaStatus** > V1beta2FlowSchema patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -927,15 +927,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -953,11 +953,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchPriorityLevelConfiguration** > V1beta2PriorityLevelConfiguration patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1010,15 +1010,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1036,11 +1036,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchPriorityLevelConfigurationStatus** > V1beta2PriorityLevelConfiguration patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1093,15 +1093,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1119,11 +1119,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readFlowSchema** > V1beta2FlowSchema readFlowSchema(name, pretty) @@ -1171,10 +1171,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1192,10 +1192,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readFlowSchemaStatus** > V1beta2FlowSchema readFlowSchemaStatus(name, pretty) @@ -1243,10 +1243,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1264,10 +1264,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readPriorityLevelConfiguration** > V1beta2PriorityLevelConfiguration readPriorityLevelConfiguration(name, pretty) @@ -1315,10 +1315,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1336,10 +1336,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readPriorityLevelConfigurationStatus** > V1beta2PriorityLevelConfiguration readPriorityLevelConfigurationStatus(name, pretty) @@ -1387,10 +1387,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1408,10 +1408,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceFlowSchema** > V1beta2FlowSchema replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1463,14 +1463,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1488,11 +1488,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceFlowSchemaStatus** > V1beta2FlowSchema replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1544,14 +1544,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1569,11 +1569,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replacePriorityLevelConfiguration** > V1beta2PriorityLevelConfiguration replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1625,14 +1625,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1650,11 +1650,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replacePriorityLevelConfigurationStatus** > V1beta2PriorityLevelConfiguration replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1706,14 +1706,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1731,7 +1731,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md b/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md index 029ce46d4d..2ed25b1de6 100644 --- a/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md +++ b/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md @@ -2,32 +2,32 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createFlowSchema**](FlowcontrolApiserverV1beta3Api.md#createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | -[**createPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | -[**deleteCollectionFlowSchema**](FlowcontrolApiserverV1beta3Api.md#deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | -[**deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | -[**deleteFlowSchema**](FlowcontrolApiserverV1beta3Api.md#deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | -[**deletePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | -[**getAPIResources**](FlowcontrolApiserverV1beta3Api.md#getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/ | -[**listFlowSchema**](FlowcontrolApiserverV1beta3Api.md#listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | -[**listPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | -[**patchFlowSchema**](FlowcontrolApiserverV1beta3Api.md#patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | -[**patchFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | -[**patchPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | -[**patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | -[**readFlowSchema**](FlowcontrolApiserverV1beta3Api.md#readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | -[**readFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | -[**readPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | -[**readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | -[**replaceFlowSchema**](FlowcontrolApiserverV1beta3Api.md#replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | -[**replaceFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | -[**replacePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | -[**replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createFlowSchema**](FlowcontrolApiserverV1beta3Api.md#createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | | +| [**createPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | | +| [**deleteCollectionFlowSchema**](FlowcontrolApiserverV1beta3Api.md#deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | | +| [**deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | | +| [**deleteFlowSchema**](FlowcontrolApiserverV1beta3Api.md#deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | | +| [**deletePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | | +| [**getAPIResources**](FlowcontrolApiserverV1beta3Api.md#getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/ | | +| [**listFlowSchema**](FlowcontrolApiserverV1beta3Api.md#listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | | +| [**listPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | | +| [**patchFlowSchema**](FlowcontrolApiserverV1beta3Api.md#patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | | +| [**patchFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | | +| [**patchPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | | +| [**patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | | +| [**readFlowSchema**](FlowcontrolApiserverV1beta3Api.md#readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | | +| [**readFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | | +| [**readPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | | +| [**readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | | +| [**replaceFlowSchema**](FlowcontrolApiserverV1beta3Api.md#replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | | +| [**replaceFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | | +| [**replacePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | | +| [**replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | | + + + # **createFlowSchema** > V1beta3FlowSchema createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation) @@ -78,13 +78,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -102,12 +102,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createPriorityLevelConfiguration** > V1beta3PriorityLevelConfiguration createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation) @@ -158,13 +158,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -182,12 +182,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionFlowSchema** > V1Status deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -247,22 +247,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -280,10 +280,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionPriorityLevelConfiguration** > V1Status deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -343,22 +343,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -376,10 +376,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteFlowSchema** > V1Status deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -432,15 +432,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -458,11 +458,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deletePriorityLevelConfiguration** > V1Status deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -515,15 +515,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -541,11 +541,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -608,10 +608,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listFlowSchema** > V1beta3FlowSchemaList listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -668,19 +668,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -698,10 +698,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPriorityLevelConfiguration** > V1beta3PriorityLevelConfigurationList listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -758,19 +758,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -788,10 +788,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchFlowSchema** > V1beta3FlowSchema patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -844,15 +844,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -870,11 +870,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchFlowSchemaStatus** > V1beta3FlowSchema patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -927,15 +927,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -953,11 +953,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchPriorityLevelConfiguration** > V1beta3PriorityLevelConfiguration patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1010,15 +1010,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1036,11 +1036,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchPriorityLevelConfigurationStatus** > V1beta3PriorityLevelConfiguration patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1093,15 +1093,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1119,11 +1119,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readFlowSchema** > V1beta3FlowSchema readFlowSchema(name, pretty) @@ -1171,10 +1171,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1192,10 +1192,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readFlowSchemaStatus** > V1beta3FlowSchema readFlowSchemaStatus(name, pretty) @@ -1243,10 +1243,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1264,10 +1264,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readPriorityLevelConfiguration** > V1beta3PriorityLevelConfiguration readPriorityLevelConfiguration(name, pretty) @@ -1315,10 +1315,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1336,10 +1336,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readPriorityLevelConfigurationStatus** > V1beta3PriorityLevelConfiguration readPriorityLevelConfigurationStatus(name, pretty) @@ -1387,10 +1387,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1408,10 +1408,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceFlowSchema** > V1beta3FlowSchema replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1463,14 +1463,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1488,11 +1488,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceFlowSchemaStatus** > V1beta3FlowSchema replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1544,14 +1544,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the FlowSchema | | +| **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1569,11 +1569,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replacePriorityLevelConfiguration** > V1beta3PriorityLevelConfiguration replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1625,14 +1625,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1650,11 +1650,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replacePriorityLevelConfigurationStatus** > V1beta3PriorityLevelConfiguration replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1706,14 +1706,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityLevelConfiguration | | +| **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1731,7 +1731,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/InternalApiserverApi.md b/kubernetes/docs/InternalApiserverApi.md index 739e633edb..b1c983a7a8 100644 --- a/kubernetes/docs/InternalApiserverApi.md +++ b/kubernetes/docs/InternalApiserverApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](InternalApiserverApi.md#getAPIGroup) | **GET** /apis/internal.apiserver.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](InternalApiserverApi.md#getAPIGroup) | **GET** /apis/internal.apiserver.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/InternalApiserverV1alpha1Api.md b/kubernetes/docs/InternalApiserverV1alpha1Api.md index 36b7b576e9..5eb12b3a61 100644 --- a/kubernetes/docs/InternalApiserverV1alpha1Api.md +++ b/kubernetes/docs/InternalApiserverV1alpha1Api.md @@ -2,22 +2,22 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createStorageVersion**](InternalApiserverV1alpha1Api.md#createStorageVersion) | **POST** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | -[**deleteCollectionStorageVersion**](InternalApiserverV1alpha1Api.md#deleteCollectionStorageVersion) | **DELETE** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | -[**deleteStorageVersion**](InternalApiserverV1alpha1Api.md#deleteStorageVersion) | **DELETE** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | -[**getAPIResources**](InternalApiserverV1alpha1Api.md#getAPIResources) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/ | -[**listStorageVersion**](InternalApiserverV1alpha1Api.md#listStorageVersion) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | -[**patchStorageVersion**](InternalApiserverV1alpha1Api.md#patchStorageVersion) | **PATCH** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | -[**patchStorageVersionStatus**](InternalApiserverV1alpha1Api.md#patchStorageVersionStatus) | **PATCH** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | -[**readStorageVersion**](InternalApiserverV1alpha1Api.md#readStorageVersion) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | -[**readStorageVersionStatus**](InternalApiserverV1alpha1Api.md#readStorageVersionStatus) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | -[**replaceStorageVersion**](InternalApiserverV1alpha1Api.md#replaceStorageVersion) | **PUT** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | -[**replaceStorageVersionStatus**](InternalApiserverV1alpha1Api.md#replaceStorageVersionStatus) | **PUT** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createStorageVersion**](InternalApiserverV1alpha1Api.md#createStorageVersion) | **POST** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | | +| [**deleteCollectionStorageVersion**](InternalApiserverV1alpha1Api.md#deleteCollectionStorageVersion) | **DELETE** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | | +| [**deleteStorageVersion**](InternalApiserverV1alpha1Api.md#deleteStorageVersion) | **DELETE** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | | +| [**getAPIResources**](InternalApiserverV1alpha1Api.md#getAPIResources) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/ | | +| [**listStorageVersion**](InternalApiserverV1alpha1Api.md#listStorageVersion) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | | +| [**patchStorageVersion**](InternalApiserverV1alpha1Api.md#patchStorageVersion) | **PATCH** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | | +| [**patchStorageVersionStatus**](InternalApiserverV1alpha1Api.md#patchStorageVersionStatus) | **PATCH** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | | +| [**readStorageVersion**](InternalApiserverV1alpha1Api.md#readStorageVersion) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | | +| [**readStorageVersionStatus**](InternalApiserverV1alpha1Api.md#readStorageVersionStatus) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | | +| [**replaceStorageVersion**](InternalApiserverV1alpha1Api.md#replaceStorageVersion) | **PUT** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | | +| [**replaceStorageVersionStatus**](InternalApiserverV1alpha1Api.md#replaceStorageVersionStatus) | **PUT** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | | + + + # **createStorageVersion** > V1alpha1StorageVersion createStorageVersion(body, pretty, dryRun, fieldManager, fieldValidation) @@ -68,13 +68,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -92,12 +92,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionStorageVersion** > V1Status deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -157,22 +157,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -190,10 +190,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteStorageVersion** > V1Status deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -246,15 +246,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageVersion | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageVersion | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -272,11 +272,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -339,10 +339,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listStorageVersion** > V1alpha1StorageVersionList listStorageVersion(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -399,19 +399,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -429,10 +429,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchStorageVersion** > V1alpha1StorageVersion patchStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -485,15 +485,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageVersion | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageVersion | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -511,11 +511,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchStorageVersionStatus** > V1alpha1StorageVersion patchStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -568,15 +568,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageVersion | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageVersion | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -594,11 +594,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readStorageVersion** > V1alpha1StorageVersion readStorageVersion(name, pretty) @@ -646,10 +646,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageVersion | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageVersion | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -667,10 +667,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readStorageVersionStatus** > V1alpha1StorageVersion readStorageVersionStatus(name, pretty) @@ -718,10 +718,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageVersion | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageVersion | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -739,10 +739,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceStorageVersion** > V1alpha1StorageVersion replaceStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -794,14 +794,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageVersion | - **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageVersion | | +| **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -819,11 +819,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceStorageVersionStatus** > V1alpha1StorageVersion replaceStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -875,14 +875,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageVersion | - **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageVersion | | +| **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -900,7 +900,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/LogsApi.md b/kubernetes/docs/LogsApi.md index ca0abe8b30..daf9e8efb2 100644 --- a/kubernetes/docs/LogsApi.md +++ b/kubernetes/docs/LogsApi.md @@ -2,13 +2,13 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**logFileHandler**](LogsApi.md#logFileHandler) | **GET** /logs/{logpath} | -[**logFileListHandler**](LogsApi.md#logFileListHandler) | **GET** /logs/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**logFileHandler**](LogsApi.md#logFileHandler) | **GET** /logs/{logpath} | | +| [**logFileListHandler**](LogsApi.md#logFileListHandler) | **GET** /logs/ | | - + # **logFileHandler** > logFileHandler(logpath) @@ -52,9 +52,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **logpath** | **String**| path to the log | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **logpath** | **String**| path to the log | | ### Return type @@ -72,9 +72,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**401** | Unauthorized | - | +| **401** | Unauthorized | - | - + # **logFileListHandler** > logFileListHandler() @@ -134,5 +134,5 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**401** | Unauthorized | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/NetworkingApi.md b/kubernetes/docs/NetworkingApi.md index 2249870389..3a7e1f2bbb 100644 --- a/kubernetes/docs/NetworkingApi.md +++ b/kubernetes/docs/NetworkingApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](NetworkingApi.md#getAPIGroup) | **GET** /apis/networking.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](NetworkingApi.md#getAPIGroup) | **GET** /apis/networking.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/NetworkingV1Api.md b/kubernetes/docs/NetworkingV1Api.md index 950cf5d032..4bdd79df1e 100644 --- a/kubernetes/docs/NetworkingV1Api.md +++ b/kubernetes/docs/NetworkingV1Api.md @@ -33,7 +33,7 @@ Method | HTTP request | Description [**replaceNamespacedNetworkPolicy**](NetworkingV1Api.md#replaceNamespacedNetworkPolicy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | - + # **createIngressClass** > V1IngressClass createIngressClass(body, pretty, dryRun, fieldManager, fieldValidation) @@ -84,13 +84,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1IngressClass**](V1IngressClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1IngressClass**](V1IngressClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -108,12 +108,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedIngress** > V1Ingress createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -165,14 +165,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Ingress**](V1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Ingress**](V1Ingress.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -190,12 +190,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedNetworkPolicy** > V1NetworkPolicy createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -247,14 +247,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -272,12 +272,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionIngressClass** > V1Status deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -337,22 +337,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -370,10 +370,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedIngress** > V1Status deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -434,23 +434,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -468,10 +468,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedNetworkPolicy** > V1Status deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -532,23 +532,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -566,10 +566,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteIngressClass** > V1Status deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -622,15 +622,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IngressClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IngressClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -648,11 +648,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedIngress** > V1Status deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -706,16 +706,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -733,11 +733,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedNetworkPolicy** > V1Status deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -791,16 +791,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NetworkPolicy | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -818,11 +818,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -885,10 +885,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listIngressClass** > V1IngressClassList listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -945,19 +945,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -975,10 +975,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listIngressForAllNamespaces** > V1IngressList listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1035,19 +1035,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1065,10 +1065,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedIngress** > V1IngressList listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1126,20 +1126,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1157,10 +1157,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedNetworkPolicy** > V1NetworkPolicyList listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1218,20 +1218,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1249,10 +1249,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNetworkPolicyForAllNamespaces** > V1NetworkPolicyList listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1309,19 +1309,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1339,10 +1339,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchIngressClass** > V1IngressClass patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1395,15 +1395,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IngressClass | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IngressClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1421,11 +1421,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedIngress** > V1Ingress patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1479,16 +1479,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1506,11 +1506,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedIngressStatus** > V1Ingress patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1564,16 +1564,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1591,11 +1591,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedNetworkPolicy** > V1NetworkPolicy patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1649,16 +1649,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NetworkPolicy | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1728,10 +1728,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IngressClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IngressClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1749,10 +1749,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedIngress** > V1Ingress readNamespacedIngress(name, namespace, pretty) @@ -1801,11 +1801,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1823,10 +1823,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedIngressStatus** > V1Ingress readNamespacedIngressStatus(name, namespace, pretty) @@ -1875,11 +1875,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1897,10 +1897,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedNetworkPolicy** > V1NetworkPolicy readNamespacedNetworkPolicy(name, namespace, pretty) @@ -1949,11 +1949,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NetworkPolicy | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1971,8 +1971,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | # **replaceIngressClass** @@ -2026,14 +2026,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IngressClass | - **body** | [**V1IngressClass**](V1IngressClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IngressClass | | +| **body** | [**V1IngressClass**](V1IngressClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2051,11 +2051,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedIngress** > V1Ingress replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2108,15 +2108,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Ingress**](V1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Ingress**](V1Ingress.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2134,11 +2134,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedIngressStatus** > V1Ingress replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2191,15 +2191,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Ingress**](V1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Ingress | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Ingress**](V1Ingress.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2217,11 +2217,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedNetworkPolicy** > V1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2274,15 +2274,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the NetworkPolicy | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type diff --git a/kubernetes/docs/NetworkingV1alpha1Api.md b/kubernetes/docs/NetworkingV1alpha1Api.md index 3d8ce737d4..5548104cee 100644 --- a/kubernetes/docs/NetworkingV1alpha1Api.md +++ b/kubernetes/docs/NetworkingV1alpha1Api.md @@ -2,26 +2,26 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createClusterCIDR**](NetworkingV1alpha1Api.md#createClusterCIDR) | **POST** /apis/networking.k8s.io/v1alpha1/clustercidrs | -[**createIPAddress**](NetworkingV1alpha1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1alpha1/ipaddresses | -[**deleteClusterCIDR**](NetworkingV1alpha1Api.md#deleteClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | -[**deleteCollectionClusterCIDR**](NetworkingV1alpha1Api.md#deleteCollectionClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs | -[**deleteCollectionIPAddress**](NetworkingV1alpha1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1alpha1/ipaddresses | -[**deleteIPAddress**](NetworkingV1alpha1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | -[**getAPIResources**](NetworkingV1alpha1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1alpha1/ | -[**listClusterCIDR**](NetworkingV1alpha1Api.md#listClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs | -[**listIPAddress**](NetworkingV1alpha1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1alpha1/ipaddresses | -[**patchClusterCIDR**](NetworkingV1alpha1Api.md#patchClusterCIDR) | **PATCH** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | -[**patchIPAddress**](NetworkingV1alpha1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | -[**readClusterCIDR**](NetworkingV1alpha1Api.md#readClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | -[**readIPAddress**](NetworkingV1alpha1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | -[**replaceClusterCIDR**](NetworkingV1alpha1Api.md#replaceClusterCIDR) | **PUT** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | -[**replaceIPAddress**](NetworkingV1alpha1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createClusterCIDR**](NetworkingV1alpha1Api.md#createClusterCIDR) | **POST** /apis/networking.k8s.io/v1alpha1/clustercidrs | | +| [**createIPAddress**](NetworkingV1alpha1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1alpha1/ipaddresses | | +| [**deleteClusterCIDR**](NetworkingV1alpha1Api.md#deleteClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | | +| [**deleteCollectionClusterCIDR**](NetworkingV1alpha1Api.md#deleteCollectionClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs | | +| [**deleteCollectionIPAddress**](NetworkingV1alpha1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1alpha1/ipaddresses | | +| [**deleteIPAddress**](NetworkingV1alpha1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | | +| [**getAPIResources**](NetworkingV1alpha1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1alpha1/ | | +| [**listClusterCIDR**](NetworkingV1alpha1Api.md#listClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs | | +| [**listIPAddress**](NetworkingV1alpha1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1alpha1/ipaddresses | | +| [**patchClusterCIDR**](NetworkingV1alpha1Api.md#patchClusterCIDR) | **PATCH** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | | +| [**patchIPAddress**](NetworkingV1alpha1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | | +| [**readClusterCIDR**](NetworkingV1alpha1Api.md#readClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | | +| [**readIPAddress**](NetworkingV1alpha1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | | +| [**replaceClusterCIDR**](NetworkingV1alpha1Api.md#replaceClusterCIDR) | **PUT** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | | +| [**replaceIPAddress**](NetworkingV1alpha1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | | + + + # **createClusterCIDR** > V1alpha1ClusterCIDR createClusterCIDR(body, pretty, dryRun, fieldManager, fieldValidation) @@ -72,13 +72,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -96,12 +96,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createIPAddress** > V1alpha1IPAddress createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation) @@ -152,13 +152,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1IPAddress**](V1alpha1IPAddress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha1IPAddress**](V1alpha1IPAddress.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -176,12 +176,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteClusterCIDR** > V1Status deleteClusterCIDR(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -234,15 +234,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterCIDR | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterCIDR | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -260,11 +260,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionClusterCIDR** > V1Status deleteCollectionClusterCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -324,22 +324,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -357,10 +357,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionIPAddress** > V1Status deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -420,22 +420,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -453,10 +453,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteIPAddress** > V1Status deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -509,15 +509,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IPAddress | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IPAddress | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -535,11 +535,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -602,10 +602,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listClusterCIDR** > V1alpha1ClusterCIDRList listClusterCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -662,19 +662,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -692,10 +692,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listIPAddress** > V1alpha1IPAddressList listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -752,19 +752,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -782,10 +782,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchClusterCIDR** > V1alpha1ClusterCIDR patchClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -838,15 +838,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterCIDR | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterCIDR | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -864,11 +864,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchIPAddress** > V1alpha1IPAddress patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -921,15 +921,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IPAddress | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IPAddress | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -947,11 +947,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readClusterCIDR** > V1alpha1ClusterCIDR readClusterCIDR(name, pretty) @@ -999,10 +999,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterCIDR | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterCIDR | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1020,10 +1020,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readIPAddress** > V1alpha1IPAddress readIPAddress(name, pretty) @@ -1071,10 +1071,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IPAddress | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IPAddress | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -1092,10 +1092,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceClusterCIDR** > V1alpha1ClusterCIDR replaceClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1147,14 +1147,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterCIDR | - **body** | [**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterCIDR | | +| **body** | [**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1172,11 +1172,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceIPAddress** > V1alpha1IPAddress replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -1228,14 +1228,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IPAddress | - **body** | [**V1alpha1IPAddress**](V1alpha1IPAddress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the IPAddress | | +| **body** | [**V1alpha1IPAddress**](V1alpha1IPAddress.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1253,7 +1253,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/NodeApi.md b/kubernetes/docs/NodeApi.md index 2143c19a15..c3d912f69d 100644 --- a/kubernetes/docs/NodeApi.md +++ b/kubernetes/docs/NodeApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](NodeApi.md#getAPIGroup) | **GET** /apis/node.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](NodeApi.md#getAPIGroup) | **GET** /apis/node.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/NodeV1Api.md b/kubernetes/docs/NodeV1Api.md index b58bc496b5..1c59a24371 100644 --- a/kubernetes/docs/NodeV1Api.md +++ b/kubernetes/docs/NodeV1Api.md @@ -2,19 +2,19 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createRuntimeClass**](NodeV1Api.md#createRuntimeClass) | **POST** /apis/node.k8s.io/v1/runtimeclasses | -[**deleteCollectionRuntimeClass**](NodeV1Api.md#deleteCollectionRuntimeClass) | **DELETE** /apis/node.k8s.io/v1/runtimeclasses | -[**deleteRuntimeClass**](NodeV1Api.md#deleteRuntimeClass) | **DELETE** /apis/node.k8s.io/v1/runtimeclasses/{name} | -[**getAPIResources**](NodeV1Api.md#getAPIResources) | **GET** /apis/node.k8s.io/v1/ | -[**listRuntimeClass**](NodeV1Api.md#listRuntimeClass) | **GET** /apis/node.k8s.io/v1/runtimeclasses | -[**patchRuntimeClass**](NodeV1Api.md#patchRuntimeClass) | **PATCH** /apis/node.k8s.io/v1/runtimeclasses/{name} | -[**readRuntimeClass**](NodeV1Api.md#readRuntimeClass) | **GET** /apis/node.k8s.io/v1/runtimeclasses/{name} | -[**replaceRuntimeClass**](NodeV1Api.md#replaceRuntimeClass) | **PUT** /apis/node.k8s.io/v1/runtimeclasses/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createRuntimeClass**](NodeV1Api.md#createRuntimeClass) | **POST** /apis/node.k8s.io/v1/runtimeclasses | | +| [**deleteCollectionRuntimeClass**](NodeV1Api.md#deleteCollectionRuntimeClass) | **DELETE** /apis/node.k8s.io/v1/runtimeclasses | | +| [**deleteRuntimeClass**](NodeV1Api.md#deleteRuntimeClass) | **DELETE** /apis/node.k8s.io/v1/runtimeclasses/{name} | | +| [**getAPIResources**](NodeV1Api.md#getAPIResources) | **GET** /apis/node.k8s.io/v1/ | | +| [**listRuntimeClass**](NodeV1Api.md#listRuntimeClass) | **GET** /apis/node.k8s.io/v1/runtimeclasses | | +| [**patchRuntimeClass**](NodeV1Api.md#patchRuntimeClass) | **PATCH** /apis/node.k8s.io/v1/runtimeclasses/{name} | | +| [**readRuntimeClass**](NodeV1Api.md#readRuntimeClass) | **GET** /apis/node.k8s.io/v1/runtimeclasses/{name} | | +| [**replaceRuntimeClass**](NodeV1Api.md#replaceRuntimeClass) | **PUT** /apis/node.k8s.io/v1/runtimeclasses/{name} | | + + + # **createRuntimeClass** > V1RuntimeClass createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation) @@ -65,13 +65,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1RuntimeClass**](V1RuntimeClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1RuntimeClass**](V1RuntimeClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -89,12 +89,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionRuntimeClass** > V1Status deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -154,22 +154,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -187,10 +187,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteRuntimeClass** > V1Status deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -243,15 +243,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RuntimeClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the RuntimeClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -269,11 +269,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -336,10 +336,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listRuntimeClass** > V1RuntimeClassList listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -396,19 +396,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -426,10 +426,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchRuntimeClass** > V1RuntimeClass patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -482,15 +482,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RuntimeClass | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the RuntimeClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -508,11 +508,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readRuntimeClass** > V1RuntimeClass readRuntimeClass(name, pretty) @@ -560,10 +560,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RuntimeClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the RuntimeClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -581,10 +581,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceRuntimeClass** > V1RuntimeClass replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -636,14 +636,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RuntimeClass | - **body** | [**V1RuntimeClass**](V1RuntimeClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the RuntimeClass | | +| **body** | [**V1RuntimeClass**](V1RuntimeClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -661,7 +661,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/OpenidApi.md b/kubernetes/docs/OpenidApi.md index 136d8bc06f..35ce013db1 100644 --- a/kubernetes/docs/OpenidApi.md +++ b/kubernetes/docs/OpenidApi.md @@ -7,7 +7,7 @@ Method | HTTP request | Description [**getServiceAccountIssuerOpenIDKeyset**](OpenidApi.md#getServiceAccountIssuerOpenIDKeyset) | **GET** /openid/v1/jwks | - + # **getServiceAccountIssuerOpenIDKeyset** > String getServiceAccountIssuerOpenIDKeyset() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md index 51cf2e9275..c7e5ec960e 100644 --- a/kubernetes/docs/PolicyApi.md +++ b/kubernetes/docs/PolicyApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](PolicyApi.md#getAPIGroup) | **GET** /apis/policy/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](PolicyApi.md#getAPIGroup) | **GET** /apis/policy/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/PolicyV1Api.md b/kubernetes/docs/PolicyV1Api.md index 9afe0a8745..5b305fec5a 100644 --- a/kubernetes/docs/PolicyV1Api.md +++ b/kubernetes/docs/PolicyV1Api.md @@ -2,23 +2,23 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedPodDisruptionBudget**](PolicyV1Api.md#createNamespacedPodDisruptionBudget) | **POST** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets | -[**deleteCollectionNamespacedPodDisruptionBudget**](PolicyV1Api.md#deleteCollectionNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets | -[**deleteNamespacedPodDisruptionBudget**](PolicyV1Api.md#deleteNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**getAPIResources**](PolicyV1Api.md#getAPIResources) | **GET** /apis/policy/v1/ | -[**listNamespacedPodDisruptionBudget**](PolicyV1Api.md#listNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets | -[**listPodDisruptionBudgetForAllNamespaces**](PolicyV1Api.md#listPodDisruptionBudgetForAllNamespaces) | **GET** /apis/policy/v1/poddisruptionbudgets | -[**patchNamespacedPodDisruptionBudget**](PolicyV1Api.md#patchNamespacedPodDisruptionBudget) | **PATCH** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**patchNamespacedPodDisruptionBudgetStatus**](PolicyV1Api.md#patchNamespacedPodDisruptionBudgetStatus) | **PATCH** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -[**readNamespacedPodDisruptionBudget**](PolicyV1Api.md#readNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**readNamespacedPodDisruptionBudgetStatus**](PolicyV1Api.md#readNamespacedPodDisruptionBudgetStatus) | **GET** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -[**replaceNamespacedPodDisruptionBudget**](PolicyV1Api.md#replaceNamespacedPodDisruptionBudget) | **PUT** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**replaceNamespacedPodDisruptionBudgetStatus**](PolicyV1Api.md#replaceNamespacedPodDisruptionBudgetStatus) | **PUT** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedPodDisruptionBudget**](PolicyV1Api.md#createNamespacedPodDisruptionBudget) | **POST** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets | | +| [**deleteCollectionNamespacedPodDisruptionBudget**](PolicyV1Api.md#deleteCollectionNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets | | +| [**deleteNamespacedPodDisruptionBudget**](PolicyV1Api.md#deleteNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | | +| [**getAPIResources**](PolicyV1Api.md#getAPIResources) | **GET** /apis/policy/v1/ | | +| [**listNamespacedPodDisruptionBudget**](PolicyV1Api.md#listNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets | | +| [**listPodDisruptionBudgetForAllNamespaces**](PolicyV1Api.md#listPodDisruptionBudgetForAllNamespaces) | **GET** /apis/policy/v1/poddisruptionbudgets | | +| [**patchNamespacedPodDisruptionBudget**](PolicyV1Api.md#patchNamespacedPodDisruptionBudget) | **PATCH** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | | +| [**patchNamespacedPodDisruptionBudgetStatus**](PolicyV1Api.md#patchNamespacedPodDisruptionBudgetStatus) | **PATCH** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | | +| [**readNamespacedPodDisruptionBudget**](PolicyV1Api.md#readNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | | +| [**readNamespacedPodDisruptionBudgetStatus**](PolicyV1Api.md#readNamespacedPodDisruptionBudgetStatus) | **GET** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | | +| [**replaceNamespacedPodDisruptionBudget**](PolicyV1Api.md#replaceNamespacedPodDisruptionBudget) | **PUT** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | | +| [**replaceNamespacedPodDisruptionBudgetStatus**](PolicyV1Api.md#replaceNamespacedPodDisruptionBudgetStatus) | **PUT** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | | + + + # **createNamespacedPodDisruptionBudget** > V1PodDisruptionBudget createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -70,14 +70,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -95,12 +95,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedPodDisruptionBudget** > V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -161,23 +161,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -195,10 +195,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedPodDisruptionBudget** > V1Status deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -252,16 +252,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodDisruptionBudget | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -279,11 +279,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -346,10 +346,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedPodDisruptionBudget** > V1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -407,20 +407,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -438,10 +438,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPodDisruptionBudgetForAllNamespaces** > V1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -498,19 +498,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -528,10 +528,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPodDisruptionBudget** > V1PodDisruptionBudget patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -585,16 +585,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodDisruptionBudget | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -612,11 +612,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPodDisruptionBudgetStatus** > V1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -670,16 +670,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodDisruptionBudget | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -697,11 +697,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedPodDisruptionBudget** > V1PodDisruptionBudget readNamespacedPodDisruptionBudget(name, namespace, pretty) @@ -750,11 +750,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodDisruptionBudget | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -772,10 +772,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPodDisruptionBudgetStatus** > V1PodDisruptionBudget readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty) @@ -824,11 +824,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodDisruptionBudget | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -846,10 +846,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPodDisruptionBudget** > V1PodDisruptionBudget replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -902,15 +902,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodDisruptionBudget | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -928,11 +928,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPodDisruptionBudgetStatus** > V1PodDisruptionBudget replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -985,15 +985,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodDisruptionBudget | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -1011,7 +1011,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md index 43c528627c..62fe400270 100644 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ b/kubernetes/docs/RbacAuthorizationApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](RbacAuthorizationApi.md#getAPIGroup) | **GET** /apis/rbac.authorization.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](RbacAuthorizationApi.md#getAPIGroup) | **GET** /apis/rbac.authorization.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/RbacAuthorizationV1Api.md b/kubernetes/docs/RbacAuthorizationV1Api.md index 094f40f2fc..37c3af75b3 100644 --- a/kubernetes/docs/RbacAuthorizationV1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1Api.md @@ -2,42 +2,42 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createClusterRole**](RbacAuthorizationV1Api.md#createClusterRole) | **POST** /apis/rbac.authorization.k8s.io/v1/clusterroles | -[**createClusterRoleBinding**](RbacAuthorizationV1Api.md#createClusterRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings | -[**createNamespacedRole**](RbacAuthorizationV1Api.md#createNamespacedRole) | **POST** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles | -[**createNamespacedRoleBinding**](RbacAuthorizationV1Api.md#createNamespacedRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings | -[**deleteClusterRole**](RbacAuthorizationV1Api.md#deleteClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} | -[**deleteClusterRoleBinding**](RbacAuthorizationV1Api.md#deleteClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | -[**deleteCollectionClusterRole**](RbacAuthorizationV1Api.md#deleteCollectionClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1/clusterroles | -[**deleteCollectionClusterRoleBinding**](RbacAuthorizationV1Api.md#deleteCollectionClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings | -[**deleteCollectionNamespacedRole**](RbacAuthorizationV1Api.md#deleteCollectionNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles | -[**deleteCollectionNamespacedRoleBinding**](RbacAuthorizationV1Api.md#deleteCollectionNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings | -[**deleteNamespacedRole**](RbacAuthorizationV1Api.md#deleteNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | -[**deleteNamespacedRoleBinding**](RbacAuthorizationV1Api.md#deleteNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | -[**getAPIResources**](RbacAuthorizationV1Api.md#getAPIResources) | **GET** /apis/rbac.authorization.k8s.io/v1/ | -[**listClusterRole**](RbacAuthorizationV1Api.md#listClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1/clusterroles | -[**listClusterRoleBinding**](RbacAuthorizationV1Api.md#listClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings | -[**listNamespacedRole**](RbacAuthorizationV1Api.md#listNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles | -[**listNamespacedRoleBinding**](RbacAuthorizationV1Api.md#listNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings | -[**listRoleBindingForAllNamespaces**](RbacAuthorizationV1Api.md#listRoleBindingForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1/rolebindings | -[**listRoleForAllNamespaces**](RbacAuthorizationV1Api.md#listRoleForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1/roles | -[**patchClusterRole**](RbacAuthorizationV1Api.md#patchClusterRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} | -[**patchClusterRoleBinding**](RbacAuthorizationV1Api.md#patchClusterRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | -[**patchNamespacedRole**](RbacAuthorizationV1Api.md#patchNamespacedRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | -[**patchNamespacedRoleBinding**](RbacAuthorizationV1Api.md#patchNamespacedRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | -[**readClusterRole**](RbacAuthorizationV1Api.md#readClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} | -[**readClusterRoleBinding**](RbacAuthorizationV1Api.md#readClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | -[**readNamespacedRole**](RbacAuthorizationV1Api.md#readNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | -[**readNamespacedRoleBinding**](RbacAuthorizationV1Api.md#readNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | -[**replaceClusterRole**](RbacAuthorizationV1Api.md#replaceClusterRole) | **PUT** /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} | -[**replaceClusterRoleBinding**](RbacAuthorizationV1Api.md#replaceClusterRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | -[**replaceNamespacedRole**](RbacAuthorizationV1Api.md#replaceNamespacedRole) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | -[**replaceNamespacedRoleBinding**](RbacAuthorizationV1Api.md#replaceNamespacedRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createClusterRole**](RbacAuthorizationV1Api.md#createClusterRole) | **POST** /apis/rbac.authorization.k8s.io/v1/clusterroles | | +| [**createClusterRoleBinding**](RbacAuthorizationV1Api.md#createClusterRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings | | +| [**createNamespacedRole**](RbacAuthorizationV1Api.md#createNamespacedRole) | **POST** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles | | +| [**createNamespacedRoleBinding**](RbacAuthorizationV1Api.md#createNamespacedRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings | | +| [**deleteClusterRole**](RbacAuthorizationV1Api.md#deleteClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} | | +| [**deleteClusterRoleBinding**](RbacAuthorizationV1Api.md#deleteClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | | +| [**deleteCollectionClusterRole**](RbacAuthorizationV1Api.md#deleteCollectionClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1/clusterroles | | +| [**deleteCollectionClusterRoleBinding**](RbacAuthorizationV1Api.md#deleteCollectionClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings | | +| [**deleteCollectionNamespacedRole**](RbacAuthorizationV1Api.md#deleteCollectionNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles | | +| [**deleteCollectionNamespacedRoleBinding**](RbacAuthorizationV1Api.md#deleteCollectionNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings | | +| [**deleteNamespacedRole**](RbacAuthorizationV1Api.md#deleteNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | | +| [**deleteNamespacedRoleBinding**](RbacAuthorizationV1Api.md#deleteNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | | +| [**getAPIResources**](RbacAuthorizationV1Api.md#getAPIResources) | **GET** /apis/rbac.authorization.k8s.io/v1/ | | +| [**listClusterRole**](RbacAuthorizationV1Api.md#listClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1/clusterroles | | +| [**listClusterRoleBinding**](RbacAuthorizationV1Api.md#listClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings | | +| [**listNamespacedRole**](RbacAuthorizationV1Api.md#listNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles | | +| [**listNamespacedRoleBinding**](RbacAuthorizationV1Api.md#listNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings | | +| [**listRoleBindingForAllNamespaces**](RbacAuthorizationV1Api.md#listRoleBindingForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1/rolebindings | | +| [**listRoleForAllNamespaces**](RbacAuthorizationV1Api.md#listRoleForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1/roles | | +| [**patchClusterRole**](RbacAuthorizationV1Api.md#patchClusterRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} | | +| [**patchClusterRoleBinding**](RbacAuthorizationV1Api.md#patchClusterRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | | +| [**patchNamespacedRole**](RbacAuthorizationV1Api.md#patchNamespacedRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | | +| [**patchNamespacedRoleBinding**](RbacAuthorizationV1Api.md#patchNamespacedRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | | +| [**readClusterRole**](RbacAuthorizationV1Api.md#readClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} | | +| [**readClusterRoleBinding**](RbacAuthorizationV1Api.md#readClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | | +| [**readNamespacedRole**](RbacAuthorizationV1Api.md#readNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | | +| [**readNamespacedRoleBinding**](RbacAuthorizationV1Api.md#readNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | | +| [**replaceClusterRole**](RbacAuthorizationV1Api.md#replaceClusterRole) | **PUT** /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} | | +| [**replaceClusterRoleBinding**](RbacAuthorizationV1Api.md#replaceClusterRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | | +| [**replaceNamespacedRole**](RbacAuthorizationV1Api.md#replaceNamespacedRole) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | | +| [**replaceNamespacedRoleBinding**](RbacAuthorizationV1Api.md#replaceNamespacedRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | | + + + # **createClusterRole** > V1ClusterRole createClusterRole(body, pretty, dryRun, fieldManager, fieldValidation) @@ -88,13 +88,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1ClusterRole**](V1ClusterRole.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1ClusterRole**](V1ClusterRole.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -112,12 +112,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createClusterRoleBinding** > V1ClusterRoleBinding createClusterRoleBinding(body, pretty, dryRun, fieldManager, fieldValidation) @@ -168,13 +168,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -192,12 +192,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedRole** > V1Role createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -249,14 +249,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Role**](V1Role.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Role**](V1Role.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -274,12 +274,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedRoleBinding** > V1RoleBinding createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -331,14 +331,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1RoleBinding**](V1RoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1RoleBinding**](V1RoleBinding.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -356,12 +356,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteClusterRole** > V1Status deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -414,15 +414,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterRole | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -440,11 +440,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteClusterRoleBinding** > V1Status deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -497,15 +497,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterRoleBinding | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -523,11 +523,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionClusterRole** > V1Status deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -587,22 +587,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -620,10 +620,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionClusterRoleBinding** > V1Status deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -683,22 +683,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -716,10 +716,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedRole** > V1Status deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -780,23 +780,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -814,10 +814,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedRoleBinding** > V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -878,23 +878,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -912,10 +912,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedRole** > V1Status deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -969,16 +969,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Role | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -996,11 +996,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedRoleBinding** > V1Status deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1054,16 +1054,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the RoleBinding | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1081,11 +1081,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -1148,10 +1148,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listClusterRole** > V1ClusterRoleList listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1208,19 +1208,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1238,10 +1238,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listClusterRoleBinding** > V1ClusterRoleBindingList listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1298,19 +1298,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1328,10 +1328,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedRole** > V1RoleList listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1389,20 +1389,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1420,10 +1420,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedRoleBinding** > V1RoleBindingList listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1481,20 +1481,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1512,10 +1512,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listRoleBindingForAllNamespaces** > V1RoleBindingList listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1572,19 +1572,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1602,10 +1602,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listRoleForAllNamespaces** > V1RoleList listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1662,19 +1662,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1692,10 +1692,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchClusterRole** > V1ClusterRole patchClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1748,15 +1748,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterRole | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1774,11 +1774,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchClusterRoleBinding** > V1ClusterRoleBinding patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1831,15 +1831,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterRoleBinding | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1857,11 +1857,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedRole** > V1Role patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1915,16 +1915,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Role | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1942,11 +1942,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedRoleBinding** > V1RoleBinding patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2000,16 +2000,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the RoleBinding | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2027,11 +2027,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readClusterRole** > V1ClusterRole readClusterRole(name, pretty) @@ -2079,10 +2079,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterRole | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2100,10 +2100,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readClusterRoleBinding** > V1ClusterRoleBinding readClusterRoleBinding(name, pretty) @@ -2151,10 +2151,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterRoleBinding | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2172,10 +2172,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedRole** > V1Role readNamespacedRole(name, namespace, pretty) @@ -2224,11 +2224,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Role | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2246,10 +2246,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedRoleBinding** > V1RoleBinding readNamespacedRoleBinding(name, namespace, pretty) @@ -2298,11 +2298,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the RoleBinding | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2320,10 +2320,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceClusterRole** > V1ClusterRole replaceClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2375,14 +2375,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **body** | [**V1ClusterRole**](V1ClusterRole.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterRole | | +| **body** | [**V1ClusterRole**](V1ClusterRole.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2400,11 +2400,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceClusterRoleBinding** > V1ClusterRoleBinding replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2456,14 +2456,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **body** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterRoleBinding | | +| **body** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2481,11 +2481,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedRole** > V1Role replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2538,15 +2538,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Role**](V1Role.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Role | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1Role**](V1Role.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2564,11 +2564,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedRoleBinding** > V1RoleBinding replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2621,15 +2621,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1RoleBinding**](V1RoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the RoleBinding | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1RoleBinding**](V1RoleBinding.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2647,7 +2647,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/ResourceApi.md b/kubernetes/docs/ResourceApi.md index 641ef1abb8..4a8a54a3e6 100644 --- a/kubernetes/docs/ResourceApi.md +++ b/kubernetes/docs/ResourceApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](ResourceApi.md#getAPIGroup) | **GET** /apis/resource.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](ResourceApi.md#getAPIGroup) | **GET** /apis/resource.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/ResourceV1alpha2Api.md b/kubernetes/docs/ResourceV1alpha2Api.md index f652c91a22..73eddc4581 100644 --- a/kubernetes/docs/ResourceV1alpha2Api.md +++ b/kubernetes/docs/ResourceV1alpha2Api.md @@ -2,49 +2,49 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#createNamespacedPodSchedulingContext) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | -[**createNamespacedResourceClaim**](ResourceV1alpha2Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | -[**createNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | -[**createResourceClass**](ResourceV1alpha2Api.md#createResourceClass) | **POST** /apis/resource.k8s.io/v1alpha2/resourceclasses | -[**deleteCollectionNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#deleteCollectionNamespacedPodSchedulingContext) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | -[**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | -[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | -[**deleteCollectionResourceClass**](ResourceV1alpha2Api.md#deleteCollectionResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceclasses | -[**deleteNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#deleteNamespacedPodSchedulingContext) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | -[**deleteNamespacedResourceClaim**](ResourceV1alpha2Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | -[**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**deleteResourceClass**](ResourceV1alpha2Api.md#deleteResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | -[**getAPIResources**](ResourceV1alpha2Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha2/ | -[**listNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#listNamespacedPodSchedulingContext) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | -[**listNamespacedResourceClaim**](ResourceV1alpha2Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | -[**listNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | -[**listPodSchedulingContextForAllNamespaces**](ResourceV1alpha2Api.md#listPodSchedulingContextForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/podschedulingcontexts | -[**listResourceClaimForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaims | -[**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaimtemplates | -[**listResourceClass**](ResourceV1alpha2Api.md#listResourceClass) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclasses | -[**patchNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#patchNamespacedPodSchedulingContext) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | -[**patchNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#patchNamespacedPodSchedulingContextStatus) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | -[**patchNamespacedResourceClaim**](ResourceV1alpha2Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | -[**patchNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | -[**patchNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**patchResourceClass**](ResourceV1alpha2Api.md#patchResourceClass) | **PATCH** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | -[**readNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#readNamespacedPodSchedulingContext) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | -[**readNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#readNamespacedPodSchedulingContextStatus) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | -[**readNamespacedResourceClaim**](ResourceV1alpha2Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | -[**readNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | -[**readNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**readResourceClass**](ResourceV1alpha2Api.md#readResourceClass) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | -[**replaceNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#replaceNamespacedPodSchedulingContext) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | -[**replaceNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#replaceNamespacedPodSchedulingContextStatus) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | -[**replaceNamespacedResourceClaim**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | -[**replaceNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | -[**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**replaceResourceClass**](ResourceV1alpha2Api.md#replaceResourceClass) | **PUT** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#createNamespacedPodSchedulingContext) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | | +| [**createNamespacedResourceClaim**](ResourceV1alpha2Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | | +| [**createNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | | +| [**createResourceClass**](ResourceV1alpha2Api.md#createResourceClass) | **POST** /apis/resource.k8s.io/v1alpha2/resourceclasses | | +| [**deleteCollectionNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#deleteCollectionNamespacedPodSchedulingContext) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | | +| [**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | | +| [**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | | +| [**deleteCollectionResourceClass**](ResourceV1alpha2Api.md#deleteCollectionResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceclasses | | +| [**deleteNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#deleteNamespacedPodSchedulingContext) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | | +| [**deleteNamespacedResourceClaim**](ResourceV1alpha2Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | | +| [**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**deleteResourceClass**](ResourceV1alpha2Api.md#deleteResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | | +| [**getAPIResources**](ResourceV1alpha2Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha2/ | | +| [**listNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#listNamespacedPodSchedulingContext) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | | +| [**listNamespacedResourceClaim**](ResourceV1alpha2Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | | +| [**listNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | | +| [**listPodSchedulingContextForAllNamespaces**](ResourceV1alpha2Api.md#listPodSchedulingContextForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/podschedulingcontexts | | +| [**listResourceClaimForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaims | | +| [**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaimtemplates | | +| [**listResourceClass**](ResourceV1alpha2Api.md#listResourceClass) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclasses | | +| [**patchNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#patchNamespacedPodSchedulingContext) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | | +| [**patchNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#patchNamespacedPodSchedulingContextStatus) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | | +| [**patchNamespacedResourceClaim**](ResourceV1alpha2Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | | +| [**patchNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**patchNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**patchResourceClass**](ResourceV1alpha2Api.md#patchResourceClass) | **PATCH** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | | +| [**readNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#readNamespacedPodSchedulingContext) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | | +| [**readNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#readNamespacedPodSchedulingContextStatus) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | | +| [**readNamespacedResourceClaim**](ResourceV1alpha2Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | | +| [**readNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**readNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**readResourceClass**](ResourceV1alpha2Api.md#readResourceClass) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | | +| [**replaceNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#replaceNamespacedPodSchedulingContext) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | | +| [**replaceNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#replaceNamespacedPodSchedulingContextStatus) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | | +| [**replaceNamespacedResourceClaim**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | | +| [**replaceNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**replaceResourceClass**](ResourceV1alpha2Api.md#replaceResourceClass) | **PUT** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | | + + + # **createNamespacedPodSchedulingContext** > V1alpha2PodSchedulingContext createNamespacedPodSchedulingContext(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -96,14 +96,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -121,12 +121,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedResourceClaim** > V1alpha2ResourceClaim createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -178,14 +178,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -203,12 +203,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedResourceClaimTemplate** > V1alpha2ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -260,14 +260,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -285,12 +285,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createResourceClass** > V1alpha2ResourceClass createResourceClass(body, pretty, dryRun, fieldManager, fieldValidation) @@ -341,13 +341,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha2ResourceClass**](V1alpha2ResourceClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha2ResourceClass**](V1alpha2ResourceClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -365,12 +365,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedPodSchedulingContext** > V1Status deleteCollectionNamespacedPodSchedulingContext(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -431,23 +431,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -465,10 +465,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedResourceClaim** > V1Status deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -529,23 +529,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -563,10 +563,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedResourceClaimTemplate** > V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -627,23 +627,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -661,10 +661,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionResourceClass** > V1Status deleteCollectionResourceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -724,22 +724,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -757,10 +757,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedPodSchedulingContext** > V1alpha2PodSchedulingContext deleteNamespacedPodSchedulingContext(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -814,16 +814,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodSchedulingContext | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -841,11 +841,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedResourceClaim** > V1alpha2ResourceClaim deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -899,16 +899,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -926,11 +926,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedResourceClaimTemplate** > V1alpha2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -984,16 +984,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaimTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1011,11 +1011,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteResourceClass** > V1alpha2ResourceClass deleteResourceClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1068,15 +1068,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1094,11 +1094,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -1161,10 +1161,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedPodSchedulingContext** > V1alpha2PodSchedulingContextList listNamespacedPodSchedulingContext(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1222,20 +1222,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1253,10 +1253,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedResourceClaim** > V1alpha2ResourceClaimList listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1314,20 +1314,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1345,10 +1345,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedResourceClaimTemplate** > V1alpha2ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1406,20 +1406,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1437,10 +1437,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPodSchedulingContextForAllNamespaces** > V1alpha2PodSchedulingContextList listPodSchedulingContextForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1497,19 +1497,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1527,10 +1527,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listResourceClaimForAllNamespaces** > V1alpha2ResourceClaimList listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1587,19 +1587,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1617,10 +1617,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listResourceClaimTemplateForAllNamespaces** > V1alpha2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1677,19 +1677,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1707,10 +1707,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listResourceClass** > V1alpha2ResourceClassList listResourceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1767,19 +1767,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1797,10 +1797,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPodSchedulingContext** > V1alpha2PodSchedulingContext patchNamespacedPodSchedulingContext(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1854,16 +1854,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodSchedulingContext | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1881,11 +1881,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedPodSchedulingContextStatus** > V1alpha2PodSchedulingContext patchNamespacedPodSchedulingContextStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -1939,16 +1939,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodSchedulingContext | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -1966,11 +1966,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedResourceClaim** > V1alpha2ResourceClaim patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2024,16 +2024,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2051,11 +2051,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedResourceClaimStatus** > V1alpha2ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2109,16 +2109,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2136,11 +2136,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedResourceClaimTemplate** > V1alpha2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2194,16 +2194,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaimTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2221,11 +2221,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchResourceClass** > V1alpha2ResourceClass patchResourceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2278,15 +2278,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClass | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2304,11 +2304,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readNamespacedPodSchedulingContext** > V1alpha2PodSchedulingContext readNamespacedPodSchedulingContext(name, namespace, pretty) @@ -2357,11 +2357,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodSchedulingContext | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2379,10 +2379,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedPodSchedulingContextStatus** > V1alpha2PodSchedulingContext readNamespacedPodSchedulingContextStatus(name, namespace, pretty) @@ -2431,11 +2431,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodSchedulingContext | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2453,10 +2453,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedResourceClaim** > V1alpha2ResourceClaim readNamespacedResourceClaim(name, namespace, pretty) @@ -2505,11 +2505,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2527,10 +2527,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedResourceClaimStatus** > V1alpha2ResourceClaim readNamespacedResourceClaimStatus(name, namespace, pretty) @@ -2579,11 +2579,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2601,10 +2601,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedResourceClaimTemplate** > V1alpha2ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace, pretty) @@ -2653,11 +2653,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaimTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2675,10 +2675,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readResourceClass** > V1alpha2ResourceClass readResourceClass(name, pretty) @@ -2726,10 +2726,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2747,10 +2747,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPodSchedulingContext** > V1alpha2PodSchedulingContext replaceNamespacedPodSchedulingContext(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2803,15 +2803,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodSchedulingContext | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2829,11 +2829,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedPodSchedulingContextStatus** > V1alpha2PodSchedulingContext replaceNamespacedPodSchedulingContextStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2886,15 +2886,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodSchedulingContext | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2912,11 +2912,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedResourceClaim** > V1alpha2ResourceClaim replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2969,15 +2969,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2995,11 +2995,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedResourceClaimStatus** > V1alpha2ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -3052,15 +3052,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3078,11 +3078,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedResourceClaimTemplate** > V1alpha2ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -3135,15 +3135,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaimTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3161,11 +3161,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceResourceClass** > V1alpha2ResourceClass replaceResourceClass(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -3217,14 +3217,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClass | - **body** | [**V1alpha2ResourceClass**](V1alpha2ResourceClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClass | | +| **body** | [**V1alpha2ResourceClass**](V1alpha2ResourceClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3242,7 +3242,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/SchedulingApi.md b/kubernetes/docs/SchedulingApi.md index 52e3678edd..8d820b50be 100644 --- a/kubernetes/docs/SchedulingApi.md +++ b/kubernetes/docs/SchedulingApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](SchedulingApi.md#getAPIGroup) | **GET** /apis/scheduling.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](SchedulingApi.md#getAPIGroup) | **GET** /apis/scheduling.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/SchedulingV1Api.md b/kubernetes/docs/SchedulingV1Api.md index a1d73478bb..15eafdc9b8 100644 --- a/kubernetes/docs/SchedulingV1Api.md +++ b/kubernetes/docs/SchedulingV1Api.md @@ -2,19 +2,19 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createPriorityClass**](SchedulingV1Api.md#createPriorityClass) | **POST** /apis/scheduling.k8s.io/v1/priorityclasses | -[**deleteCollectionPriorityClass**](SchedulingV1Api.md#deleteCollectionPriorityClass) | **DELETE** /apis/scheduling.k8s.io/v1/priorityclasses | -[**deletePriorityClass**](SchedulingV1Api.md#deletePriorityClass) | **DELETE** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | -[**getAPIResources**](SchedulingV1Api.md#getAPIResources) | **GET** /apis/scheduling.k8s.io/v1/ | -[**listPriorityClass**](SchedulingV1Api.md#listPriorityClass) | **GET** /apis/scheduling.k8s.io/v1/priorityclasses | -[**patchPriorityClass**](SchedulingV1Api.md#patchPriorityClass) | **PATCH** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | -[**readPriorityClass**](SchedulingV1Api.md#readPriorityClass) | **GET** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | -[**replacePriorityClass**](SchedulingV1Api.md#replacePriorityClass) | **PUT** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createPriorityClass**](SchedulingV1Api.md#createPriorityClass) | **POST** /apis/scheduling.k8s.io/v1/priorityclasses | | +| [**deleteCollectionPriorityClass**](SchedulingV1Api.md#deleteCollectionPriorityClass) | **DELETE** /apis/scheduling.k8s.io/v1/priorityclasses | | +| [**deletePriorityClass**](SchedulingV1Api.md#deletePriorityClass) | **DELETE** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | | +| [**getAPIResources**](SchedulingV1Api.md#getAPIResources) | **GET** /apis/scheduling.k8s.io/v1/ | | +| [**listPriorityClass**](SchedulingV1Api.md#listPriorityClass) | **GET** /apis/scheduling.k8s.io/v1/priorityclasses | | +| [**patchPriorityClass**](SchedulingV1Api.md#patchPriorityClass) | **PATCH** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | | +| [**readPriorityClass**](SchedulingV1Api.md#readPriorityClass) | **GET** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | | +| [**replacePriorityClass**](SchedulingV1Api.md#replacePriorityClass) | **PUT** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | | + + + # **createPriorityClass** > V1PriorityClass createPriorityClass(body, pretty, dryRun, fieldManager, fieldValidation) @@ -65,13 +65,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1PriorityClass**](V1PriorityClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1PriorityClass**](V1PriorityClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -89,12 +89,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionPriorityClass** > V1Status deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -154,22 +154,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -187,10 +187,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deletePriorityClass** > V1Status deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -243,15 +243,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -269,11 +269,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -336,10 +336,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listPriorityClass** > V1PriorityClassList listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -396,19 +396,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -426,10 +426,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchPriorityClass** > V1PriorityClass patchPriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -482,15 +482,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityClass | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -508,11 +508,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readPriorityClass** > V1PriorityClass readPriorityClass(name, pretty) @@ -560,10 +560,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -581,10 +581,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replacePriorityClass** > V1PriorityClass replacePriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -636,14 +636,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityClass | - **body** | [**V1PriorityClass**](V1PriorityClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PriorityClass | | +| **body** | [**V1PriorityClass**](V1PriorityClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -661,7 +661,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md index eb3880c5bc..c5555a76a9 100644 --- a/kubernetes/docs/StorageApi.md +++ b/kubernetes/docs/StorageApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](StorageApi.md#getAPIGroup) | **GET** /apis/storage.k8s.io/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](StorageApi.md#getAPIGroup) | **GET** /apis/storage.k8s.io/ | | - + # **getAPIGroup** > V1APIGroup getAPIGroup() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index 24acb89b71..a6145740f5 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -2,51 +2,51 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createCSIDriver**](StorageV1Api.md#createCSIDriver) | **POST** /apis/storage.k8s.io/v1/csidrivers | -[**createCSINode**](StorageV1Api.md#createCSINode) | **POST** /apis/storage.k8s.io/v1/csinodes | -[**createNamespacedCSIStorageCapacity**](StorageV1Api.md#createNamespacedCSIStorageCapacity) | **POST** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | -[**createStorageClass**](StorageV1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | -[**createVolumeAttachment**](StorageV1Api.md#createVolumeAttachment) | **POST** /apis/storage.k8s.io/v1/volumeattachments | -[**deleteCSIDriver**](StorageV1Api.md#deleteCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers/{name} | -[**deleteCSINode**](StorageV1Api.md#deleteCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes/{name} | -[**deleteCollectionCSIDriver**](StorageV1Api.md#deleteCollectionCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers | -[**deleteCollectionCSINode**](StorageV1Api.md#deleteCollectionCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes | -[**deleteCollectionNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteCollectionNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | -[**deleteCollectionStorageClass**](StorageV1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | -[**deleteCollectionVolumeAttachment**](StorageV1Api.md#deleteCollectionVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments | -[**deleteNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | -[**deleteStorageClass**](StorageV1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**deleteVolumeAttachment**](StorageV1Api.md#deleteVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments/{name} | -[**getAPIResources**](StorageV1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | -[**listCSIDriver**](StorageV1Api.md#listCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers | -[**listCSINode**](StorageV1Api.md#listCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes | -[**listCSIStorageCapacityForAllNamespaces**](StorageV1Api.md#listCSIStorageCapacityForAllNamespaces) | **GET** /apis/storage.k8s.io/v1/csistoragecapacities | -[**listNamespacedCSIStorageCapacity**](StorageV1Api.md#listNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | -[**listStorageClass**](StorageV1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | -[**listVolumeAttachment**](StorageV1Api.md#listVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments | -[**patchCSIDriver**](StorageV1Api.md#patchCSIDriver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | -[**patchCSINode**](StorageV1Api.md#patchCSINode) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | -[**patchNamespacedCSIStorageCapacity**](StorageV1Api.md#patchNamespacedCSIStorageCapacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | -[**patchStorageClass**](StorageV1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**patchVolumeAttachment**](StorageV1Api.md#patchVolumeAttachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | -[**patchVolumeAttachmentStatus**](StorageV1Api.md#patchVolumeAttachmentStatus) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | -[**readCSIDriver**](StorageV1Api.md#readCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | -[**readCSINode**](StorageV1Api.md#readCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | -[**readNamespacedCSIStorageCapacity**](StorageV1Api.md#readNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | -[**readStorageClass**](StorageV1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**readVolumeAttachment**](StorageV1Api.md#readVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | -[**readVolumeAttachmentStatus**](StorageV1Api.md#readVolumeAttachmentStatus) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | -[**replaceCSIDriver**](StorageV1Api.md#replaceCSIDriver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | -[**replaceCSINode**](StorageV1Api.md#replaceCSINode) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | -[**replaceNamespacedCSIStorageCapacity**](StorageV1Api.md#replaceNamespacedCSIStorageCapacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | -[**replaceStorageClass**](StorageV1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**replaceVolumeAttachment**](StorageV1Api.md#replaceVolumeAttachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | -[**replaceVolumeAttachmentStatus**](StorageV1Api.md#replaceVolumeAttachmentStatus) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | - - - +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createCSIDriver**](StorageV1Api.md#createCSIDriver) | **POST** /apis/storage.k8s.io/v1/csidrivers | | +| [**createCSINode**](StorageV1Api.md#createCSINode) | **POST** /apis/storage.k8s.io/v1/csinodes | | +| [**createNamespacedCSIStorageCapacity**](StorageV1Api.md#createNamespacedCSIStorageCapacity) | **POST** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | +| [**createStorageClass**](StorageV1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | | +| [**createVolumeAttachment**](StorageV1Api.md#createVolumeAttachment) | **POST** /apis/storage.k8s.io/v1/volumeattachments | | +| [**deleteCSIDriver**](StorageV1Api.md#deleteCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers/{name} | | +| [**deleteCSINode**](StorageV1Api.md#deleteCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes/{name} | | +| [**deleteCollectionCSIDriver**](StorageV1Api.md#deleteCollectionCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers | | +| [**deleteCollectionCSINode**](StorageV1Api.md#deleteCollectionCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes | | +| [**deleteCollectionNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteCollectionNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | +| [**deleteCollectionStorageClass**](StorageV1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | | +| [**deleteCollectionVolumeAttachment**](StorageV1Api.md#deleteCollectionVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments | | +| [**deleteNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | +| [**deleteStorageClass**](StorageV1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | | +| [**deleteVolumeAttachment**](StorageV1Api.md#deleteVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments/{name} | | +| [**getAPIResources**](StorageV1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | | +| [**listCSIDriver**](StorageV1Api.md#listCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers | | +| [**listCSINode**](StorageV1Api.md#listCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes | | +| [**listCSIStorageCapacityForAllNamespaces**](StorageV1Api.md#listCSIStorageCapacityForAllNamespaces) | **GET** /apis/storage.k8s.io/v1/csistoragecapacities | | +| [**listNamespacedCSIStorageCapacity**](StorageV1Api.md#listNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | +| [**listStorageClass**](StorageV1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | | +| [**listVolumeAttachment**](StorageV1Api.md#listVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments | | +| [**patchCSIDriver**](StorageV1Api.md#patchCSIDriver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | | +| [**patchCSINode**](StorageV1Api.md#patchCSINode) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | | +| [**patchNamespacedCSIStorageCapacity**](StorageV1Api.md#patchNamespacedCSIStorageCapacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | +| [**patchStorageClass**](StorageV1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | | +| [**patchVolumeAttachment**](StorageV1Api.md#patchVolumeAttachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | | +| [**patchVolumeAttachmentStatus**](StorageV1Api.md#patchVolumeAttachmentStatus) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | +| [**readCSIDriver**](StorageV1Api.md#readCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | | +| [**readCSINode**](StorageV1Api.md#readCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | | +| [**readNamespacedCSIStorageCapacity**](StorageV1Api.md#readNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | +| [**readStorageClass**](StorageV1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | | +| [**readVolumeAttachment**](StorageV1Api.md#readVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | | +| [**readVolumeAttachmentStatus**](StorageV1Api.md#readVolumeAttachmentStatus) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | +| [**replaceCSIDriver**](StorageV1Api.md#replaceCSIDriver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | | +| [**replaceCSINode**](StorageV1Api.md#replaceCSINode) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | | +| [**replaceNamespacedCSIStorageCapacity**](StorageV1Api.md#replaceNamespacedCSIStorageCapacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | +| [**replaceStorageClass**](StorageV1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | | +| [**replaceVolumeAttachment**](StorageV1Api.md#replaceVolumeAttachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | | +| [**replaceVolumeAttachmentStatus**](StorageV1Api.md#replaceVolumeAttachmentStatus) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | + + + # **createCSIDriver** > V1CSIDriver createCSIDriver(body, pretty, dryRun, fieldManager, fieldValidation) @@ -97,13 +97,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1CSIDriver**](V1CSIDriver.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1CSIDriver**](V1CSIDriver.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -121,12 +121,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createCSINode** > V1CSINode createCSINode(body, pretty, dryRun, fieldManager, fieldValidation) @@ -177,13 +177,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1CSINode**](V1CSINode.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1CSINode**](V1CSINode.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -201,12 +201,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createNamespacedCSIStorageCapacity** > V1CSIStorageCapacity createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -258,14 +258,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1CSIStorageCapacity**](V1CSIStorageCapacity.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1CSIStorageCapacity**](V1CSIStorageCapacity.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -283,12 +283,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createStorageClass** > V1StorageClass createStorageClass(body, pretty, dryRun, fieldManager, fieldValidation) @@ -339,13 +339,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1StorageClass**](V1StorageClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1StorageClass**](V1StorageClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -363,12 +363,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **createVolumeAttachment** > V1VolumeAttachment createVolumeAttachment(body, pretty, dryRun, fieldManager, fieldValidation) @@ -419,13 +419,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -443,12 +443,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCSIDriver** > V1CSIDriver deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -501,15 +501,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSIDriver | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSIDriver | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -527,11 +527,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCSINode** > V1CSINode deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -584,15 +584,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSINode | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSINode | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -610,11 +610,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteCollectionCSIDriver** > V1Status deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -674,22 +674,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -707,10 +707,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionCSINode** > V1Status deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -770,22 +770,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -803,10 +803,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionNamespacedCSIStorageCapacity** > V1Status deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -867,23 +867,23 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -901,10 +901,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionStorageClass** > V1Status deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -964,22 +964,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -997,10 +997,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteCollectionVolumeAttachment** > V1Status deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -1060,22 +1060,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1093,10 +1093,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **deleteNamespacedCSIStorageCapacity** > V1Status deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1150,16 +1150,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSIStorageCapacity | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSIStorageCapacity | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1177,11 +1177,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteStorageClass** > V1StorageClass deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1234,15 +1234,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1260,11 +1260,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **deleteVolumeAttachment** > V1VolumeAttachment deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1317,15 +1317,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the VolumeAttachment | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the VolumeAttachment | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1343,11 +1343,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | - + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -1410,10 +1410,10 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listCSIDriver** > V1CSIDriverList listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1470,19 +1470,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1500,10 +1500,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listCSINode** > V1CSINodeList listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1560,19 +1560,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1590,10 +1590,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listCSIStorageCapacityForAllNamespaces** > V1CSIStorageCapacityList listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1650,19 +1650,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1680,10 +1680,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listNamespacedCSIStorageCapacity** > V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1741,20 +1741,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1772,10 +1772,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listStorageClass** > V1StorageClassList listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1832,19 +1832,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1862,10 +1862,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **listVolumeAttachment** > V1VolumeAttachmentList listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) @@ -1922,19 +1922,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] - **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type @@ -1952,10 +1952,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **patchCSIDriver** > V1CSIDriver patchCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2008,15 +2008,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSIDriver | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSIDriver | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2034,11 +2034,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchCSINode** > V1CSINode patchCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2091,15 +2091,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSINode | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSINode | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2117,11 +2117,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchNamespacedCSIStorageCapacity** > V1CSIStorageCapacity patchNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2175,16 +2175,16 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSIStorageCapacity | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSIStorageCapacity | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2202,11 +2202,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchStorageClass** > V1StorageClass patchStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2259,15 +2259,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2285,11 +2285,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchVolumeAttachment** > V1VolumeAttachment patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2342,15 +2342,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the VolumeAttachment | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the VolumeAttachment | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2368,11 +2368,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **patchVolumeAttachmentStatus** > V1VolumeAttachment patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) @@ -2425,15 +2425,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the VolumeAttachment | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the VolumeAttachment | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type @@ -2451,11 +2451,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **readCSIDriver** > V1CSIDriver readCSIDriver(name, pretty) @@ -2503,10 +2503,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSIDriver | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSIDriver | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2524,10 +2524,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readCSINode** > V1CSINode readCSINode(name, pretty) @@ -2575,10 +2575,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSINode | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSINode | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2596,10 +2596,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readNamespacedCSIStorageCapacity** > V1CSIStorageCapacity readNamespacedCSIStorageCapacity(name, namespace, pretty) @@ -2648,11 +2648,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSIStorageCapacity | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSIStorageCapacity | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2670,10 +2670,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readStorageClass** > V1StorageClass readStorageClass(name, pretty) @@ -2721,10 +2721,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2742,10 +2742,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readVolumeAttachment** > V1VolumeAttachment readVolumeAttachment(name, pretty) @@ -2793,10 +2793,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the VolumeAttachment | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the VolumeAttachment | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2814,10 +2814,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **readVolumeAttachmentStatus** > V1VolumeAttachment readVolumeAttachmentStatus(name, pretty) @@ -2865,10 +2865,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the VolumeAttachment | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the VolumeAttachment | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | ### Return type @@ -2886,10 +2886,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | - + # **replaceCSIDriver** > V1CSIDriver replaceCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -2941,14 +2941,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSIDriver | - **body** | [**V1CSIDriver**](V1CSIDriver.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSIDriver | | +| **body** | [**V1CSIDriver**](V1CSIDriver.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -2966,11 +2966,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceCSINode** > V1CSINode replaceCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -3022,14 +3022,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSINode | - **body** | [**V1CSINode**](V1CSINode.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSINode | | +| **body** | [**V1CSINode**](V1CSINode.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3047,11 +3047,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceNamespacedCSIStorageCapacity** > V1CSIStorageCapacity replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) @@ -3104,15 +3104,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CSIStorageCapacity | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1CSIStorageCapacity**](V1CSIStorageCapacity.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CSIStorageCapacity | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1CSIStorageCapacity**](V1CSIStorageCapacity.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3130,11 +3130,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceStorageClass** > V1StorageClass replaceStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -3186,14 +3186,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **body** | [**V1StorageClass**](V1StorageClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageClass | | +| **body** | [**V1StorageClass**](V1StorageClass.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3211,11 +3211,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceVolumeAttachment** > V1VolumeAttachment replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -3267,14 +3267,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the VolumeAttachment | - **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the VolumeAttachment | | +| **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3292,11 +3292,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | - + # **replaceVolumeAttachmentStatus** > V1VolumeAttachment replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) @@ -3348,14 +3348,14 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the VolumeAttachment | - **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the VolumeAttachment | | +| **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -3373,7 +3373,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/StorageV1TokenRequest.md b/kubernetes/docs/StorageV1TokenRequest.md index 7dc9963c44..d76ab65f48 100644 --- a/kubernetes/docs/StorageV1TokenRequest.md +++ b/kubernetes/docs/StorageV1TokenRequest.md @@ -3,12 +3,13 @@ # StorageV1TokenRequest TokenRequest contains parameters of a service account token. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audience** | **String** | audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver. | -**expirationSeconds** | **Long** | expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audience** | **String** | audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver. | | +|**expirationSeconds** | **Long** | expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\". | [optional] | diff --git a/kubernetes/docs/V1APIGroup.md b/kubernetes/docs/V1APIGroup.md index 1a9b1b40c7..ea65776db0 100644 --- a/kubernetes/docs/V1APIGroup.md +++ b/kubernetes/docs/V1APIGroup.md @@ -3,16 +3,17 @@ # V1APIGroup APIGroup contains the name, the supported versions, and the preferred version of a group. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**name** | **String** | name is the name of the group. | -**preferredVersion** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | | [optional] -**serverAddressByClientCIDRs** | [**List<V1ServerAddressByClientCIDR>**](V1ServerAddressByClientCIDR.md) | 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. | [optional] -**versions** | [**List<V1GroupVersionForDiscovery>**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**name** | **String** | name is the name of the group. | | +|**preferredVersion** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | | [optional] | +|**serverAddressByClientCIDRs** | [**List<V1ServerAddressByClientCIDR>**](V1ServerAddressByClientCIDR.md) | 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. | [optional] | +|**versions** | [**List<V1GroupVersionForDiscovery>**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | | diff --git a/kubernetes/docs/V1APIGroupList.md b/kubernetes/docs/V1APIGroupList.md index 8c8c574438..5f3ba90883 100644 --- a/kubernetes/docs/V1APIGroupList.md +++ b/kubernetes/docs/V1APIGroupList.md @@ -3,13 +3,14 @@ # V1APIGroupList APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**groups** | [**List<V1APIGroup>**](V1APIGroup.md) | groups is a list of APIGroup. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**groups** | [**List<V1APIGroup>**](V1APIGroup.md) | groups is a list of APIGroup. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | diff --git a/kubernetes/docs/V1APIResource.md b/kubernetes/docs/V1APIResource.md index d52fa49deb..51d127378a 100644 --- a/kubernetes/docs/V1APIResource.md +++ b/kubernetes/docs/V1APIResource.md @@ -3,20 +3,21 @@ # V1APIResource APIResource specifies the name of a resource and whether it is namespaced. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**categories** | **List<String>** | categories is a list of the grouped resources this resource belongs to (e.g. 'all') | [optional] -**group** | **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\". | [optional] -**kind** | **String** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | -**name** | **String** | name is the plural name of the resource. | -**namespaced** | **Boolean** | namespaced indicates if a resource is namespaced or not. | -**shortNames** | **List<String>** | shortNames is a list of suggested short names of the resource. | [optional] -**singularName** | **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. | -**storageVersionHash** | **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. | [optional] -**verbs** | **List<String>** | verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) | -**version** | **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)\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**categories** | **List<String>** | categories is a list of the grouped resources this resource belongs to (e.g. 'all') | [optional] | +|**group** | **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\". | [optional] | +|**kind** | **String** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | | +|**name** | **String** | name is the plural name of the resource. | | +|**namespaced** | **Boolean** | namespaced indicates if a resource is namespaced or not. | | +|**shortNames** | **List<String>** | shortNames is a list of suggested short names of the resource. | [optional] | +|**singularName** | **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. | | +|**storageVersionHash** | **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. | [optional] | +|**verbs** | **List<String>** | verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) | | +|**version** | **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)\". | [optional] | diff --git a/kubernetes/docs/V1APIResourceList.md b/kubernetes/docs/V1APIResourceList.md index 9f77c9e636..383f3be375 100644 --- a/kubernetes/docs/V1APIResourceList.md +++ b/kubernetes/docs/V1APIResourceList.md @@ -3,14 +3,15 @@ # V1APIResourceList 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**groupVersion** | **String** | groupVersion is the group and version this APIResourceList is for. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**resources** | [**List<V1APIResource>**](V1APIResource.md) | resources contains the name of the resources and if they are namespaced. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**groupVersion** | **String** | groupVersion is the group and version this APIResourceList is for. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**resources** | [**List<V1APIResource>**](V1APIResource.md) | resources contains the name of the resources and if they are namespaced. | | diff --git a/kubernetes/docs/V1APIService.md b/kubernetes/docs/V1APIService.md index bdb337a130..b41fe24da9 100644 --- a/kubernetes/docs/V1APIService.md +++ b/kubernetes/docs/V1APIService.md @@ -3,15 +3,16 @@ # V1APIService APIService represents a server for a particular GroupVersion. Name must be \"version.group\". + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1APIServiceSpec**](V1APIServiceSpec.md) | | [optional] -**status** | [**V1APIServiceStatus**](V1APIServiceStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1APIServiceSpec**](V1APIServiceSpec.md) | | [optional] | +|**status** | [**V1APIServiceStatus**](V1APIServiceStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1APIServiceCondition.md b/kubernetes/docs/V1APIServiceCondition.md index c806053731..d823891e51 100644 --- a/kubernetes/docs/V1APIServiceCondition.md +++ b/kubernetes/docs/V1APIServiceCondition.md @@ -3,15 +3,16 @@ # V1APIServiceCondition APIServiceCondition describes the state of an APIService at a particular point + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] -**message** | **String** | Human-readable message indicating details about last transition. | [optional] -**reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | Status is the status of the condition. Can be True, False, Unknown. | -**type** | **String** | Type is the type of the condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | Human-readable message indicating details about last transition. | [optional] | +|**reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] | +|**status** | **String** | Status is the status of the condition. Can be True, False, Unknown. | | +|**type** | **String** | Type is the type of the condition. | | diff --git a/kubernetes/docs/V1APIServiceList.md b/kubernetes/docs/V1APIServiceList.md index dea5e0a855..03ae2bc859 100644 --- a/kubernetes/docs/V1APIServiceList.md +++ b/kubernetes/docs/V1APIServiceList.md @@ -3,14 +3,15 @@ # V1APIServiceList APIServiceList is a list of APIService objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1APIService>**](V1APIService.md) | Items is the list of APIService | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1APIService>**](V1APIService.md) | Items is the list of APIService | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1APIServiceSpec.md b/kubernetes/docs/V1APIServiceSpec.md index dbdd48834d..80369ac866 100644 --- a/kubernetes/docs/V1APIServiceSpec.md +++ b/kubernetes/docs/V1APIServiceSpec.md @@ -3,17 +3,18 @@ # V1APIServiceSpec APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**caBundle** | **byte[]** | 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. | [optional] -**group** | **String** | Group is the API group name this server hosts | [optional] -**groupPriorityMinimum** | **Integer** | GroupPriorityMininum 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 GroupPriorityMininum 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 | -**insecureSkipTLSVerify** | **Boolean** | InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. | [optional] -**service** | [**ApiregistrationV1ServiceReference**](ApiregistrationV1ServiceReference.md) | | [optional] -**version** | **String** | Version is the API version this server hosts. For example, \"v1\" | [optional] -**versionPriority** | **Integer** | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**caBundle** | **byte[]** | 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. | [optional] | +|**group** | **String** | Group is the API group name this server hosts | [optional] | +|**groupPriorityMinimum** | **Integer** | GroupPriorityMininum 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 GroupPriorityMininum 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 | | +|**insecureSkipTLSVerify** | **Boolean** | InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. | [optional] | +|**service** | [**ApiregistrationV1ServiceReference**](ApiregistrationV1ServiceReference.md) | | [optional] | +|**version** | **String** | Version is the API version this server hosts. For example, \"v1\" | [optional] | +|**versionPriority** | **Integer** | 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. | | diff --git a/kubernetes/docs/V1APIServiceStatus.md b/kubernetes/docs/V1APIServiceStatus.md index 6c09b6ffba..5e50ee7911 100644 --- a/kubernetes/docs/V1APIServiceStatus.md +++ b/kubernetes/docs/V1APIServiceStatus.md @@ -3,11 +3,12 @@ # V1APIServiceStatus APIServiceStatus contains derived information about an API server + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1APIServiceCondition>**](V1APIServiceCondition.md) | Current service state of apiService. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1APIServiceCondition>**](V1APIServiceCondition.md) | Current service state of apiService. | [optional] | diff --git a/kubernetes/docs/V1APIVersions.md b/kubernetes/docs/V1APIVersions.md index 1314865981..facbe2b02f 100644 --- a/kubernetes/docs/V1APIVersions.md +++ b/kubernetes/docs/V1APIVersions.md @@ -3,14 +3,15 @@ # V1APIVersions 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**serverAddressByClientCIDRs** | [**List<V1ServerAddressByClientCIDR>**](V1ServerAddressByClientCIDR.md) | 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. | -**versions** | **List<String>** | versions are the api versions that are available. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**serverAddressByClientCIDRs** | [**List<V1ServerAddressByClientCIDR>**](V1ServerAddressByClientCIDR.md) | 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. | | +|**versions** | **List<String>** | versions are the api versions that are available. | | diff --git a/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md b/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md index efeb98f09c..ff7fb1fa88 100644 --- a/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md +++ b/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md @@ -3,14 +3,15 @@ # V1AWSElasticBlockStoreVolumeSource 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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 | [optional] -**partition** | **Integer** | 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). | [optional] -**readOnly** | **Boolean** | readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] -**volumeID** | **String** | volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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 | [optional] | +|**partition** | **Integer** | 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). | [optional] | +|**readOnly** | **Boolean** | readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] | +|**volumeID** | **String** | volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | | diff --git a/kubernetes/docs/V1Affinity.md b/kubernetes/docs/V1Affinity.md index 670cf3985d..04ab8f74f2 100644 --- a/kubernetes/docs/V1Affinity.md +++ b/kubernetes/docs/V1Affinity.md @@ -3,13 +3,14 @@ # V1Affinity Affinity is a group of affinity scheduling rules. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodeAffinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | | [optional] -**podAffinity** | [**V1PodAffinity**](V1PodAffinity.md) | | [optional] -**podAntiAffinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nodeAffinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | | [optional] | +|**podAffinity** | [**V1PodAffinity**](V1PodAffinity.md) | | [optional] | +|**podAntiAffinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | | [optional] | diff --git a/kubernetes/docs/V1AggregationRule.md b/kubernetes/docs/V1AggregationRule.md index 749d0f9839..19c9a8840c 100644 --- a/kubernetes/docs/V1AggregationRule.md +++ b/kubernetes/docs/V1AggregationRule.md @@ -3,11 +3,12 @@ # V1AggregationRule AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clusterRoleSelectors** | [**List<V1LabelSelector>**](V1LabelSelector.md) | ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clusterRoleSelectors** | [**List<V1LabelSelector>**](V1LabelSelector.md) | ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] | diff --git a/kubernetes/docs/V1AttachedVolume.md b/kubernetes/docs/V1AttachedVolume.md index 156044213b..7aa377d98a 100644 --- a/kubernetes/docs/V1AttachedVolume.md +++ b/kubernetes/docs/V1AttachedVolume.md @@ -3,12 +3,13 @@ # V1AttachedVolume AttachedVolume describes a volume attached to a node + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**devicePath** | **String** | DevicePath represents the device path where the volume should be available | -**name** | **String** | Name of the attached volume | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**devicePath** | **String** | DevicePath represents the device path where the volume should be available | | +|**name** | **String** | Name of the attached volume | | diff --git a/kubernetes/docs/V1AzureDiskVolumeSource.md b/kubernetes/docs/V1AzureDiskVolumeSource.md index 5ff2cd4005..6e9cbc1e38 100644 --- a/kubernetes/docs/V1AzureDiskVolumeSource.md +++ b/kubernetes/docs/V1AzureDiskVolumeSource.md @@ -3,16 +3,17 @@ # V1AzureDiskVolumeSource AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cachingMode** | **String** | cachingMode is the Host Caching mode: None, Read Only, Read Write. | [optional] -**diskName** | **String** | diskName is the Name of the data disk in the blob storage | -**diskURI** | **String** | diskURI is the URI of data disk in the blob storage | -**fsType** | **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. | [optional] -**kind** | **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 | [optional] -**readOnly** | **Boolean** | readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cachingMode** | **String** | cachingMode is the Host Caching mode: None, Read Only, Read Write. | [optional] | +|**diskName** | **String** | diskName is the Name of the data disk in the blob storage | | +|**diskURI** | **String** | diskURI is the URI of data disk in the blob storage | | +|**fsType** | **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. | [optional] | +|**kind** | **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 | [optional] | +|**readOnly** | **Boolean** | readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | diff --git a/kubernetes/docs/V1AzureFilePersistentVolumeSource.md b/kubernetes/docs/V1AzureFilePersistentVolumeSource.md index 8ade79de62..82a91da3b3 100644 --- a/kubernetes/docs/V1AzureFilePersistentVolumeSource.md +++ b/kubernetes/docs/V1AzureFilePersistentVolumeSource.md @@ -3,14 +3,15 @@ # V1AzureFilePersistentVolumeSource AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretName** | **String** | secretName is the name of secret that contains Azure Storage Account Name and Key | -**secretNamespace** | **String** | secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod | [optional] -**shareName** | **String** | shareName is the azure Share Name | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**secretName** | **String** | secretName is the name of secret that contains Azure Storage Account Name and Key | | +|**secretNamespace** | **String** | secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod | [optional] | +|**shareName** | **String** | shareName is the azure Share Name | | diff --git a/kubernetes/docs/V1AzureFileVolumeSource.md b/kubernetes/docs/V1AzureFileVolumeSource.md index 7a6c32cd69..7112d7c255 100644 --- a/kubernetes/docs/V1AzureFileVolumeSource.md +++ b/kubernetes/docs/V1AzureFileVolumeSource.md @@ -3,13 +3,14 @@ # V1AzureFileVolumeSource AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretName** | **String** | secretName is the name of secret that contains Azure Storage Account Name and Key | -**shareName** | **String** | shareName is the azure share Name | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**secretName** | **String** | secretName is the name of secret that contains Azure Storage Account Name and Key | | +|**shareName** | **String** | shareName is the azure share Name | | diff --git a/kubernetes/docs/V1Binding.md b/kubernetes/docs/V1Binding.md index ebb4cd7542..590e3a12b3 100644 --- a/kubernetes/docs/V1Binding.md +++ b/kubernetes/docs/V1Binding.md @@ -3,14 +3,15 @@ # V1Binding 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**target** | [**V1ObjectReference**](V1ObjectReference.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**target** | [**V1ObjectReference**](V1ObjectReference.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1BoundObjectReference.md b/kubernetes/docs/V1BoundObjectReference.md index bba1b61b34..2b2df9931d 100644 --- a/kubernetes/docs/V1BoundObjectReference.md +++ b/kubernetes/docs/V1BoundObjectReference.md @@ -3,14 +3,15 @@ # V1BoundObjectReference BoundObjectReference is a reference to an object that a token is bound to. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | API version of the referent. | [optional] -**kind** | **String** | Kind of the referent. Valid kinds are 'Pod' and 'Secret'. | [optional] -**name** | **String** | Name of the referent. | [optional] -**uid** | **String** | UID of the referent. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | API version of the referent. | [optional] | +|**kind** | **String** | Kind of the referent. Valid kinds are 'Pod' and 'Secret'. | [optional] | +|**name** | **String** | Name of the referent. | [optional] | +|**uid** | **String** | UID of the referent. | [optional] | diff --git a/kubernetes/docs/V1CSIDriver.md b/kubernetes/docs/V1CSIDriver.md index 3275f97b0b..e8e55423e7 100644 --- a/kubernetes/docs/V1CSIDriver.md +++ b/kubernetes/docs/V1CSIDriver.md @@ -3,14 +3,15 @@ # V1CSIDriver 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1CSIDriverSpec**](V1CSIDriverSpec.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1CSIDriverSpec**](V1CSIDriverSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CSIDriverList.md b/kubernetes/docs/V1CSIDriverList.md index 3a4e1029f8..93f6d1b69a 100644 --- a/kubernetes/docs/V1CSIDriverList.md +++ b/kubernetes/docs/V1CSIDriverList.md @@ -3,14 +3,15 @@ # V1CSIDriverList CSIDriverList is a collection of CSIDriver objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1CSIDriver>**](V1CSIDriver.md) | items is the list of CSIDriver | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1CSIDriver>**](V1CSIDriver.md) | items is the list of CSIDriver | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CSIDriverSpec.md b/kubernetes/docs/V1CSIDriverSpec.md index c6a60759a9..a9143fe180 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -3,18 +3,19 @@ # V1CSIDriverSpec CSIDriverSpec is the specification of a CSIDriver. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attachRequired** | **Boolean** | attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the 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. | [optional] -**fsGroupPolicy** | **String** | fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field is immutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. | [optional] -**podInfoOnMount** | **Boolean** | podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext 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 is immutable. | [optional] -**requiresRepublish** | **Boolean** | requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. | [optional] -**seLinuxMount** | **Boolean** | seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\". | [optional] -**storageCapacity** | **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. | [optional] -**tokenRequests** | [**List<StorageV1TokenRequest>**](StorageV1TokenRequest.md) | 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\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } 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. | [optional] -**volumeLifecycleModes** | **List<String>** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attachRequired** | **Boolean** | attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the 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. | [optional] | +|**fsGroupPolicy** | **String** | fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field is immutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. | [optional] | +|**podInfoOnMount** | **Boolean** | podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext 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 is immutable. | [optional] | +|**requiresRepublish** | **Boolean** | requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. | [optional] | +|**seLinuxMount** | **Boolean** | seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\". | [optional] | +|**storageCapacity** | **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. | [optional] | +|**tokenRequests** | [**List<StorageV1TokenRequest>**](StorageV1TokenRequest.md) | 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\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } 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. | [optional] | +|**volumeLifecycleModes** | **List<String>** | 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. | [optional] | diff --git a/kubernetes/docs/V1CSINode.md b/kubernetes/docs/V1CSINode.md index fc19f2135c..9b777d83c8 100644 --- a/kubernetes/docs/V1CSINode.md +++ b/kubernetes/docs/V1CSINode.md @@ -3,14 +3,15 @@ # V1CSINode 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1CSINodeSpec**](V1CSINodeSpec.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1CSINodeSpec**](V1CSINodeSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CSINodeDriver.md b/kubernetes/docs/V1CSINodeDriver.md index 3e1e573287..7f7287fa1c 100644 --- a/kubernetes/docs/V1CSINodeDriver.md +++ b/kubernetes/docs/V1CSINodeDriver.md @@ -3,14 +3,15 @@ # V1CSINodeDriver CSINodeDriver holds information about the specification of one CSI driver installed on a node + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allocatable** | [**V1VolumeNodeResources**](V1VolumeNodeResources.md) | | [optional] -**name** | **String** | 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. | -**nodeID** | **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. | -**topologyKeys** | **List<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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocatable** | [**V1VolumeNodeResources**](V1VolumeNodeResources.md) | | [optional] | +|**name** | **String** | 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. | | +|**nodeID** | **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. | | +|**topologyKeys** | **List<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. | [optional] | diff --git a/kubernetes/docs/V1CSINodeList.md b/kubernetes/docs/V1CSINodeList.md index 6404289f4c..8165d117e3 100644 --- a/kubernetes/docs/V1CSINodeList.md +++ b/kubernetes/docs/V1CSINodeList.md @@ -3,14 +3,15 @@ # V1CSINodeList CSINodeList is a collection of CSINode objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1CSINode>**](V1CSINode.md) | items is the list of CSINode | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1CSINode>**](V1CSINode.md) | items is the list of CSINode | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CSINodeSpec.md b/kubernetes/docs/V1CSINodeSpec.md index 556f6d6d35..9d9e089448 100644 --- a/kubernetes/docs/V1CSINodeSpec.md +++ b/kubernetes/docs/V1CSINodeSpec.md @@ -3,11 +3,12 @@ # V1CSINodeSpec CSINodeSpec holds information about the specification of all CSI drivers installed on a node + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**drivers** | [**List<V1CSINodeDriver>**](V1CSINodeDriver.md) | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**drivers** | [**List<V1CSINodeDriver>**](V1CSINodeDriver.md) | 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. | | diff --git a/kubernetes/docs/V1CSIPersistentVolumeSource.md b/kubernetes/docs/V1CSIPersistentVolumeSource.md index ab851acd78..52308779b2 100644 --- a/kubernetes/docs/V1CSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1CSIPersistentVolumeSource.md @@ -3,20 +3,21 @@ # V1CSIPersistentVolumeSource Represents storage that is managed by an external CSI volume driver (Beta feature) + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**controllerExpandSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**controllerPublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**driver** | **String** | driver is the name of the driver to use for this volume. Required. | -**fsType** | **String** | fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". | [optional] -**nodeExpandSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**nodePublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**nodeStageSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**readOnly** | **Boolean** | readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). | [optional] -**volumeAttributes** | **Map<String, String>** | volumeAttributes of the volume to publish. | [optional] -**volumeHandle** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**controllerExpandSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**controllerPublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**driver** | **String** | driver is the name of the driver to use for this volume. Required. | | +|**fsType** | **String** | fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". | [optional] | +|**nodeExpandSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**nodePublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**nodeStageSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**readOnly** | **Boolean** | readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). | [optional] | +|**volumeAttributes** | **Map<String, String>** | volumeAttributes of the volume to publish. | [optional] | +|**volumeHandle** | **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. | | diff --git a/kubernetes/docs/V1CSIStorageCapacity.md b/kubernetes/docs/V1CSIStorageCapacity.md index 0cd3b37300..134aff4a3a 100644 --- a/kubernetes/docs/V1CSIStorageCapacity.md +++ b/kubernetes/docs/V1CSIStorageCapacity.md @@ -3,17 +3,18 @@ # V1CSIStorageCapacity 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**capacity** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**maximumVolumeSize** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**nodeTopology** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**storageClassName** | **String** | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**capacity** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**maximumVolumeSize** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**nodeTopology** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**storageClassName** | **String** | 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. | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CSIStorageCapacityList.md b/kubernetes/docs/V1CSIStorageCapacityList.md index 3e93ba974d..360fb378d2 100644 --- a/kubernetes/docs/V1CSIStorageCapacityList.md +++ b/kubernetes/docs/V1CSIStorageCapacityList.md @@ -3,14 +3,15 @@ # V1CSIStorageCapacityList CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1CSIStorageCapacity>**](V1CSIStorageCapacity.md) | items is the list of CSIStorageCapacity objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1CSIStorageCapacity>**](V1CSIStorageCapacity.md) | items is the list of CSIStorageCapacity objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CSIVolumeSource.md b/kubernetes/docs/V1CSIVolumeSource.md index 70d4f2e5b4..cd64ed3398 100644 --- a/kubernetes/docs/V1CSIVolumeSource.md +++ b/kubernetes/docs/V1CSIVolumeSource.md @@ -3,15 +3,16 @@ # V1CSIVolumeSource Represents a source location of a volume to mount, managed by an external CSI driver + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**driver** | **String** | 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. | -**fsType** | **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. | [optional] -**nodePublishSecretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] -**readOnly** | **Boolean** | readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). | [optional] -**volumeAttributes** | **Map<String, String>** | volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**driver** | **String** | 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. | | +|**fsType** | **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. | [optional] | +|**nodePublishSecretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] | +|**readOnly** | **Boolean** | readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). | [optional] | +|**volumeAttributes** | **Map<String, String>** | volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. | [optional] | diff --git a/kubernetes/docs/V1Capabilities.md b/kubernetes/docs/V1Capabilities.md index 3ab05a8968..28bb092fca 100644 --- a/kubernetes/docs/V1Capabilities.md +++ b/kubernetes/docs/V1Capabilities.md @@ -3,12 +3,13 @@ # V1Capabilities Adds and removes POSIX capabilities from running containers. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**add** | **List<String>** | Added capabilities | [optional] -**drop** | **List<String>** | Removed capabilities | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**add** | **List<String>** | Added capabilities | [optional] | +|**drop** | **List<String>** | Removed capabilities | [optional] | diff --git a/kubernetes/docs/V1CephFSPersistentVolumeSource.md b/kubernetes/docs/V1CephFSPersistentVolumeSource.md index 6a12ff07e5..3fd0968803 100644 --- a/kubernetes/docs/V1CephFSPersistentVolumeSource.md +++ b/kubernetes/docs/V1CephFSPersistentVolumeSource.md @@ -3,16 +3,17 @@ # V1CephFSPersistentVolumeSource Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**monitors** | **List<String>** | monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it | -**path** | **String** | path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] -**readOnly** | **Boolean** | 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 | [optional] -**secretFile** | **String** | 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 | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**user** | **String** | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**monitors** | **List<String>** | monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it | | +|**path** | **String** | path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] | +|**readOnly** | **Boolean** | 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 | [optional] | +|**secretFile** | **String** | 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 | [optional] | +|**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**user** | **String** | 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 | [optional] | diff --git a/kubernetes/docs/V1CephFSVolumeSource.md b/kubernetes/docs/V1CephFSVolumeSource.md index a0f8f0e34b..09563fbe8a 100644 --- a/kubernetes/docs/V1CephFSVolumeSource.md +++ b/kubernetes/docs/V1CephFSVolumeSource.md @@ -3,16 +3,17 @@ # V1CephFSVolumeSource Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**monitors** | **List<String>** | monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it | -**path** | **String** | path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] -**readOnly** | **Boolean** | 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 | [optional] -**secretFile** | **String** | 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 | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] -**user** | **String** | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**monitors** | **List<String>** | monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it | | +|**path** | **String** | path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] | +|**readOnly** | **Boolean** | 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 | [optional] | +|**secretFile** | **String** | 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 | [optional] | +|**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] | +|**user** | **String** | 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 | [optional] | diff --git a/kubernetes/docs/V1CertificateSigningRequest.md b/kubernetes/docs/V1CertificateSigningRequest.md index 7c4a0d51b0..b9822ad361 100644 --- a/kubernetes/docs/V1CertificateSigningRequest.md +++ b/kubernetes/docs/V1CertificateSigningRequest.md @@ -3,15 +3,16 @@ # V1CertificateSigningRequest 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1CertificateSigningRequestSpec**](V1CertificateSigningRequestSpec.md) | | -**status** | [**V1CertificateSigningRequestStatus**](V1CertificateSigningRequestStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1CertificateSigningRequestSpec**](V1CertificateSigningRequestSpec.md) | | | +|**status** | [**V1CertificateSigningRequestStatus**](V1CertificateSigningRequestStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CertificateSigningRequestCondition.md b/kubernetes/docs/V1CertificateSigningRequestCondition.md index e5ac137ba7..51b5bf83b0 100644 --- a/kubernetes/docs/V1CertificateSigningRequestCondition.md +++ b/kubernetes/docs/V1CertificateSigningRequestCondition.md @@ -3,16 +3,17 @@ # V1CertificateSigningRequestCondition CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] -**lastUpdateTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastUpdateTime is the time of the last update to this condition | [optional] -**message** | **String** | message contains a human readable message with details about the request state | [optional] -**reason** | **String** | reason indicates a brief reason for the request state | [optional] -**status** | **String** | status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". | -**type** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | 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. | [optional] | +|**lastUpdateTime** | **OffsetDateTime** | lastUpdateTime is the time of the last update to this condition | [optional] | +|**message** | **String** | message contains a human readable message with details about the request state | [optional] | +|**reason** | **String** | reason indicates a brief reason for the request state | [optional] | +|**status** | **String** | status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". | | +|**type** | **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. | | diff --git a/kubernetes/docs/V1CertificateSigningRequestList.md b/kubernetes/docs/V1CertificateSigningRequestList.md index 32d6e2473c..db59cb364e 100644 --- a/kubernetes/docs/V1CertificateSigningRequestList.md +++ b/kubernetes/docs/V1CertificateSigningRequestList.md @@ -3,14 +3,15 @@ # V1CertificateSigningRequestList CertificateSigningRequestList is a collection of CertificateSigningRequest objects + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1CertificateSigningRequest>**](V1CertificateSigningRequest.md) | items is a collection of CertificateSigningRequest objects | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1CertificateSigningRequest>**](V1CertificateSigningRequest.md) | items is a collection of CertificateSigningRequest objects | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CertificateSigningRequestSpec.md b/kubernetes/docs/V1CertificateSigningRequestSpec.md index 5b84327efe..27574edfcd 100644 --- a/kubernetes/docs/V1CertificateSigningRequestSpec.md +++ b/kubernetes/docs/V1CertificateSigningRequestSpec.md @@ -3,18 +3,19 @@ # V1CertificateSigningRequestSpec CertificateSigningRequestSpec contains the certificate request. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expirationSeconds** | **Integer** | 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. | [optional] -**extra** | [**Map<String, List<String>>**](List.md) | extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. | [optional] -**groups** | **List<String>** | groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. | [optional] -**request** | **byte[]** | 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. | -**signerName** | **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. | -**uid** | **String** | uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. | [optional] -**usages** | **List<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\" | [optional] -**username** | **String** | username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expirationSeconds** | **Integer** | 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. | [optional] | +|**extra** | **Map<String, List<String>>** | extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. | [optional] | +|**groups** | **List<String>** | groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. | [optional] | +|**request** | **byte[]** | 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. | | +|**signerName** | **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. | | +|**uid** | **String** | uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. | [optional] | +|**usages** | **List<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\" | [optional] | +|**username** | **String** | username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. | [optional] | diff --git a/kubernetes/docs/V1CertificateSigningRequestStatus.md b/kubernetes/docs/V1CertificateSigningRequestStatus.md index 46d8ff8950..6c3fbef939 100644 --- a/kubernetes/docs/V1CertificateSigningRequestStatus.md +++ b/kubernetes/docs/V1CertificateSigningRequestStatus.md @@ -3,12 +3,13 @@ # V1CertificateSigningRequestStatus CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**certificate** | **byte[]** | 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----- ) | [optional] -**conditions** | [**List<V1CertificateSigningRequestCondition>**](V1CertificateSigningRequestCondition.md) | conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**certificate** | **byte[]** | 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----- ) | [optional] | +|**conditions** | [**List<V1CertificateSigningRequestCondition>**](V1CertificateSigningRequestCondition.md) | conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\". | [optional] | diff --git a/kubernetes/docs/V1CinderPersistentVolumeSource.md b/kubernetes/docs/V1CinderPersistentVolumeSource.md index 9dee059652..ced8ddf17e 100644 --- a/kubernetes/docs/V1CinderPersistentVolumeSource.md +++ b/kubernetes/docs/V1CinderPersistentVolumeSource.md @@ -3,14 +3,15 @@ # V1CinderPersistentVolumeSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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 | [optional] -**readOnly** | **Boolean** | 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 | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**volumeID** | **String** | volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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 | [optional] | +|**readOnly** | **Boolean** | 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 | [optional] | +|**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**volumeID** | **String** | volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md | | diff --git a/kubernetes/docs/V1CinderVolumeSource.md b/kubernetes/docs/V1CinderVolumeSource.md index aa3114f670..20dda06e6b 100644 --- a/kubernetes/docs/V1CinderVolumeSource.md +++ b/kubernetes/docs/V1CinderVolumeSource.md @@ -3,14 +3,15 @@ # V1CinderVolumeSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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 | [optional] -**readOnly** | **Boolean** | 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 | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] -**volumeID** | **String** | volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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 | [optional] | +|**readOnly** | **Boolean** | 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 | [optional] | +|**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] | +|**volumeID** | **String** | volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md | | diff --git a/kubernetes/docs/V1ClaimSource.md b/kubernetes/docs/V1ClaimSource.md index 6255ee212c..fe46f0d2a8 100644 --- a/kubernetes/docs/V1ClaimSource.md +++ b/kubernetes/docs/V1ClaimSource.md @@ -3,6 +3,7 @@ # V1ClaimSource 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. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1ClientIPConfig.md b/kubernetes/docs/V1ClientIPConfig.md index 91fe4cf694..94411b10d4 100644 --- a/kubernetes/docs/V1ClientIPConfig.md +++ b/kubernetes/docs/V1ClientIPConfig.md @@ -3,11 +3,12 @@ # V1ClientIPConfig ClientIPConfig represents the configurations of Client IP based session affinity. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timeoutSeconds** | **Integer** | 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). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**timeoutSeconds** | **Integer** | 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). | [optional] | diff --git a/kubernetes/docs/V1ClusterRole.md b/kubernetes/docs/V1ClusterRole.md index ec2c39159c..1843271ebc 100644 --- a/kubernetes/docs/V1ClusterRole.md +++ b/kubernetes/docs/V1ClusterRole.md @@ -3,15 +3,16 @@ # V1ClusterRole ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregationRule** | [**V1AggregationRule**](V1AggregationRule.md) | | [optional] -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**aggregationRule** | [**V1AggregationRule**](V1AggregationRule.md) | | [optional] | +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ClusterRoleBinding.md b/kubernetes/docs/V1ClusterRoleBinding.md index 66e6578de3..4216fe962c 100644 --- a/kubernetes/docs/V1ClusterRoleBinding.md +++ b/kubernetes/docs/V1ClusterRoleBinding.md @@ -3,15 +3,16 @@ # V1ClusterRoleBinding ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**roleRef** | [**V1RoleRef**](V1RoleRef.md) | | -**subjects** | [**List<V1Subject>**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**roleRef** | [**V1RoleRef**](V1RoleRef.md) | | | +|**subjects** | [**List<V1Subject>**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ClusterRoleBindingList.md b/kubernetes/docs/V1ClusterRoleBindingList.md index 6814fe0645..c1189a9701 100644 --- a/kubernetes/docs/V1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1ClusterRoleBindingList.md @@ -3,14 +3,15 @@ # V1ClusterRoleBindingList ClusterRoleBindingList is a collection of ClusterRoleBindings + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ClusterRoleBinding>**](V1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ClusterRoleBinding>**](V1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ClusterRoleList.md b/kubernetes/docs/V1ClusterRoleList.md index ad3d4a5b29..83e3f4ba71 100644 --- a/kubernetes/docs/V1ClusterRoleList.md +++ b/kubernetes/docs/V1ClusterRoleList.md @@ -3,14 +3,15 @@ # V1ClusterRoleList ClusterRoleList is a collection of ClusterRoles + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ClusterRole>**](V1ClusterRole.md) | Items is a list of ClusterRoles | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ClusterRole>**](V1ClusterRole.md) | Items is a list of ClusterRoles | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ComponentCondition.md b/kubernetes/docs/V1ComponentCondition.md index 7e2aa5224b..9b8f750e53 100644 --- a/kubernetes/docs/V1ComponentCondition.md +++ b/kubernetes/docs/V1ComponentCondition.md @@ -3,14 +3,15 @@ # V1ComponentCondition Information about the condition of a component. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **String** | Condition error code for a component. For example, a health check error code. | [optional] -**message** | **String** | Message about the condition for a component. For example, information about a health check. | [optional] -**status** | **String** | Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". | -**type** | **String** | Type of condition for a component. Valid value: \"Healthy\" | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Condition error code for a component. For example, a health check error code. | [optional] | +|**message** | **String** | Message about the condition for a component. For example, information about a health check. | [optional] | +|**status** | **String** | Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". | | +|**type** | **String** | Type of condition for a component. Valid value: \"Healthy\" | | diff --git a/kubernetes/docs/V1ComponentStatus.md b/kubernetes/docs/V1ComponentStatus.md index 781f8da5a1..c1bc2d4568 100644 --- a/kubernetes/docs/V1ComponentStatus.md +++ b/kubernetes/docs/V1ComponentStatus.md @@ -3,14 +3,15 @@ # V1ComponentStatus ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**conditions** | [**List<V1ComponentCondition>**](V1ComponentCondition.md) | List of component conditions observed | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**conditions** | [**List<V1ComponentCondition>**](V1ComponentCondition.md) | List of component conditions observed | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ComponentStatusList.md b/kubernetes/docs/V1ComponentStatusList.md index 6638c32a39..efdd86aa67 100644 --- a/kubernetes/docs/V1ComponentStatusList.md +++ b/kubernetes/docs/V1ComponentStatusList.md @@ -3,14 +3,15 @@ # V1ComponentStatusList Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ComponentStatus>**](V1ComponentStatus.md) | List of ComponentStatus objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ComponentStatus>**](V1ComponentStatus.md) | List of ComponentStatus objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1Condition.md b/kubernetes/docs/V1Condition.md index a04535318f..06558eed12 100644 --- a/kubernetes/docs/V1Condition.md +++ b/kubernetes/docs/V1Condition.md @@ -3,16 +3,17 @@ # V1Condition Condition contains details for one aspect of the current state of this API Resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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** | **String** | message is a human readable message indicating details about the transition. This may be an empty string. | -**observedGeneration** | **Long** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [optional] -**reason** | **String** | 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. | -**status** | **String** | status of the condition, one of True, False, Unknown. | -**type** | **String** | type of condition in CamelCase or in foo.example.com/CamelCase. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | 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** | **String** | message is a human readable message indicating details about the transition. This may be an empty string. | | +|**observedGeneration** | **Long** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [optional] | +|**reason** | **String** | 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. | | +|**status** | **String** | status of the condition, one of True, False, Unknown. | | +|**type** | **String** | type of condition in CamelCase or in foo.example.com/CamelCase. | | diff --git a/kubernetes/docs/V1ConfigMap.md b/kubernetes/docs/V1ConfigMap.md index 7e675ac395..b6ad750cb6 100644 --- a/kubernetes/docs/V1ConfigMap.md +++ b/kubernetes/docs/V1ConfigMap.md @@ -3,16 +3,17 @@ # V1ConfigMap ConfigMap holds configuration data for pods to consume. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**binaryData** | **Map<String, byte[]>** | BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. | [optional] -**data** | **Map<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. | [optional] -**immutable** | **Boolean** | Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**binaryData** | **Map<String, byte[]>** | BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. | [optional] | +|**data** | **Map<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. | [optional] | +|**immutable** | **Boolean** | Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md index 90a7052a62..9a8879acd9 100644 --- a/kubernetes/docs/V1ConfigMapEnvSource.md +++ b/kubernetes/docs/V1ConfigMapEnvSource.md @@ -3,12 +3,13 @@ # V1ConfigMapEnvSource ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap must be defined | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | +|**optional** | **Boolean** | Specify whether the ConfigMap must be defined | [optional] | diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index b77f8144ca..d5a9c8e718 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -3,13 +3,14 @@ # V1ConfigMapKeySelector Selects a key from a ConfigMap. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | The key to select. | -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap or its key must be defined | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | The key to select. | | +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | +|**optional** | **Boolean** | Specify whether the ConfigMap or its key must be defined | [optional] | diff --git a/kubernetes/docs/V1ConfigMapList.md b/kubernetes/docs/V1ConfigMapList.md index 7eb8251812..72998c8db5 100644 --- a/kubernetes/docs/V1ConfigMapList.md +++ b/kubernetes/docs/V1ConfigMapList.md @@ -3,14 +3,15 @@ # V1ConfigMapList ConfigMapList is a resource containing a list of ConfigMap objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ConfigMap>**](V1ConfigMap.md) | Items is the list of ConfigMaps. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ConfigMap>**](V1ConfigMap.md) | Items is the list of ConfigMaps. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ConfigMapNodeConfigSource.md b/kubernetes/docs/V1ConfigMapNodeConfigSource.md index 8f0ee18e0f..3d562efd54 100644 --- a/kubernetes/docs/V1ConfigMapNodeConfigSource.md +++ b/kubernetes/docs/V1ConfigMapNodeConfigSource.md @@ -3,15 +3,16 @@ # V1ConfigMapNodeConfigSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kubeletConfigKey** | **String** | KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. | -**name** | **String** | Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. | -**namespace** | **String** | Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. | -**resourceVersion** | **String** | ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. | [optional] -**uid** | **String** | UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**kubeletConfigKey** | **String** | KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. | | +|**name** | **String** | Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. | | +|**namespace** | **String** | Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. | | +|**resourceVersion** | **String** | ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. | [optional] | +|**uid** | **String** | UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. | [optional] | diff --git a/kubernetes/docs/V1ConfigMapProjection.md b/kubernetes/docs/V1ConfigMapProjection.md index bf2873dcb3..008bc8c1a6 100644 --- a/kubernetes/docs/V1ConfigMapProjection.md +++ b/kubernetes/docs/V1ConfigMapProjection.md @@ -3,13 +3,14 @@ # V1ConfigMapProjection 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | optional specify whether the ConfigMap or its keys must be defined | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] | +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | +|**optional** | **Boolean** | optional specify whether the ConfigMap or its keys must be defined | [optional] | diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index 6a50941ff9..87176500dd 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -3,14 +3,15 @@ # V1ConfigMapVolumeSource 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultMode** | **Integer** | defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | optional specify whether the ConfigMap or its keys must be defined | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultMode** | **Integer** | defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] | +|**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] | +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | +|**optional** | **Boolean** | optional specify whether the ConfigMap or its keys must be defined | [optional] | diff --git a/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md index e0f6773e5a..84f6a3585d 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -3,6 +3,7 @@ # V1Container A single application container that you want to run within a pod. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1ContainerImage.md b/kubernetes/docs/V1ContainerImage.md index 70a1974f45..1a137e5e43 100644 --- a/kubernetes/docs/V1ContainerImage.md +++ b/kubernetes/docs/V1ContainerImage.md @@ -3,12 +3,13 @@ # V1ContainerImage Describe a container image + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**names** | **List<String>** | 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\"] | [optional] -**sizeBytes** | **Long** | The size of the image in bytes. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**names** | **List<String>** | 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\"] | [optional] | +|**sizeBytes** | **Long** | The size of the image in bytes. | [optional] | diff --git a/kubernetes/docs/V1ContainerPort.md b/kubernetes/docs/V1ContainerPort.md index f6c56240fc..b1b12ff934 100644 --- a/kubernetes/docs/V1ContainerPort.md +++ b/kubernetes/docs/V1ContainerPort.md @@ -3,15 +3,16 @@ # V1ContainerPort ContainerPort represents a network port in a single container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerPort** | **Integer** | Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. | -**hostIP** | **String** | What host IP to bind the external port to. | [optional] -**hostPort** | **Integer** | 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. | [optional] -**name** | **String** | 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. | [optional] -**protocol** | **String** | Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containerPort** | **Integer** | Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. | | +|**hostIP** | **String** | What host IP to bind the external port to. | [optional] | +|**hostPort** | **Integer** | 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. | [optional] | +|**name** | **String** | 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. | [optional] | +|**protocol** | **String** | Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". | [optional] | diff --git a/kubernetes/docs/V1ContainerResizePolicy.md b/kubernetes/docs/V1ContainerResizePolicy.md index 0599ed9c2f..bca8349990 100644 --- a/kubernetes/docs/V1ContainerResizePolicy.md +++ b/kubernetes/docs/V1ContainerResizePolicy.md @@ -3,12 +3,13 @@ # V1ContainerResizePolicy ContainerResizePolicy represents resource resize policy for the container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resourceName** | **String** | Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. | -**restartPolicy** | **String** | Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resourceName** | **String** | Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. | | +|**restartPolicy** | **String** | Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. | | diff --git a/kubernetes/docs/V1ContainerState.md b/kubernetes/docs/V1ContainerState.md index 7f8d1b7fdc..e19b3a9598 100644 --- a/kubernetes/docs/V1ContainerState.md +++ b/kubernetes/docs/V1ContainerState.md @@ -3,13 +3,14 @@ # V1ContainerState 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**running** | [**V1ContainerStateRunning**](V1ContainerStateRunning.md) | | [optional] -**terminated** | [**V1ContainerStateTerminated**](V1ContainerStateTerminated.md) | | [optional] -**waiting** | [**V1ContainerStateWaiting**](V1ContainerStateWaiting.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**running** | [**V1ContainerStateRunning**](V1ContainerStateRunning.md) | | [optional] | +|**terminated** | [**V1ContainerStateTerminated**](V1ContainerStateTerminated.md) | | [optional] | +|**waiting** | [**V1ContainerStateWaiting**](V1ContainerStateWaiting.md) | | [optional] | diff --git a/kubernetes/docs/V1ContainerStateRunning.md b/kubernetes/docs/V1ContainerStateRunning.md index 87f0cf7380..e73fb4ad0d 100644 --- a/kubernetes/docs/V1ContainerStateRunning.md +++ b/kubernetes/docs/V1ContainerStateRunning.md @@ -3,11 +3,12 @@ # V1ContainerStateRunning ContainerStateRunning is a running state of a container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time at which the container was last (re-)started | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startedAt** | **OffsetDateTime** | Time at which the container was last (re-)started | [optional] | diff --git a/kubernetes/docs/V1ContainerStateTerminated.md b/kubernetes/docs/V1ContainerStateTerminated.md index 86028b6a5a..e98bb572d0 100644 --- a/kubernetes/docs/V1ContainerStateTerminated.md +++ b/kubernetes/docs/V1ContainerStateTerminated.md @@ -3,17 +3,18 @@ # V1ContainerStateTerminated ContainerStateTerminated is a terminated state of a container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerID** | **String** | Container's ID in the format '<type>://<container_id>' | [optional] -**exitCode** | **Integer** | Exit status from the last termination of the container | -**finishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time at which the container last terminated | [optional] -**message** | **String** | Message regarding the last termination of the container | [optional] -**reason** | **String** | (brief) reason from the last termination of the container | [optional] -**signal** | **Integer** | Signal from the last termination of the container | [optional] -**startedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time at which previous execution of the container started | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containerID** | **String** | Container's ID in the format '<type>://<container_id>' | [optional] | +|**exitCode** | **Integer** | Exit status from the last termination of the container | | +|**finishedAt** | **OffsetDateTime** | Time at which the container last terminated | [optional] | +|**message** | **String** | Message regarding the last termination of the container | [optional] | +|**reason** | **String** | (brief) reason from the last termination of the container | [optional] | +|**signal** | **Integer** | Signal from the last termination of the container | [optional] | +|**startedAt** | **OffsetDateTime** | Time at which previous execution of the container started | [optional] | diff --git a/kubernetes/docs/V1ContainerStateWaiting.md b/kubernetes/docs/V1ContainerStateWaiting.md index 91c9314bc6..46ee1a2f50 100644 --- a/kubernetes/docs/V1ContainerStateWaiting.md +++ b/kubernetes/docs/V1ContainerStateWaiting.md @@ -3,12 +3,13 @@ # V1ContainerStateWaiting ContainerStateWaiting is a waiting state of a container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | Message regarding why the container is not yet running. | [optional] -**reason** | **String** | (brief) reason the container is not yet running. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**message** | **String** | Message regarding why the container is not yet running. | [optional] | +|**reason** | **String** | (brief) reason the container is not yet running. | [optional] | diff --git a/kubernetes/docs/V1ContainerStatus.md b/kubernetes/docs/V1ContainerStatus.md index 181c0deb0e..55fa728b3b 100644 --- a/kubernetes/docs/V1ContainerStatus.md +++ b/kubernetes/docs/V1ContainerStatus.md @@ -3,21 +3,22 @@ # V1ContainerStatus ContainerStatus contains details for the current status of this container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allocatedResources** | [**Map<String, Quantity>**](Quantity.md) | 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. | [optional] -**containerID** | **String** | ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). | [optional] -**image** | **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. | -**imageID** | **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. | -**lastState** | [**V1ContainerState**](V1ContainerState.md) | | [optional] -**name** | **String** | 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. | -**ready** | **Boolean** | 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. | -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] -**restartCount** | **Integer** | 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. | -**started** | **Boolean** | 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. | [optional] -**state** | [**V1ContainerState**](V1ContainerState.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocatedResources** | **Map<String, Quantity>** | 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. | [optional] | +|**containerID** | **String** | ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). | [optional] | +|**image** | **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. | | +|**imageID** | **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. | | +|**lastState** | [**V1ContainerState**](V1ContainerState.md) | | [optional] | +|**name** | **String** | 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. | | +|**ready** | **Boolean** | 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. | | +|**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] | +|**restartCount** | **Integer** | 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. | | +|**started** | **Boolean** | 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. | [optional] | +|**state** | [**V1ContainerState**](V1ContainerState.md) | | [optional] | diff --git a/kubernetes/docs/V1ControllerRevision.md b/kubernetes/docs/V1ControllerRevision.md index af45c5822f..7b1963469c 100644 --- a/kubernetes/docs/V1ControllerRevision.md +++ b/kubernetes/docs/V1ControllerRevision.md @@ -3,15 +3,16 @@ # V1ControllerRevision 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**data** | [**Object**](.md) | Data is the serialized representation of the state. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**revision** | **Long** | Revision indicates the revision of the state represented by Data. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**data** | **Object** | Data is the serialized representation of the state. | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**revision** | **Long** | Revision indicates the revision of the state represented by Data. | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ControllerRevisionList.md b/kubernetes/docs/V1ControllerRevisionList.md index 8a4fbd8589..829690d629 100644 --- a/kubernetes/docs/V1ControllerRevisionList.md +++ b/kubernetes/docs/V1ControllerRevisionList.md @@ -3,14 +3,15 @@ # V1ControllerRevisionList ControllerRevisionList is a resource containing a list of ControllerRevision objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ControllerRevision>**](V1ControllerRevision.md) | Items is the list of ControllerRevisions | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ControllerRevision>**](V1ControllerRevision.md) | Items is the list of ControllerRevisions | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CronJob.md b/kubernetes/docs/V1CronJob.md index 6bfb204238..bc0eebde44 100644 --- a/kubernetes/docs/V1CronJob.md +++ b/kubernetes/docs/V1CronJob.md @@ -3,15 +3,16 @@ # V1CronJob CronJob represents the configuration of a single cron job. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1CronJobSpec**](V1CronJobSpec.md) | | [optional] -**status** | [**V1CronJobStatus**](V1CronJobStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1CronJobSpec**](V1CronJobSpec.md) | | [optional] | +|**status** | [**V1CronJobStatus**](V1CronJobStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CronJobList.md b/kubernetes/docs/V1CronJobList.md index a80437492c..c22319eafd 100644 --- a/kubernetes/docs/V1CronJobList.md +++ b/kubernetes/docs/V1CronJobList.md @@ -3,14 +3,15 @@ # V1CronJobList CronJobList is a collection of cron jobs. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1CronJob>**](V1CronJob.md) | items is the list of CronJobs. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1CronJob>**](V1CronJob.md) | items is the list of CronJobs. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CronJobSpec.md b/kubernetes/docs/V1CronJobSpec.md index 3ed743e764..4ff9dddc1e 100644 --- a/kubernetes/docs/V1CronJobSpec.md +++ b/kubernetes/docs/V1CronJobSpec.md @@ -3,18 +3,19 @@ # V1CronJobSpec CronJobSpec describes how the job execution will look like and when it will actually run. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**concurrencyPolicy** | **String** | 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 | [optional] -**failedJobsHistoryLimit** | **Integer** | The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. | [optional] -**jobTemplate** | [**V1JobTemplateSpec**](V1JobTemplateSpec.md) | | -**schedule** | **String** | The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | -**startingDeadlineSeconds** | **Long** | 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. | [optional] -**successfulJobsHistoryLimit** | **Integer** | The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. | [optional] -**suspend** | **Boolean** | This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. | [optional] -**timeZone** | **String** | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**concurrencyPolicy** | **String** | 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 | [optional] | +|**failedJobsHistoryLimit** | **Integer** | The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. | [optional] | +|**jobTemplate** | [**V1JobTemplateSpec**](V1JobTemplateSpec.md) | | | +|**schedule** | **String** | The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | | +|**startingDeadlineSeconds** | **Long** | 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. | [optional] | +|**successfulJobsHistoryLimit** | **Integer** | The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. | [optional] | +|**suspend** | **Boolean** | This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. | [optional] | +|**timeZone** | **String** | 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 | [optional] | diff --git a/kubernetes/docs/V1CronJobStatus.md b/kubernetes/docs/V1CronJobStatus.md index 14f73296d3..3eb0570b66 100644 --- a/kubernetes/docs/V1CronJobStatus.md +++ b/kubernetes/docs/V1CronJobStatus.md @@ -3,13 +3,14 @@ # V1CronJobStatus CronJobStatus represents the current state of a cron job. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | [**List<V1ObjectReference>**](V1ObjectReference.md) | A list of pointers to currently running jobs. | [optional] -**lastScheduleTime** | [**OffsetDateTime**](OffsetDateTime.md) | Information when was the last time the job was successfully scheduled. | [optional] -**lastSuccessfulTime** | [**OffsetDateTime**](OffsetDateTime.md) | Information when was the last time the job successfully completed. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | [**List<V1ObjectReference>**](V1ObjectReference.md) | A list of pointers to currently running jobs. | [optional] | +|**lastScheduleTime** | **OffsetDateTime** | Information when was the last time the job was successfully scheduled. | [optional] | +|**lastSuccessfulTime** | **OffsetDateTime** | Information when was the last time the job successfully completed. | [optional] | diff --git a/kubernetes/docs/V1CrossVersionObjectReference.md b/kubernetes/docs/V1CrossVersionObjectReference.md index 44d35e71d3..0d18a4bcb7 100644 --- a/kubernetes/docs/V1CrossVersionObjectReference.md +++ b/kubernetes/docs/V1CrossVersionObjectReference.md @@ -3,13 +3,14 @@ # V1CrossVersionObjectReference CrossVersionObjectReference contains enough information to let you identify the referred resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | apiVersion is the API version of the referent | [optional] -**kind** | **String** | kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | -**name** | **String** | name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | apiVersion is the API version of the referent | [optional] | +|**kind** | **String** | kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | | +|**name** | **String** | name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | | diff --git a/kubernetes/docs/V1CustomResourceColumnDefinition.md b/kubernetes/docs/V1CustomResourceColumnDefinition.md index 1cf6c8291e..9780e6c815 100644 --- a/kubernetes/docs/V1CustomResourceColumnDefinition.md +++ b/kubernetes/docs/V1CustomResourceColumnDefinition.md @@ -3,16 +3,17 @@ # V1CustomResourceColumnDefinition CustomResourceColumnDefinition specifies a column for server side printing. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | description is a human readable description of this column. | [optional] -**format** | **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. | [optional] -**jsonPath** | **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. | -**name** | **String** | name is a human readable name for the column. | -**priority** | **Integer** | 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. | [optional] -**type** | **String** | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**description** | **String** | description is a human readable description of this column. | [optional] | +|**format** | **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. | [optional] | +|**jsonPath** | **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. | | +|**name** | **String** | name is a human readable name for the column. | | +|**priority** | **Integer** | 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. | [optional] | +|**type** | **String** | 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. | | diff --git a/kubernetes/docs/V1CustomResourceConversion.md b/kubernetes/docs/V1CustomResourceConversion.md index 277e72df62..f67e50b579 100644 --- a/kubernetes/docs/V1CustomResourceConversion.md +++ b/kubernetes/docs/V1CustomResourceConversion.md @@ -3,12 +3,13 @@ # V1CustomResourceConversion CustomResourceConversion describes how to convert different versions of a CR. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**strategy** | **String** | 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. | -**webhook** | [**V1WebhookConversion**](V1WebhookConversion.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**strategy** | **String** | 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. | | +|**webhook** | [**V1WebhookConversion**](V1WebhookConversion.md) | | [optional] | diff --git a/kubernetes/docs/V1CustomResourceDefinition.md b/kubernetes/docs/V1CustomResourceDefinition.md index e2f0f3f595..03616a4aa7 100644 --- a/kubernetes/docs/V1CustomResourceDefinition.md +++ b/kubernetes/docs/V1CustomResourceDefinition.md @@ -3,15 +3,16 @@ # V1CustomResourceDefinition CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1CustomResourceDefinitionSpec**](V1CustomResourceDefinitionSpec.md) | | -**status** | [**V1CustomResourceDefinitionStatus**](V1CustomResourceDefinitionStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1CustomResourceDefinitionSpec**](V1CustomResourceDefinitionSpec.md) | | | +|**status** | [**V1CustomResourceDefinitionStatus**](V1CustomResourceDefinitionStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CustomResourceDefinitionCondition.md b/kubernetes/docs/V1CustomResourceDefinitionCondition.md index a8f2754eef..06b0cc78a0 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionCondition.md +++ b/kubernetes/docs/V1CustomResourceDefinitionCondition.md @@ -3,15 +3,16 @@ # V1CustomResourceDefinitionCondition CustomResourceDefinitionCondition contains details for the current condition of this pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime last time the condition transitioned from one status to another. | [optional] -**message** | **String** | message is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | reason is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | status is the status of the condition. Can be True, False, Unknown. | -**type** | **String** | type is the type of the condition. Types include Established, NamesAccepted and Terminating. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | message is a human-readable message indicating details about last transition. | [optional] | +|**reason** | **String** | reason is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] | +|**status** | **String** | status is the status of the condition. Can be True, False, Unknown. | | +|**type** | **String** | type is the type of the condition. Types include Established, NamesAccepted and Terminating. | | diff --git a/kubernetes/docs/V1CustomResourceDefinitionList.md b/kubernetes/docs/V1CustomResourceDefinitionList.md index 3b3181c388..7da78c1e18 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionList.md +++ b/kubernetes/docs/V1CustomResourceDefinitionList.md @@ -3,14 +3,15 @@ # V1CustomResourceDefinitionList CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1CustomResourceDefinition>**](V1CustomResourceDefinition.md) | items list individual CustomResourceDefinition objects | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1CustomResourceDefinition>**](V1CustomResourceDefinition.md) | items list individual CustomResourceDefinition objects | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CustomResourceDefinitionNames.md b/kubernetes/docs/V1CustomResourceDefinitionNames.md index cb8608ff4c..2232579b48 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionNames.md +++ b/kubernetes/docs/V1CustomResourceDefinitionNames.md @@ -3,16 +3,17 @@ # V1CustomResourceDefinitionNames CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**categories** | **List<String>** | 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`. | [optional] -**kind** | **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. | -**listKind** | **String** | listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\". | [optional] -**plural** | **String** | plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase. | -**shortNames** | **List<String>** | shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase. | [optional] -**singular** | **String** | singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**categories** | **List<String>** | 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`. | [optional] | +|**kind** | **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. | | +|**listKind** | **String** | listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\". | [optional] | +|**plural** | **String** | plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase. | | +|**shortNames** | **List<String>** | shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase. | [optional] | +|**singular** | **String** | singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. | [optional] | diff --git a/kubernetes/docs/V1CustomResourceDefinitionSpec.md b/kubernetes/docs/V1CustomResourceDefinitionSpec.md index 7b351d77e8..d84e829546 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionSpec.md +++ b/kubernetes/docs/V1CustomResourceDefinitionSpec.md @@ -3,16 +3,17 @@ # V1CustomResourceDefinitionSpec CustomResourceDefinitionSpec describes how a user wants their resource to appear + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conversion** | [**V1CustomResourceConversion**](V1CustomResourceConversion.md) | | [optional] -**group** | **String** | group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). | -**names** | [**V1CustomResourceDefinitionNames**](V1CustomResourceDefinitionNames.md) | | -**preserveUnknownFields** | **Boolean** | 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. | [optional] -**scope** | **String** | scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. | -**versions** | [**List<V1CustomResourceDefinitionVersion>**](V1CustomResourceDefinitionVersion.md) | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conversion** | [**V1CustomResourceConversion**](V1CustomResourceConversion.md) | | [optional] | +|**group** | **String** | group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). | | +|**names** | [**V1CustomResourceDefinitionNames**](V1CustomResourceDefinitionNames.md) | | | +|**preserveUnknownFields** | **Boolean** | 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. | [optional] | +|**scope** | **String** | scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. | | +|**versions** | [**List<V1CustomResourceDefinitionVersion>**](V1CustomResourceDefinitionVersion.md) | 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. | | diff --git a/kubernetes/docs/V1CustomResourceDefinitionStatus.md b/kubernetes/docs/V1CustomResourceDefinitionStatus.md index 2d021c2fc0..54825d9c9a 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionStatus.md +++ b/kubernetes/docs/V1CustomResourceDefinitionStatus.md @@ -3,13 +3,14 @@ # V1CustomResourceDefinitionStatus CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acceptedNames** | [**V1CustomResourceDefinitionNames**](V1CustomResourceDefinitionNames.md) | | [optional] -**conditions** | [**List<V1CustomResourceDefinitionCondition>**](V1CustomResourceDefinitionCondition.md) | conditions indicate state for particular aspects of a CustomResourceDefinition | [optional] -**storedVersions** | **List<String>** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**acceptedNames** | [**V1CustomResourceDefinitionNames**](V1CustomResourceDefinitionNames.md) | | [optional] | +|**conditions** | [**List<V1CustomResourceDefinitionCondition>**](V1CustomResourceDefinitionCondition.md) | conditions indicate state for particular aspects of a CustomResourceDefinition | [optional] | +|**storedVersions** | **List<String>** | 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. | [optional] | diff --git a/kubernetes/docs/V1CustomResourceDefinitionVersion.md b/kubernetes/docs/V1CustomResourceDefinitionVersion.md index b8865f0427..edb3bae023 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionVersion.md +++ b/kubernetes/docs/V1CustomResourceDefinitionVersion.md @@ -3,18 +3,19 @@ # V1CustomResourceDefinitionVersion CustomResourceDefinitionVersion describes a version for CRD. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additionalPrinterColumns** | [**List<V1CustomResourceColumnDefinition>**](V1CustomResourceColumnDefinition.md) | 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. | [optional] -**deprecated** | **Boolean** | 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. | [optional] -**deprecationWarning** | **String** | 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. | [optional] -**name** | **String** | name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true. | -**schema** | [**V1CustomResourceValidation**](V1CustomResourceValidation.md) | | [optional] -**served** | **Boolean** | served is a flag enabling/disabling this version from being served via REST APIs | -**storage** | **Boolean** | storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. | -**subresources** | [**V1CustomResourceSubresources**](V1CustomResourceSubresources.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**additionalPrinterColumns** | [**List<V1CustomResourceColumnDefinition>**](V1CustomResourceColumnDefinition.md) | 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. | [optional] | +|**deprecated** | **Boolean** | 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. | [optional] | +|**deprecationWarning** | **String** | 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. | [optional] | +|**name** | **String** | name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true. | | +|**schema** | [**V1CustomResourceValidation**](V1CustomResourceValidation.md) | | [optional] | +|**served** | **Boolean** | served is a flag enabling/disabling this version from being served via REST APIs | | +|**storage** | **Boolean** | storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. | | +|**subresources** | [**V1CustomResourceSubresources**](V1CustomResourceSubresources.md) | | [optional] | diff --git a/kubernetes/docs/V1CustomResourceSubresourceScale.md b/kubernetes/docs/V1CustomResourceSubresourceScale.md index b949a8dcef..37e47178d8 100644 --- a/kubernetes/docs/V1CustomResourceSubresourceScale.md +++ b/kubernetes/docs/V1CustomResourceSubresourceScale.md @@ -3,13 +3,14 @@ # V1CustomResourceSubresourceScale CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**labelSelectorPath** | **String** | 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. | [optional] -**specReplicasPath** | **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. | -**statusReplicasPath** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**labelSelectorPath** | **String** | 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. | [optional] | +|**specReplicasPath** | **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. | | +|**statusReplicasPath** | **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. | | diff --git a/kubernetes/docs/V1CustomResourceSubresources.md b/kubernetes/docs/V1CustomResourceSubresources.md index a41ac88f51..cfb0632488 100644 --- a/kubernetes/docs/V1CustomResourceSubresources.md +++ b/kubernetes/docs/V1CustomResourceSubresources.md @@ -3,12 +3,13 @@ # V1CustomResourceSubresources CustomResourceSubresources defines the status and scale subresources for CustomResources. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scale** | [**V1CustomResourceSubresourceScale**](V1CustomResourceSubresourceScale.md) | | [optional] -**status** | [**Object**](.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**scale** | [**V1CustomResourceSubresourceScale**](V1CustomResourceSubresourceScale.md) | | [optional] | +|**status** | **Object** | 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. | [optional] | diff --git a/kubernetes/docs/V1CustomResourceValidation.md b/kubernetes/docs/V1CustomResourceValidation.md index 50ee7f504a..bef6f1228e 100644 --- a/kubernetes/docs/V1CustomResourceValidation.md +++ b/kubernetes/docs/V1CustomResourceValidation.md @@ -3,11 +3,12 @@ # V1CustomResourceValidation CustomResourceValidation is a list of validation methods for CustomResources. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**openAPIV3Schema** | [**V1JSONSchemaProps**](V1JSONSchemaProps.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**openAPIV3Schema** | [**V1JSONSchemaProps**](V1JSONSchemaProps.md) | | [optional] | diff --git a/kubernetes/docs/V1DaemonEndpoint.md b/kubernetes/docs/V1DaemonEndpoint.md index 46bf91cf1b..3bb0a6f9e7 100644 --- a/kubernetes/docs/V1DaemonEndpoint.md +++ b/kubernetes/docs/V1DaemonEndpoint.md @@ -3,11 +3,12 @@ # V1DaemonEndpoint DaemonEndpoint contains information about a single Daemon endpoint. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**port** | **Integer** | Port number of the given endpoint. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**port** | **Integer** | Port number of the given endpoint. | | diff --git a/kubernetes/docs/V1DaemonSet.md b/kubernetes/docs/V1DaemonSet.md index ed2a3e426f..fc831384d6 100644 --- a/kubernetes/docs/V1DaemonSet.md +++ b/kubernetes/docs/V1DaemonSet.md @@ -3,15 +3,16 @@ # V1DaemonSet DaemonSet represents the configuration of a daemon set. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | [optional] -**status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | [optional] | +|**status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1DaemonSetCondition.md b/kubernetes/docs/V1DaemonSetCondition.md index 051022ecfc..1bd0c06c97 100644 --- a/kubernetes/docs/V1DaemonSetCondition.md +++ b/kubernetes/docs/V1DaemonSetCondition.md @@ -3,15 +3,16 @@ # V1DaemonSetCondition DaemonSetCondition describes the state of a DaemonSet at a certain point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of DaemonSet condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | A human readable message indicating details about the transition. | [optional] | +|**reason** | **String** | The reason for the condition's last transition. | [optional] | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of DaemonSet condition. | | diff --git a/kubernetes/docs/V1DaemonSetList.md b/kubernetes/docs/V1DaemonSetList.md index e6cc132129..2af2491631 100644 --- a/kubernetes/docs/V1DaemonSetList.md +++ b/kubernetes/docs/V1DaemonSetList.md @@ -3,14 +3,15 @@ # V1DaemonSetList DaemonSetList is a collection of daemon sets. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1DaemonSet>**](V1DaemonSet.md) | A list of daemon sets. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1DaemonSet>**](V1DaemonSet.md) | A list of daemon sets. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1DaemonSetSpec.md b/kubernetes/docs/V1DaemonSetSpec.md index 50d14d037d..c432fec00d 100644 --- a/kubernetes/docs/V1DaemonSetSpec.md +++ b/kubernetes/docs/V1DaemonSetSpec.md @@ -3,15 +3,16 @@ # V1DaemonSetSpec DaemonSetSpec is the specification of a daemon set. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Integer** | 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). | [optional] -**revisionHistoryLimit** | **Integer** | 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. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | -**updateStrategy** | [**V1DaemonSetUpdateStrategy**](V1DaemonSetUpdateStrategy.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minReadySeconds** | **Integer** | 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). | [optional] | +|**revisionHistoryLimit** | **Integer** | 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. | [optional] | +|**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | | +|**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | | +|**updateStrategy** | [**V1DaemonSetUpdateStrategy**](V1DaemonSetUpdateStrategy.md) | | [optional] | diff --git a/kubernetes/docs/V1DaemonSetStatus.md b/kubernetes/docs/V1DaemonSetStatus.md index 5960e9b436..6a29ea87c5 100644 --- a/kubernetes/docs/V1DaemonSetStatus.md +++ b/kubernetes/docs/V1DaemonSetStatus.md @@ -3,20 +3,21 @@ # V1DaemonSetStatus DaemonSetStatus represents the current status of a daemon set. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**collisionCount** | **Integer** | 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. | [optional] -**conditions** | [**List<V1DaemonSetCondition>**](V1DaemonSetCondition.md) | Represents the latest available observations of a DaemonSet's current state. | [optional] -**currentNumberScheduled** | **Integer** | 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/ | -**desiredNumberScheduled** | **Integer** | 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/ | -**numberAvailable** | **Integer** | 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) | [optional] -**numberMisscheduled** | **Integer** | 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/ | -**numberReady** | **Integer** | 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. | -**numberUnavailable** | **Integer** | 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) | [optional] -**observedGeneration** | **Long** | The most recent generation observed by the daemon set controller. | [optional] -**updatedNumberScheduled** | **Integer** | The total number of nodes that are running updated daemon pod | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**collisionCount** | **Integer** | 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. | [optional] | +|**conditions** | [**List<V1DaemonSetCondition>**](V1DaemonSetCondition.md) | Represents the latest available observations of a DaemonSet's current state. | [optional] | +|**currentNumberScheduled** | **Integer** | 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/ | | +|**desiredNumberScheduled** | **Integer** | 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/ | | +|**numberAvailable** | **Integer** | 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) | [optional] | +|**numberMisscheduled** | **Integer** | 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/ | | +|**numberReady** | **Integer** | 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. | | +|**numberUnavailable** | **Integer** | 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) | [optional] | +|**observedGeneration** | **Long** | The most recent generation observed by the daemon set controller. | [optional] | +|**updatedNumberScheduled** | **Integer** | The total number of nodes that are running updated daemon pod | [optional] | diff --git a/kubernetes/docs/V1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1DaemonSetUpdateStrategy.md index 1ea7f126ea..1525b84889 100644 --- a/kubernetes/docs/V1DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1DaemonSetUpdateStrategy.md @@ -3,12 +3,13 @@ # V1DaemonSetUpdateStrategy DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1RollingUpdateDaemonSet**](V1RollingUpdateDaemonSet.md) | | [optional] -**type** | **String** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**rollingUpdate** | [**V1RollingUpdateDaemonSet**](V1RollingUpdateDaemonSet.md) | | [optional] | +|**type** | **String** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. | [optional] | diff --git a/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md index 0e332b4eaf..cb0a419a64 100644 --- a/kubernetes/docs/V1DeleteOptions.md +++ b/kubernetes/docs/V1DeleteOptions.md @@ -3,17 +3,18 @@ # V1DeleteOptions DeleteOptions may be provided when deleting an API object. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**dryRun** | **List<String>** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] -**gracePeriodSeconds** | **Long** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**orphanDependents** | **Boolean** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] -**preconditions** | [**V1Preconditions**](V1Preconditions.md) | | [optional] -**propagationPolicy** | **String** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**dryRun** | **List<String>** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +|**gracePeriodSeconds** | **Long** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**orphanDependents** | **Boolean** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +|**preconditions** | [**V1Preconditions**](V1Preconditions.md) | | [optional] | +|**propagationPolicy** | **String** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | diff --git a/kubernetes/docs/V1Deployment.md b/kubernetes/docs/V1Deployment.md index 684c1ce945..0459f4f078 100644 --- a/kubernetes/docs/V1Deployment.md +++ b/kubernetes/docs/V1Deployment.md @@ -3,15 +3,16 @@ # V1Deployment Deployment enables declarative updates for Pods and ReplicaSets. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | [optional] -**status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | [optional] | +|**status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1DeploymentCondition.md b/kubernetes/docs/V1DeploymentCondition.md index a5dd276da1..f661103a0b 100644 --- a/kubernetes/docs/V1DeploymentCondition.md +++ b/kubernetes/docs/V1DeploymentCondition.md @@ -3,16 +3,17 @@ # V1DeploymentCondition DeploymentCondition describes the state of a deployment at a certain point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] -**lastUpdateTime** | [**OffsetDateTime**](OffsetDateTime.md) | The last time this condition was updated. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of deployment condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | +|**lastUpdateTime** | **OffsetDateTime** | The last time this condition was updated. | [optional] | +|**message** | **String** | A human readable message indicating details about the transition. | [optional] | +|**reason** | **String** | The reason for the condition's last transition. | [optional] | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of deployment condition. | | diff --git a/kubernetes/docs/V1DeploymentList.md b/kubernetes/docs/V1DeploymentList.md index 9e3e7e3c83..88dc461f19 100644 --- a/kubernetes/docs/V1DeploymentList.md +++ b/kubernetes/docs/V1DeploymentList.md @@ -3,14 +3,15 @@ # V1DeploymentList DeploymentList is a list of Deployments. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Deployment>**](V1Deployment.md) | Items is the list of Deployments. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Deployment>**](V1Deployment.md) | Items is the list of Deployments. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1DeploymentSpec.md b/kubernetes/docs/V1DeploymentSpec.md index 76a29641c4..b9f0514bbe 100644 --- a/kubernetes/docs/V1DeploymentSpec.md +++ b/kubernetes/docs/V1DeploymentSpec.md @@ -3,18 +3,19 @@ # V1DeploymentSpec DeploymentSpec is the specification of the desired behavior of the Deployment. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Integer** | 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) | [optional] -**paused** | **Boolean** | Indicates that the deployment is paused. | [optional] -**progressDeadlineSeconds** | **Integer** | 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. | [optional] -**replicas** | **Integer** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**revisionHistoryLimit** | **Integer** | 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. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | -**strategy** | [**V1DeploymentStrategy**](V1DeploymentStrategy.md) | | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minReadySeconds** | **Integer** | 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) | [optional] | +|**paused** | **Boolean** | Indicates that the deployment is paused. | [optional] | +|**progressDeadlineSeconds** | **Integer** | 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. | [optional] | +|**replicas** | **Integer** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] | +|**revisionHistoryLimit** | **Integer** | 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. | [optional] | +|**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | | +|**strategy** | [**V1DeploymentStrategy**](V1DeploymentStrategy.md) | | [optional] | +|**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | | diff --git a/kubernetes/docs/V1DeploymentStatus.md b/kubernetes/docs/V1DeploymentStatus.md index 4489b50743..0c57f8bd97 100644 --- a/kubernetes/docs/V1DeploymentStatus.md +++ b/kubernetes/docs/V1DeploymentStatus.md @@ -3,18 +3,19 @@ # V1DeploymentStatus DeploymentStatus is the most recently observed status of the Deployment. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] -**collisionCount** | **Integer** | 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. | [optional] -**conditions** | [**List<V1DeploymentCondition>**](V1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] -**observedGeneration** | **Long** | The generation observed by the deployment controller. | [optional] -**readyReplicas** | **Integer** | readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. | [optional] -**replicas** | **Integer** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] -**unavailableReplicas** | **Integer** | 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. | [optional] -**updatedReplicas** | **Integer** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] | +|**collisionCount** | **Integer** | 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. | [optional] | +|**conditions** | [**List<V1DeploymentCondition>**](V1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] | +|**observedGeneration** | **Long** | The generation observed by the deployment controller. | [optional] | +|**readyReplicas** | **Integer** | readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. | [optional] | +|**replicas** | **Integer** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] | +|**unavailableReplicas** | **Integer** | 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. | [optional] | +|**updatedReplicas** | **Integer** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] | diff --git a/kubernetes/docs/V1DeploymentStrategy.md b/kubernetes/docs/V1DeploymentStrategy.md index 063098ffb2..0017f995d7 100644 --- a/kubernetes/docs/V1DeploymentStrategy.md +++ b/kubernetes/docs/V1DeploymentStrategy.md @@ -3,12 +3,13 @@ # V1DeploymentStrategy DeploymentStrategy describes how to replace existing pods with new ones. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1RollingUpdateDeployment**](V1RollingUpdateDeployment.md) | | [optional] -**type** | **String** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**rollingUpdate** | [**V1RollingUpdateDeployment**](V1RollingUpdateDeployment.md) | | [optional] | +|**type** | **String** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] | diff --git a/kubernetes/docs/V1DownwardAPIProjection.md b/kubernetes/docs/V1DownwardAPIProjection.md index 6823bef9d5..bcb4c94469 100644 --- a/kubernetes/docs/V1DownwardAPIProjection.md +++ b/kubernetes/docs/V1DownwardAPIProjection.md @@ -3,11 +3,12 @@ # V1DownwardAPIProjection 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List<V1DownwardAPIVolumeFile>**](V1DownwardAPIVolumeFile.md) | Items is a list of DownwardAPIVolume file | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<V1DownwardAPIVolumeFile>**](V1DownwardAPIVolumeFile.md) | Items is a list of DownwardAPIVolume file | [optional] | diff --git a/kubernetes/docs/V1DownwardAPIVolumeFile.md b/kubernetes/docs/V1DownwardAPIVolumeFile.md index 19644cb22d..199937d3e4 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeFile.md +++ b/kubernetes/docs/V1DownwardAPIVolumeFile.md @@ -3,14 +3,15 @@ # V1DownwardAPIVolumeFile DownwardAPIVolumeFile represents information to create the file containing the pod field + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] -**mode** | **Integer** | Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**path** | **String** | 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 '..' | -**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] | +|**mode** | **Integer** | Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] | +|**path** | **String** | 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 '..' | | +|**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1DownwardAPIVolumeSource.md b/kubernetes/docs/V1DownwardAPIVolumeSource.md index e1f41b9d91..b3b29af2c1 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeSource.md +++ b/kubernetes/docs/V1DownwardAPIVolumeSource.md @@ -3,12 +3,13 @@ # V1DownwardAPIVolumeSource DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultMode** | **Integer** | Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**List<V1DownwardAPIVolumeFile>**](V1DownwardAPIVolumeFile.md) | Items is a list of downward API volume file | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultMode** | **Integer** | Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] | +|**items** | [**List<V1DownwardAPIVolumeFile>**](V1DownwardAPIVolumeFile.md) | Items is a list of downward API volume file | [optional] | diff --git a/kubernetes/docs/V1EmptyDirVolumeSource.md b/kubernetes/docs/V1EmptyDirVolumeSource.md index 3e5b19eb09..644a1ab733 100644 --- a/kubernetes/docs/V1EmptyDirVolumeSource.md +++ b/kubernetes/docs/V1EmptyDirVolumeSource.md @@ -3,12 +3,13 @@ # V1EmptyDirVolumeSource Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**medium** | **String** | medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] -**sizeLimit** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**medium** | **String** | medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] | +|**sizeLimit** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | diff --git a/kubernetes/docs/V1Endpoint.md b/kubernetes/docs/V1Endpoint.md index 18b004718b..e469d5cbda 100644 --- a/kubernetes/docs/V1Endpoint.md +++ b/kubernetes/docs/V1Endpoint.md @@ -3,18 +3,19 @@ # V1Endpoint Endpoint represents a single logical \"backend\" implementing a service. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | **List<String>** | 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 | -**conditions** | [**V1EndpointConditions**](V1EndpointConditions.md) | | [optional] -**deprecatedTopology** | **Map<String, String>** | deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. | [optional] -**hints** | [**V1EndpointHints**](V1EndpointHints.md) | | [optional] -**hostname** | **String** | hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. | [optional] -**nodeName** | **String** | nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. | [optional] -**targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**zone** | **String** | zone is the name of the Zone this endpoint exists in. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**addresses** | **List<String>** | 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 | | +|**conditions** | [**V1EndpointConditions**](V1EndpointConditions.md) | | [optional] | +|**deprecatedTopology** | **Map<String, String>** | deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. | [optional] | +|**hints** | [**V1EndpointHints**](V1EndpointHints.md) | | [optional] | +|**hostname** | **String** | hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. | [optional] | +|**nodeName** | **String** | nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. | [optional] | +|**targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] | +|**zone** | **String** | zone is the name of the Zone this endpoint exists in. | [optional] | diff --git a/kubernetes/docs/V1EndpointAddress.md b/kubernetes/docs/V1EndpointAddress.md index f1b859e4b4..1457e7ab22 100644 --- a/kubernetes/docs/V1EndpointAddress.md +++ b/kubernetes/docs/V1EndpointAddress.md @@ -3,14 +3,15 @@ # V1EndpointAddress EndpointAddress is a tuple that describes single IP address. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hostname** | **String** | The Hostname of this endpoint | [optional] -**ip** | **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). | -**nodeName** | **String** | Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. | [optional] -**targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hostname** | **String** | The Hostname of this endpoint | [optional] | +|**ip** | **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). | | +|**nodeName** | **String** | Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. | [optional] | +|**targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] | diff --git a/kubernetes/docs/V1EndpointConditions.md b/kubernetes/docs/V1EndpointConditions.md index adcad2fe0d..0d795e96ac 100644 --- a/kubernetes/docs/V1EndpointConditions.md +++ b/kubernetes/docs/V1EndpointConditions.md @@ -3,13 +3,14 @@ # V1EndpointConditions EndpointConditions represents the current condition of an endpoint. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ready** | **Boolean** | 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. | [optional] -**serving** | **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. | [optional] -**terminating** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ready** | **Boolean** | 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. | [optional] | +|**serving** | **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. | [optional] | +|**terminating** | **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. | [optional] | diff --git a/kubernetes/docs/V1EndpointHints.md b/kubernetes/docs/V1EndpointHints.md index 428f3b6fe7..2aa8c0ae7a 100644 --- a/kubernetes/docs/V1EndpointHints.md +++ b/kubernetes/docs/V1EndpointHints.md @@ -3,11 +3,12 @@ # V1EndpointHints EndpointHints provides hints describing how an endpoint should be consumed. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**forZones** | [**List<V1ForZone>**](V1ForZone.md) | forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**forZones** | [**List<V1ForZone>**](V1ForZone.md) | forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. | [optional] | diff --git a/kubernetes/docs/V1EndpointSlice.md b/kubernetes/docs/V1EndpointSlice.md index c1e40d8cb9..0563082c50 100644 --- a/kubernetes/docs/V1EndpointSlice.md +++ b/kubernetes/docs/V1EndpointSlice.md @@ -3,16 +3,17 @@ # V1EndpointSlice 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addressType** | **String** | addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. | -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**endpoints** | [**List<V1Endpoint>**](V1Endpoint.md) | endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**ports** | [**List<DiscoveryV1EndpointPort>**](DiscoveryV1EndpointPort.md) | ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**addressType** | **String** | addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. | | +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**endpoints** | [**List<V1Endpoint>**](V1Endpoint.md) | endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**ports** | [**List<DiscoveryV1EndpointPort>**](DiscoveryV1EndpointPort.md) | ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. 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. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1EndpointSliceList.md b/kubernetes/docs/V1EndpointSliceList.md index c6775ffbdb..6573ff6293 100644 --- a/kubernetes/docs/V1EndpointSliceList.md +++ b/kubernetes/docs/V1EndpointSliceList.md @@ -3,14 +3,15 @@ # V1EndpointSliceList EndpointSliceList represents a list of endpoint slices + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1EndpointSlice>**](V1EndpointSlice.md) | items is the list of endpoint slices | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1EndpointSlice>**](V1EndpointSlice.md) | items is the list of endpoint slices | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1EndpointSubset.md b/kubernetes/docs/V1EndpointSubset.md index 726eda4dea..34936ddf7b 100644 --- a/kubernetes/docs/V1EndpointSubset.md +++ b/kubernetes/docs/V1EndpointSubset.md @@ -3,13 +3,14 @@ # V1EndpointSubset 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 ] + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | [**List<V1EndpointAddress>**](V1EndpointAddress.md) | 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. | [optional] -**notReadyAddresses** | [**List<V1EndpointAddress>**](V1EndpointAddress.md) | 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. | [optional] -**ports** | [**List<CoreV1EndpointPort>**](CoreV1EndpointPort.md) | Port numbers available on the related IP addresses. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**addresses** | [**List<V1EndpointAddress>**](V1EndpointAddress.md) | 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. | [optional] | +|**notReadyAddresses** | [**List<V1EndpointAddress>**](V1EndpointAddress.md) | 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. | [optional] | +|**ports** | [**List<CoreV1EndpointPort>**](CoreV1EndpointPort.md) | Port numbers available on the related IP addresses. | [optional] | diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md index 76ef8fb631..7dc12aca94 100644 --- a/kubernetes/docs/V1Endpoints.md +++ b/kubernetes/docs/V1Endpoints.md @@ -3,14 +3,15 @@ # V1Endpoints 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}] }, ] + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**subsets** | [**List<V1EndpointSubset>**](V1EndpointSubset.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**subsets** | [**List<V1EndpointSubset>**](V1EndpointSubset.md) | 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. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index 9dd42ce277..1fbf60ed0f 100644 --- a/kubernetes/docs/V1EndpointsList.md +++ b/kubernetes/docs/V1EndpointsList.md @@ -3,14 +3,15 @@ # V1EndpointsList EndpointsList is a list of endpoints. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Endpoints>**](V1Endpoints.md) | List of endpoints. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Endpoints>**](V1Endpoints.md) | List of endpoints. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index 17e2e6888e..7f1c52056e 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -3,13 +3,14 @@ # V1EnvFromSource EnvFromSource represents the source of a set of ConfigMaps + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configMapRef** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | | [optional] -**prefix** | **String** | An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] -**secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**configMapRef** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | | [optional] | +|**prefix** | **String** | An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] | +|**secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] | diff --git a/kubernetes/docs/V1EnvVar.md b/kubernetes/docs/V1EnvVar.md index e625d3f18b..79a982c0c5 100644 --- a/kubernetes/docs/V1EnvVar.md +++ b/kubernetes/docs/V1EnvVar.md @@ -3,13 +3,14 @@ # V1EnvVar EnvVar represents an environment variable present in a Container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the environment variable. Must be a C_IDENTIFIER. | -**value** | **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 \"\". | [optional] -**valueFrom** | [**V1EnvVarSource**](V1EnvVarSource.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the environment variable. Must be a C_IDENTIFIER. | | +|**value** | **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 \"\". | [optional] | +|**valueFrom** | [**V1EnvVarSource**](V1EnvVarSource.md) | | [optional] | diff --git a/kubernetes/docs/V1EnvVarSource.md b/kubernetes/docs/V1EnvVarSource.md index 5821c92183..ddd859842f 100644 --- a/kubernetes/docs/V1EnvVarSource.md +++ b/kubernetes/docs/V1EnvVarSource.md @@ -3,14 +3,15 @@ # V1EnvVarSource EnvVarSource represents a source for the value of an EnvVar. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configMapKeyRef** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | | [optional] -**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] -**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] -**secretKeyRef** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**configMapKeyRef** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | | [optional] | +|**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] | +|**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] | +|**secretKeyRef** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | | [optional] | diff --git a/kubernetes/docs/V1EphemeralContainer.md b/kubernetes/docs/V1EphemeralContainer.md index 2d2f392b2e..53eddcbeec 100644 --- a/kubernetes/docs/V1EphemeralContainer.md +++ b/kubernetes/docs/V1EphemeralContainer.md @@ -3,6 +3,7 @@ # V1EphemeralContainer 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. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1EphemeralVolumeSource.md b/kubernetes/docs/V1EphemeralVolumeSource.md index 4818bb1ad3..98ab97b4a6 100644 --- a/kubernetes/docs/V1EphemeralVolumeSource.md +++ b/kubernetes/docs/V1EphemeralVolumeSource.md @@ -3,11 +3,12 @@ # V1EphemeralVolumeSource Represents an ephemeral volume that is handled by a normal storage driver. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volumeClaimTemplate** | [**V1PersistentVolumeClaimTemplate**](V1PersistentVolumeClaimTemplate.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**volumeClaimTemplate** | [**V1PersistentVolumeClaimTemplate**](V1PersistentVolumeClaimTemplate.md) | | [optional] | diff --git a/kubernetes/docs/V1EventSource.md b/kubernetes/docs/V1EventSource.md index 14916aae13..c61aa319ae 100644 --- a/kubernetes/docs/V1EventSource.md +++ b/kubernetes/docs/V1EventSource.md @@ -3,12 +3,13 @@ # V1EventSource EventSource contains information for an event. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**component** | **String** | Component from which the event is generated. | [optional] -**host** | **String** | Node name on which the event is generated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**component** | **String** | Component from which the event is generated. | [optional] | +|**host** | **String** | Node name on which the event is generated. | [optional] | diff --git a/kubernetes/docs/V1Eviction.md b/kubernetes/docs/V1Eviction.md index b497026a58..14a1757f83 100644 --- a/kubernetes/docs/V1Eviction.md +++ b/kubernetes/docs/V1Eviction.md @@ -3,14 +3,15 @@ # V1Eviction 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**deleteOptions** | [**V1DeleteOptions**](V1DeleteOptions.md) | | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**deleteOptions** | [**V1DeleteOptions**](V1DeleteOptions.md) | | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ExecAction.md b/kubernetes/docs/V1ExecAction.md index 9cd5d9bf26..9b86ed64e4 100644 --- a/kubernetes/docs/V1ExecAction.md +++ b/kubernetes/docs/V1ExecAction.md @@ -3,11 +3,12 @@ # V1ExecAction ExecAction describes a \"run in container\" action. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**command** | **List<String>** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**command** | **List<String>** | 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. | [optional] | diff --git a/kubernetes/docs/V1ExternalDocumentation.md b/kubernetes/docs/V1ExternalDocumentation.md index f5f6611fa7..c062e60d7d 100644 --- a/kubernetes/docs/V1ExternalDocumentation.md +++ b/kubernetes/docs/V1ExternalDocumentation.md @@ -3,12 +3,13 @@ # V1ExternalDocumentation ExternalDocumentation allows referencing an external resource for extended documentation. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | [optional] -**url** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**description** | **String** | | [optional] | +|**url** | **String** | | [optional] | diff --git a/kubernetes/docs/V1FCVolumeSource.md b/kubernetes/docs/V1FCVolumeSource.md index 5b387ffc68..1236458def 100644 --- a/kubernetes/docs/V1FCVolumeSource.md +++ b/kubernetes/docs/V1FCVolumeSource.md @@ -3,15 +3,16 @@ # V1FCVolumeSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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. | [optional] -**lun** | **Integer** | lun is Optional: FC target lun number | [optional] -**readOnly** | **Boolean** | readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**targetWWNs** | **List<String>** | targetWWNs is Optional: FC target worldwide names (WWNs) | [optional] -**wwids** | **List<String>** | wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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. | [optional] | +|**lun** | **Integer** | lun is Optional: FC target lun number | [optional] | +|**readOnly** | **Boolean** | readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**targetWWNs** | **List<String>** | targetWWNs is Optional: FC target worldwide names (WWNs) | [optional] | +|**wwids** | **List<String>** | wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. | [optional] | diff --git a/kubernetes/docs/V1FlexPersistentVolumeSource.md b/kubernetes/docs/V1FlexPersistentVolumeSource.md index df4f4515a9..023896c4ac 100644 --- a/kubernetes/docs/V1FlexPersistentVolumeSource.md +++ b/kubernetes/docs/V1FlexPersistentVolumeSource.md @@ -3,15 +3,16 @@ # V1FlexPersistentVolumeSource FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**driver** | **String** | driver is the name of the driver to use for this volume. | -**fsType** | **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. | [optional] -**options** | **Map<String, String>** | options is Optional: this field holds extra command options if any. | [optional] -**readOnly** | **Boolean** | readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**driver** | **String** | driver is the name of the driver to use for this volume. | | +|**fsType** | **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. | [optional] | +|**options** | **Map<String, String>** | options is Optional: this field holds extra command options if any. | [optional] | +|**readOnly** | **Boolean** | readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | diff --git a/kubernetes/docs/V1FlexVolumeSource.md b/kubernetes/docs/V1FlexVolumeSource.md index 1b2731e801..20b7f92739 100644 --- a/kubernetes/docs/V1FlexVolumeSource.md +++ b/kubernetes/docs/V1FlexVolumeSource.md @@ -3,15 +3,16 @@ # V1FlexVolumeSource FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**driver** | **String** | driver is the name of the driver to use for this volume. | -**fsType** | **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. | [optional] -**options** | **Map<String, String>** | options is Optional: this field holds extra command options if any. | [optional] -**readOnly** | **Boolean** | readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**driver** | **String** | driver is the name of the driver to use for this volume. | | +|**fsType** | **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. | [optional] | +|**options** | **Map<String, String>** | options is Optional: this field holds extra command options if any. | [optional] | +|**readOnly** | **Boolean** | readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] | diff --git a/kubernetes/docs/V1FlockerVolumeSource.md b/kubernetes/docs/V1FlockerVolumeSource.md index 7065ee45a8..bab4b1c380 100644 --- a/kubernetes/docs/V1FlockerVolumeSource.md +++ b/kubernetes/docs/V1FlockerVolumeSource.md @@ -3,12 +3,13 @@ # V1FlockerVolumeSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**datasetName** | **String** | datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated | [optional] -**datasetUUID** | **String** | datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**datasetName** | **String** | datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated | [optional] | +|**datasetUUID** | **String** | datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset | [optional] | diff --git a/kubernetes/docs/V1ForZone.md b/kubernetes/docs/V1ForZone.md index 2266b6d26b..bbc8cbd4bc 100644 --- a/kubernetes/docs/V1ForZone.md +++ b/kubernetes/docs/V1ForZone.md @@ -3,11 +3,12 @@ # V1ForZone ForZone provides information about which zones should consume this endpoint. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name represents the name of the zone. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name represents the name of the zone. | | diff --git a/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md b/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md index 3e98f70b6b..eb0085677e 100644 --- a/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md +++ b/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md @@ -3,14 +3,15 @@ # V1GCEPersistentDiskVolumeSource 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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 | [optional] -**partition** | **Integer** | 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 | [optional] -**pdName** | **String** | 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 | -**readOnly** | **Boolean** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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 | [optional] | +|**partition** | **Integer** | 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 | [optional] | +|**pdName** | **String** | 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 | | +|**readOnly** | **Boolean** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] | diff --git a/kubernetes/docs/V1GRPCAction.md b/kubernetes/docs/V1GRPCAction.md index 5965a7c443..d54ce342ee 100644 --- a/kubernetes/docs/V1GRPCAction.md +++ b/kubernetes/docs/V1GRPCAction.md @@ -2,12 +2,13 @@ # V1GRPCAction + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**port** | **Integer** | Port number of the gRPC service. Number must be in the range 1 to 65535. | -**service** | **String** | Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**port** | **Integer** | Port number of the gRPC service. Number must be in the range 1 to 65535. | | +|**service** | **String** | Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. | [optional] | diff --git a/kubernetes/docs/V1GitRepoVolumeSource.md b/kubernetes/docs/V1GitRepoVolumeSource.md index d5f92ddb64..0606bb229b 100644 --- a/kubernetes/docs/V1GitRepoVolumeSource.md +++ b/kubernetes/docs/V1GitRepoVolumeSource.md @@ -3,13 +3,14 @@ # V1GitRepoVolumeSource 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**directory** | **String** | 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. | [optional] -**repository** | **String** | repository is the URL | -**revision** | **String** | revision is the commit hash for the specified revision. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**directory** | **String** | 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. | [optional] | +|**repository** | **String** | repository is the URL | | +|**revision** | **String** | revision is the commit hash for the specified revision. | [optional] | diff --git a/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md b/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md index e2a5e3c955..07b39a40e3 100644 --- a/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md @@ -3,14 +3,15 @@ # V1GlusterfsPersistentVolumeSource Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**endpoints** | **String** | endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | -**endpointsNamespace** | **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 | [optional] -**path** | **String** | path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | -**readOnly** | **Boolean** | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**endpoints** | **String** | endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | +|**endpointsNamespace** | **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 | [optional] | +|**path** | **String** | path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | +|**readOnly** | **Boolean** | 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 | [optional] | diff --git a/kubernetes/docs/V1GlusterfsVolumeSource.md b/kubernetes/docs/V1GlusterfsVolumeSource.md index bd74138ad3..46fc1a64f3 100644 --- a/kubernetes/docs/V1GlusterfsVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsVolumeSource.md @@ -3,13 +3,14 @@ # V1GlusterfsVolumeSource Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**endpoints** | **String** | endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | -**path** | **String** | path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | -**readOnly** | **Boolean** | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**endpoints** | **String** | endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | +|**path** | **String** | path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | +|**readOnly** | **Boolean** | 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 | [optional] | diff --git a/kubernetes/docs/V1GroupVersionForDiscovery.md b/kubernetes/docs/V1GroupVersionForDiscovery.md index 7ad428f107..e47181589e 100644 --- a/kubernetes/docs/V1GroupVersionForDiscovery.md +++ b/kubernetes/docs/V1GroupVersionForDiscovery.md @@ -3,12 +3,13 @@ # V1GroupVersionForDiscovery GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**groupVersion** | **String** | groupVersion specifies the API group and version in the form \"group/version\" | -**version** | **String** | version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**groupVersion** | **String** | groupVersion specifies the API group and version in the form \"group/version\" | | +|**version** | **String** | version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. | | diff --git a/kubernetes/docs/V1HTTPGetAction.md b/kubernetes/docs/V1HTTPGetAction.md index 6b2109bf92..59b0fc099a 100644 --- a/kubernetes/docs/V1HTTPGetAction.md +++ b/kubernetes/docs/V1HTTPGetAction.md @@ -3,15 +3,16 @@ # V1HTTPGetAction HTTPGetAction describes an action based on HTTP Get requests. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**host** | **String** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] -**httpHeaders** | [**List<V1HTTPHeader>**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] -**path** | **String** | Path to access on the HTTP server. | [optional] -**port** | [**IntOrString**](IntOrString.md) | 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. | -**scheme** | **String** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**host** | **String** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] | +|**httpHeaders** | [**List<V1HTTPHeader>**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] | +|**path** | **String** | Path to access on the HTTP server. | [optional] | +|**port** | **IntOrString** | 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. | | +|**scheme** | **String** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] | diff --git a/kubernetes/docs/V1HTTPHeader.md b/kubernetes/docs/V1HTTPHeader.md index ca5b1124fb..2b51818c20 100644 --- a/kubernetes/docs/V1HTTPHeader.md +++ b/kubernetes/docs/V1HTTPHeader.md @@ -3,12 +3,13 @@ # V1HTTPHeader HTTPHeader describes a custom header to be used in HTTP probes + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. | -**value** | **String** | The header field value | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. | | +|**value** | **String** | The header field value | | diff --git a/kubernetes/docs/V1HTTPIngressPath.md b/kubernetes/docs/V1HTTPIngressPath.md index 35131222e6..3957808035 100644 --- a/kubernetes/docs/V1HTTPIngressPath.md +++ b/kubernetes/docs/V1HTTPIngressPath.md @@ -3,13 +3,14 @@ # V1HTTPIngressPath HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**backend** | [**V1IngressBackend**](V1IngressBackend.md) | | -**path** | **String** | 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\". | [optional] -**pathType** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**backend** | [**V1IngressBackend**](V1IngressBackend.md) | | | +|**path** | **String** | 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\". | [optional] | +|**pathType** | **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. | | diff --git a/kubernetes/docs/V1HTTPIngressRuleValue.md b/kubernetes/docs/V1HTTPIngressRuleValue.md index 3dfa207e05..5381246ba1 100644 --- a/kubernetes/docs/V1HTTPIngressRuleValue.md +++ b/kubernetes/docs/V1HTTPIngressRuleValue.md @@ -3,11 +3,12 @@ # V1HTTPIngressRuleValue 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**paths** | [**List<V1HTTPIngressPath>**](V1HTTPIngressPath.md) | paths is a collection of paths that map requests to backends. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**paths** | [**List<V1HTTPIngressPath>**](V1HTTPIngressPath.md) | paths is a collection of paths that map requests to backends. | | diff --git a/kubernetes/docs/V1HorizontalPodAutoscaler.md b/kubernetes/docs/V1HorizontalPodAutoscaler.md index f2e0118db9..6a7336c65c 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V1HorizontalPodAutoscaler.md @@ -3,15 +3,16 @@ # V1HorizontalPodAutoscaler configuration of a horizontal pod autoscaler. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | | [optional] -**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | | [optional] | +|**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerList.md b/kubernetes/docs/V1HorizontalPodAutoscalerList.md index cfc3902678..959c5d794e 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerList.md @@ -3,14 +3,15 @@ # V1HorizontalPodAutoscalerList list of horizontal pod autoscaler objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1HorizontalPodAutoscaler>**](V1HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1HorizontalPodAutoscaler>**](V1HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md index bed0bf8dae..1c6af3e5ec 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md @@ -3,14 +3,15 @@ # V1HorizontalPodAutoscalerSpec specification of a horizontal pod autoscaler. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxReplicas** | **Integer** | maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. | -**minReplicas** | **Integer** | 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. | [optional] -**scaleTargetRef** | [**V1CrossVersionObjectReference**](V1CrossVersionObjectReference.md) | | -**targetCPUUtilizationPercentage** | **Integer** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**maxReplicas** | **Integer** | maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. | | +|**minReplicas** | **Integer** | 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. | [optional] | +|**scaleTargetRef** | [**V1CrossVersionObjectReference**](V1CrossVersionObjectReference.md) | | | +|**targetCPUUtilizationPercentage** | **Integer** | 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. | [optional] | diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md index 2d291c6414..87fc42868a 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md @@ -3,15 +3,16 @@ # V1HorizontalPodAutoscalerStatus current status of a horizontal pod autoscaler + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentCPUUtilizationPercentage** | **Integer** | 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. | [optional] -**currentReplicas** | **Integer** | currentReplicas is the current number of replicas of pods managed by this autoscaler. | -**desiredReplicas** | **Integer** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler. | -**lastScaleTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] -**observedGeneration** | **Long** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**currentCPUUtilizationPercentage** | **Integer** | 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. | [optional] | +|**currentReplicas** | **Integer** | currentReplicas is the current number of replicas of pods managed by this autoscaler. | | +|**desiredReplicas** | **Integer** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler. | | +|**lastScaleTime** | **OffsetDateTime** | 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. | [optional] | +|**observedGeneration** | **Long** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] | diff --git a/kubernetes/docs/V1HostAlias.md b/kubernetes/docs/V1HostAlias.md index 84588c9690..fc3f59a5ea 100644 --- a/kubernetes/docs/V1HostAlias.md +++ b/kubernetes/docs/V1HostAlias.md @@ -3,12 +3,13 @@ # V1HostAlias HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hostnames** | **List<String>** | Hostnames for the above IP address. | [optional] -**ip** | **String** | IP address of the host file entry. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hostnames** | **List<String>** | Hostnames for the above IP address. | [optional] | +|**ip** | **String** | IP address of the host file entry. | [optional] | diff --git a/kubernetes/docs/V1HostPathVolumeSource.md b/kubernetes/docs/V1HostPathVolumeSource.md index f52c7e6ef3..c33637450d 100644 --- a/kubernetes/docs/V1HostPathVolumeSource.md +++ b/kubernetes/docs/V1HostPathVolumeSource.md @@ -3,12 +3,13 @@ # V1HostPathVolumeSource Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **String** | 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 for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | 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 for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | [optional] | diff --git a/kubernetes/docs/V1IPBlock.md b/kubernetes/docs/V1IPBlock.md index cd76b233dd..14ffb6a7f1 100644 --- a/kubernetes/docs/V1IPBlock.md +++ b/kubernetes/docs/V1IPBlock.md @@ -3,12 +3,13 @@ # V1IPBlock 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cidr** | **String** | cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" | -**except** | **List<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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cidr** | **String** | cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" | | +|**except** | **List<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 | [optional] | diff --git a/kubernetes/docs/V1ISCSIPersistentVolumeSource.md b/kubernetes/docs/V1ISCSIPersistentVolumeSource.md index e8c5a4f37c..8e971b39ba 100644 --- a/kubernetes/docs/V1ISCSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1ISCSIPersistentVolumeSource.md @@ -3,21 +3,22 @@ # V1ISCSIPersistentVolumeSource ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**chapAuthDiscovery** | **Boolean** | chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication | [optional] -**chapAuthSession** | **Boolean** | chapAuthSession defines whether support iSCSI Session CHAP authentication | [optional] -**fsType** | **String** | 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 | [optional] -**initiatorName** | **String** | initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. | [optional] -**iqn** | **String** | iqn is Target iSCSI Qualified Name. | -**iscsiInterface** | **String** | iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). | [optional] -**lun** | **Integer** | lun is iSCSI Target Lun number. | -**portals** | **List<String>** | 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). | [optional] -**readOnly** | **Boolean** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**targetPortal** | **String** | 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). | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**chapAuthDiscovery** | **Boolean** | chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication | [optional] | +|**chapAuthSession** | **Boolean** | chapAuthSession defines whether support iSCSI Session CHAP authentication | [optional] | +|**fsType** | **String** | 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 | [optional] | +|**initiatorName** | **String** | initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. | [optional] | +|**iqn** | **String** | iqn is Target iSCSI Qualified Name. | | +|**iscsiInterface** | **String** | iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). | [optional] | +|**lun** | **Integer** | lun is iSCSI Target Lun number. | | +|**portals** | **List<String>** | 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). | [optional] | +|**readOnly** | **Boolean** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] | +|**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**targetPortal** | **String** | 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). | | diff --git a/kubernetes/docs/V1ISCSIVolumeSource.md b/kubernetes/docs/V1ISCSIVolumeSource.md index 3b8f997b59..9d5fb652cc 100644 --- a/kubernetes/docs/V1ISCSIVolumeSource.md +++ b/kubernetes/docs/V1ISCSIVolumeSource.md @@ -3,21 +3,22 @@ # V1ISCSIVolumeSource Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**chapAuthDiscovery** | **Boolean** | chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication | [optional] -**chapAuthSession** | **Boolean** | chapAuthSession defines whether support iSCSI Session CHAP authentication | [optional] -**fsType** | **String** | 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 | [optional] -**initiatorName** | **String** | initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. | [optional] -**iqn** | **String** | iqn is the target iSCSI Qualified Name. | -**iscsiInterface** | **String** | iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). | [optional] -**lun** | **Integer** | lun represents iSCSI Target Lun number. | -**portals** | **List<String>** | 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). | [optional] -**readOnly** | **Boolean** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] -**targetPortal** | **String** | 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). | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**chapAuthDiscovery** | **Boolean** | chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication | [optional] | +|**chapAuthSession** | **Boolean** | chapAuthSession defines whether support iSCSI Session CHAP authentication | [optional] | +|**fsType** | **String** | 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 | [optional] | +|**initiatorName** | **String** | initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. | [optional] | +|**iqn** | **String** | iqn is the target iSCSI Qualified Name. | | +|**iscsiInterface** | **String** | iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). | [optional] | +|**lun** | **Integer** | lun represents iSCSI Target Lun number. | | +|**portals** | **List<String>** | 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). | [optional] | +|**readOnly** | **Boolean** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] | +|**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] | +|**targetPortal** | **String** | 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). | | diff --git a/kubernetes/docs/V1Ingress.md b/kubernetes/docs/V1Ingress.md index cacea84491..525b528025 100644 --- a/kubernetes/docs/V1Ingress.md +++ b/kubernetes/docs/V1Ingress.md @@ -3,15 +3,16 @@ # V1Ingress 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1IngressSpec**](V1IngressSpec.md) | | [optional] -**status** | [**V1IngressStatus**](V1IngressStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1IngressSpec**](V1IngressSpec.md) | | [optional] | +|**status** | [**V1IngressStatus**](V1IngressStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1IngressBackend.md b/kubernetes/docs/V1IngressBackend.md index 60363a28e8..f09b91011b 100644 --- a/kubernetes/docs/V1IngressBackend.md +++ b/kubernetes/docs/V1IngressBackend.md @@ -3,12 +3,13 @@ # V1IngressBackend IngressBackend describes all endpoints for a given service and port. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | [optional] -**service** | [**V1IngressServiceBackend**](V1IngressServiceBackend.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resource** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | [optional] | +|**service** | [**V1IngressServiceBackend**](V1IngressServiceBackend.md) | | [optional] | diff --git a/kubernetes/docs/V1IngressClass.md b/kubernetes/docs/V1IngressClass.md index 58bf59a12c..31fa64f6c9 100644 --- a/kubernetes/docs/V1IngressClass.md +++ b/kubernetes/docs/V1IngressClass.md @@ -3,14 +3,15 @@ # V1IngressClass 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1IngressClassSpec**](V1IngressClassSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1IngressClassSpec**](V1IngressClassSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1IngressClassList.md b/kubernetes/docs/V1IngressClassList.md index 615be78abc..d53aea0fc5 100644 --- a/kubernetes/docs/V1IngressClassList.md +++ b/kubernetes/docs/V1IngressClassList.md @@ -3,14 +3,15 @@ # V1IngressClassList IngressClassList is a collection of IngressClasses. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1IngressClass>**](V1IngressClass.md) | items is the list of IngressClasses. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1IngressClass>**](V1IngressClass.md) | items is the list of IngressClasses. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1IngressClassParametersReference.md b/kubernetes/docs/V1IngressClassParametersReference.md index 95887bbe5e..e7d9492942 100644 --- a/kubernetes/docs/V1IngressClassParametersReference.md +++ b/kubernetes/docs/V1IngressClassParametersReference.md @@ -3,15 +3,16 @@ # V1IngressClassParametersReference IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | 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. | [optional] -**kind** | **String** | kind is the type of resource being referenced. | -**name** | **String** | name is the name of resource being referenced. | -**namespace** | **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\". | [optional] -**scope** | **String** | scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | 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. | [optional] | +|**kind** | **String** | kind is the type of resource being referenced. | | +|**name** | **String** | name is the name of resource being referenced. | | +|**namespace** | **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\". | [optional] | +|**scope** | **String** | scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\". | [optional] | diff --git a/kubernetes/docs/V1IngressClassSpec.md b/kubernetes/docs/V1IngressClassSpec.md index 32bff9efaa..148496ccc1 100644 --- a/kubernetes/docs/V1IngressClassSpec.md +++ b/kubernetes/docs/V1IngressClassSpec.md @@ -3,12 +3,13 @@ # V1IngressClassSpec IngressClassSpec provides information about the class of an Ingress. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**controller** | **String** | 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. | [optional] -**parameters** | [**V1IngressClassParametersReference**](V1IngressClassParametersReference.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**controller** | **String** | 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. | [optional] | +|**parameters** | [**V1IngressClassParametersReference**](V1IngressClassParametersReference.md) | | [optional] | diff --git a/kubernetes/docs/V1IngressList.md b/kubernetes/docs/V1IngressList.md index 21c363ab4f..1a4c8de092 100644 --- a/kubernetes/docs/V1IngressList.md +++ b/kubernetes/docs/V1IngressList.md @@ -3,14 +3,15 @@ # V1IngressList IngressList is a collection of Ingress. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Ingress>**](V1Ingress.md) | items is the list of Ingress. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Ingress>**](V1Ingress.md) | items is the list of Ingress. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1IngressLoadBalancerIngress.md b/kubernetes/docs/V1IngressLoadBalancerIngress.md index ff0b09964b..b784cf8bda 100644 --- a/kubernetes/docs/V1IngressLoadBalancerIngress.md +++ b/kubernetes/docs/V1IngressLoadBalancerIngress.md @@ -3,13 +3,14 @@ # V1IngressLoadBalancerIngress IngressLoadBalancerIngress represents the status of a load-balancer ingress point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hostname** | **String** | hostname is set for load-balancer ingress points that are DNS based. | [optional] -**ip** | **String** | ip is set for load-balancer ingress points that are IP based. | [optional] -**ports** | [**List<V1IngressPortStatus>**](V1IngressPortStatus.md) | ports provides information about the ports exposed by this LoadBalancer. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hostname** | **String** | hostname is set for load-balancer ingress points that are DNS based. | [optional] | +|**ip** | **String** | ip is set for load-balancer ingress points that are IP based. | [optional] | +|**ports** | [**List<V1IngressPortStatus>**](V1IngressPortStatus.md) | ports provides information about the ports exposed by this LoadBalancer. | [optional] | diff --git a/kubernetes/docs/V1IngressLoadBalancerStatus.md b/kubernetes/docs/V1IngressLoadBalancerStatus.md index f17404fc0c..c42f807034 100644 --- a/kubernetes/docs/V1IngressLoadBalancerStatus.md +++ b/kubernetes/docs/V1IngressLoadBalancerStatus.md @@ -3,11 +3,12 @@ # V1IngressLoadBalancerStatus IngressLoadBalancerStatus represents the status of a load-balancer. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ingress** | [**List<V1IngressLoadBalancerIngress>**](V1IngressLoadBalancerIngress.md) | ingress is a list containing ingress points for the load-balancer. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ingress** | [**List<V1IngressLoadBalancerIngress>**](V1IngressLoadBalancerIngress.md) | ingress is a list containing ingress points for the load-balancer. | [optional] | diff --git a/kubernetes/docs/V1IngressPortStatus.md b/kubernetes/docs/V1IngressPortStatus.md index 5c2b1b2186..28d6469e24 100644 --- a/kubernetes/docs/V1IngressPortStatus.md +++ b/kubernetes/docs/V1IngressPortStatus.md @@ -3,13 +3,14 @@ # V1IngressPortStatus IngressPortStatus represents the error condition of a service port + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **String** | 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. | [optional] -**port** | **Integer** | port is the port number of the ingress port. | -**protocol** | **String** | protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\" | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | 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. | [optional] | +|**port** | **Integer** | port is the port number of the ingress port. | | +|**protocol** | **String** | protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\" | | diff --git a/kubernetes/docs/V1IngressRule.md b/kubernetes/docs/V1IngressRule.md index 2d87f3c89a..1fb03aea57 100644 --- a/kubernetes/docs/V1IngressRule.md +++ b/kubernetes/docs/V1IngressRule.md @@ -3,12 +3,13 @@ # V1IngressRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**host** | **String** | 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. | [optional] -**http** | [**V1HTTPIngressRuleValue**](V1HTTPIngressRuleValue.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**host** | **String** | 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. | [optional] | +|**http** | [**V1HTTPIngressRuleValue**](V1HTTPIngressRuleValue.md) | | [optional] | diff --git a/kubernetes/docs/V1IngressServiceBackend.md b/kubernetes/docs/V1IngressServiceBackend.md index 2695442582..9a20590f23 100644 --- a/kubernetes/docs/V1IngressServiceBackend.md +++ b/kubernetes/docs/V1IngressServiceBackend.md @@ -3,12 +3,13 @@ # V1IngressServiceBackend IngressServiceBackend references a Kubernetes Service as a Backend. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name is the referenced service. The service must exist in the same namespace as the Ingress object. | -**port** | [**V1ServiceBackendPort**](V1ServiceBackendPort.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name is the referenced service. The service must exist in the same namespace as the Ingress object. | | +|**port** | [**V1ServiceBackendPort**](V1ServiceBackendPort.md) | | [optional] | diff --git a/kubernetes/docs/V1IngressSpec.md b/kubernetes/docs/V1IngressSpec.md index 7618dca043..de23f8b391 100644 --- a/kubernetes/docs/V1IngressSpec.md +++ b/kubernetes/docs/V1IngressSpec.md @@ -3,14 +3,15 @@ # V1IngressSpec IngressSpec describes the Ingress the user wishes to exist. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultBackend** | [**V1IngressBackend**](V1IngressBackend.md) | | [optional] -**ingressClassName** | **String** | 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. | [optional] -**rules** | [**List<V1IngressRule>**](V1IngressRule.md) | 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. | [optional] -**tls** | [**List<V1IngressTLS>**](V1IngressTLS.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultBackend** | [**V1IngressBackend**](V1IngressBackend.md) | | [optional] | +|**ingressClassName** | **String** | 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. | [optional] | +|**rules** | [**List<V1IngressRule>**](V1IngressRule.md) | 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. | [optional] | +|**tls** | [**List<V1IngressTLS>**](V1IngressTLS.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1IngressStatus.md b/kubernetes/docs/V1IngressStatus.md index 0bfca03f55..4b36acde80 100644 --- a/kubernetes/docs/V1IngressStatus.md +++ b/kubernetes/docs/V1IngressStatus.md @@ -3,11 +3,12 @@ # V1IngressStatus IngressStatus describe the current state of the Ingress. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loadBalancer** | [**V1IngressLoadBalancerStatus**](V1IngressLoadBalancerStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**loadBalancer** | [**V1IngressLoadBalancerStatus**](V1IngressLoadBalancerStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1IngressTLS.md b/kubernetes/docs/V1IngressTLS.md index 6fea55e817..e2d6132556 100644 --- a/kubernetes/docs/V1IngressTLS.md +++ b/kubernetes/docs/V1IngressTLS.md @@ -3,12 +3,13 @@ # V1IngressTLS IngressTLS describes the transport layer security associated with an ingress. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hosts** | **List<String>** | 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. | [optional] -**secretName** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hosts** | **List<String>** | 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. | [optional] | +|**secretName** | **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. | [optional] | diff --git a/kubernetes/docs/V1JSONSchemaProps.md b/kubernetes/docs/V1JSONSchemaProps.md index 3e414f63ac..2e95694616 100644 --- a/kubernetes/docs/V1JSONSchemaProps.md +++ b/kubernetes/docs/V1JSONSchemaProps.md @@ -3,54 +3,55 @@ # V1JSONSchemaProps JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**$ref** | **String** | | [optional] -**$schema** | **String** | | [optional] -**additionalItems** | [**Object**](.md) | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] -**additionalProperties** | [**Object**](.md) | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] -**allOf** | [**List<V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] -**anyOf** | [**List<V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] -**_default** | [**Object**](.md) | 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. | [optional] -**definitions** | [**Map<String, V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] -**dependencies** | **Map<String, Object>** | | [optional] -**description** | **String** | | [optional] -**_enum** | **List<Object>** | | [optional] -**example** | [**Object**](.md) | JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. | [optional] -**exclusiveMaximum** | **Boolean** | | [optional] -**exclusiveMinimum** | **Boolean** | | [optional] -**externalDocs** | [**V1ExternalDocumentation**](V1ExternalDocumentation.md) | | [optional] -**format** | **String** | 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. | [optional] -**id** | **String** | | [optional] -**items** | [**Object**](.md) | JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. | [optional] -**maxItems** | **Long** | | [optional] -**maxLength** | **Long** | | [optional] -**maxProperties** | **Long** | | [optional] -**maximum** | **Double** | | [optional] -**minItems** | **Long** | | [optional] -**minLength** | **Long** | | [optional] -**minProperties** | **Long** | | [optional] -**minimum** | **Double** | | [optional] -**multipleOf** | **Double** | | [optional] -**not** | [**V1JSONSchemaProps**](V1JSONSchemaProps.md) | | [optional] -**nullable** | **Boolean** | | [optional] -**oneOf** | [**List<V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] -**pattern** | **String** | | [optional] -**patternProperties** | [**Map<String, V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] -**properties** | [**Map<String, V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] -**required** | **List<String>** | | [optional] -**title** | **String** | | [optional] -**type** | **String** | | [optional] -**uniqueItems** | **Boolean** | | [optional] -**xKubernetesEmbeddedResource** | **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). | [optional] -**xKubernetesIntOrString** | **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 | [optional] -**xKubernetesListMapKeys** | **List<String>** | 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. | [optional] -**xKubernetesListType** | **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. | [optional] -**xKubernetesMapType** | **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. | [optional] -**xKubernetesPreserveUnknownFields** | **Boolean** | 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. | [optional] -**xKubernetesValidations** | [**List<V1ValidationRule>**](V1ValidationRule.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**$ref** | **String** | | [optional] | +|**$schema** | **String** | | [optional] | +|**additionalItems** | **Object** | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] | +|**additionalProperties** | **Object** | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] | +|**allOf** | [**List<V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] | +|**anyOf** | [**List<V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] | +|**_default** | **Object** | 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. | [optional] | +|**definitions** | [**Map<String, V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] | +|**dependencies** | **Map<String, Object>** | | [optional] | +|**description** | **String** | | [optional] | +|**_enum** | **List<Object>** | | [optional] | +|**example** | **Object** | JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. | [optional] | +|**exclusiveMaximum** | **Boolean** | | [optional] | +|**exclusiveMinimum** | **Boolean** | | [optional] | +|**externalDocs** | [**V1ExternalDocumentation**](V1ExternalDocumentation.md) | | [optional] | +|**format** | **String** | 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. | [optional] | +|**id** | **String** | | [optional] | +|**items** | **Object** | JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. | [optional] | +|**maxItems** | **Long** | | [optional] | +|**maxLength** | **Long** | | [optional] | +|**maxProperties** | **Long** | | [optional] | +|**maximum** | **Double** | | [optional] | +|**minItems** | **Long** | | [optional] | +|**minLength** | **Long** | | [optional] | +|**minProperties** | **Long** | | [optional] | +|**minimum** | **Double** | | [optional] | +|**multipleOf** | **Double** | | [optional] | +|**not** | [**V1JSONSchemaProps**](V1JSONSchemaProps.md) | | [optional] | +|**nullable** | **Boolean** | | [optional] | +|**oneOf** | [**List<V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] | +|**pattern** | **String** | | [optional] | +|**patternProperties** | [**Map<String, V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] | +|**properties** | [**Map<String, V1JSONSchemaProps>**](V1JSONSchemaProps.md) | | [optional] | +|**required** | **List<String>** | | [optional] | +|**title** | **String** | | [optional] | +|**type** | **String** | | [optional] | +|**uniqueItems** | **Boolean** | | [optional] | +|**xKubernetesEmbeddedResource** | **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). | [optional] | +|**xKubernetesIntOrString** | **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 | [optional] | +|**xKubernetesListMapKeys** | **List<String>** | 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. | [optional] | +|**xKubernetesListType** | **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. | [optional] | +|**xKubernetesMapType** | **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. | [optional] | +|**xKubernetesPreserveUnknownFields** | **Boolean** | 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. | [optional] | +|**xKubernetesValidations** | [**List<V1ValidationRule>**](V1ValidationRule.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1Job.md b/kubernetes/docs/V1Job.md index 55740b7000..8a477c9784 100644 --- a/kubernetes/docs/V1Job.md +++ b/kubernetes/docs/V1Job.md @@ -3,15 +3,16 @@ # V1Job Job represents the configuration of a single job. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] -**status** | [**V1JobStatus**](V1JobStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] | +|**status** | [**V1JobStatus**](V1JobStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1JobCondition.md b/kubernetes/docs/V1JobCondition.md index 21f61f3e4e..34a3357773 100644 --- a/kubernetes/docs/V1JobCondition.md +++ b/kubernetes/docs/V1JobCondition.md @@ -3,16 +3,17 @@ # V1JobCondition JobCondition describes current state of a job. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastProbeTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition was checked. | [optional] -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transit from one status to another. | [optional] -**message** | **String** | Human readable message indicating details about last transition. | [optional] -**reason** | **String** | (brief) reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of job condition, Complete or Failed. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastProbeTime** | **OffsetDateTime** | Last time the condition was checked. | [optional] | +|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transit from one status to another. | [optional] | +|**message** | **String** | Human readable message indicating details about last transition. | [optional] | +|**reason** | **String** | (brief) reason for the condition's last transition. | [optional] | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of job condition, Complete or Failed. | | diff --git a/kubernetes/docs/V1JobList.md b/kubernetes/docs/V1JobList.md index 92defc9497..0ff2cfee5a 100644 --- a/kubernetes/docs/V1JobList.md +++ b/kubernetes/docs/V1JobList.md @@ -3,14 +3,15 @@ # V1JobList JobList is a collection of jobs. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Job>**](V1Job.md) | items is the list of Jobs. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Job>**](V1Job.md) | items is the list of Jobs. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index 8d35c1b7de..bf75a15fef 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -3,6 +3,7 @@ # V1JobSpec JobSpec describes how the job execution will look like. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index de4591c963..afde6654dc 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -3,6 +3,7 @@ # V1JobStatus JobStatus represents the current state of a Job. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1JobTemplateSpec.md b/kubernetes/docs/V1JobTemplateSpec.md index 4c890f3832..10d0d98694 100644 --- a/kubernetes/docs/V1JobTemplateSpec.md +++ b/kubernetes/docs/V1JobTemplateSpec.md @@ -3,12 +3,13 @@ # V1JobTemplateSpec JobTemplateSpec describes the data a Job should have when created from a template + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] | diff --git a/kubernetes/docs/V1KeyToPath.md b/kubernetes/docs/V1KeyToPath.md index 4bb7bcd88f..defb0e3d01 100644 --- a/kubernetes/docs/V1KeyToPath.md +++ b/kubernetes/docs/V1KeyToPath.md @@ -3,13 +3,14 @@ # V1KeyToPath Maps a string key to a path within a volume. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | key is the key to project. | -**mode** | **Integer** | mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**path** | **String** | 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 '..'. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | key is the key to project. | | +|**mode** | **Integer** | mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] | +|**path** | **String** | 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 '..'. | | diff --git a/kubernetes/docs/V1LabelSelector.md b/kubernetes/docs/V1LabelSelector.md index 6ab33a4cb0..6c987a5103 100644 --- a/kubernetes/docs/V1LabelSelector.md +++ b/kubernetes/docs/V1LabelSelector.md @@ -3,12 +3,13 @@ # V1LabelSelector 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchExpressions** | [**List<V1LabelSelectorRequirement>**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] -**matchLabels** | **Map<String, String>** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchExpressions** | [**List<V1LabelSelectorRequirement>**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] | +|**matchLabels** | **Map<String, String>** | 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. | [optional] | diff --git a/kubernetes/docs/V1LabelSelectorRequirement.md b/kubernetes/docs/V1LabelSelectorRequirement.md index 801c79b4dd..7b74fad7d6 100644 --- a/kubernetes/docs/V1LabelSelectorRequirement.md +++ b/kubernetes/docs/V1LabelSelectorRequirement.md @@ -3,13 +3,14 @@ # V1LabelSelectorRequirement A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | key is the label key that the selector applies to. | -**operator** | **String** | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. | -**values** | **List<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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | key is the label key that the selector applies to. | | +|**operator** | **String** | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. | | +|**values** | **List<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. | [optional] | diff --git a/kubernetes/docs/V1Lease.md b/kubernetes/docs/V1Lease.md index b4cd9aa926..db65315e8a 100644 --- a/kubernetes/docs/V1Lease.md +++ b/kubernetes/docs/V1Lease.md @@ -3,14 +3,15 @@ # V1Lease Lease defines a lease concept. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1LeaseSpec**](V1LeaseSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1LeaseSpec**](V1LeaseSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1LeaseList.md b/kubernetes/docs/V1LeaseList.md index 62eae145bf..2ffd9a40e1 100644 --- a/kubernetes/docs/V1LeaseList.md +++ b/kubernetes/docs/V1LeaseList.md @@ -3,14 +3,15 @@ # V1LeaseList LeaseList is a list of Lease objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Lease>**](V1Lease.md) | items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Lease>**](V1Lease.md) | items is a list of schema objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1LeaseSpec.md b/kubernetes/docs/V1LeaseSpec.md index 4476da9b8e..be25cf70b8 100644 --- a/kubernetes/docs/V1LeaseSpec.md +++ b/kubernetes/docs/V1LeaseSpec.md @@ -3,15 +3,16 @@ # V1LeaseSpec LeaseSpec is a specification of a Lease. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acquireTime** | [**OffsetDateTime**](OffsetDateTime.md) | acquireTime is a time when the current lease was acquired. | [optional] -**holderIdentity** | **String** | holderIdentity contains the identity of the holder of a current lease. | [optional] -**leaseDurationSeconds** | **Integer** | 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. | [optional] -**leaseTransitions** | **Integer** | leaseTransitions is the number of transitions of a lease between holders. | [optional] -**renewTime** | [**OffsetDateTime**](OffsetDateTime.md) | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**acquireTime** | **OffsetDateTime** | acquireTime is a time when the current lease was acquired. | [optional] | +|**holderIdentity** | **String** | holderIdentity contains the identity of the holder of a current lease. | [optional] | +|**leaseDurationSeconds** | **Integer** | 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. | [optional] | +|**leaseTransitions** | **Integer** | leaseTransitions is the number of transitions of a lease between holders. | [optional] | +|**renewTime** | **OffsetDateTime** | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] | diff --git a/kubernetes/docs/V1Lifecycle.md b/kubernetes/docs/V1Lifecycle.md index 9afab8a479..905ae7f481 100644 --- a/kubernetes/docs/V1Lifecycle.md +++ b/kubernetes/docs/V1Lifecycle.md @@ -3,12 +3,13 @@ # V1Lifecycle 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**postStart** | [**V1LifecycleHandler**](V1LifecycleHandler.md) | | [optional] -**preStop** | [**V1LifecycleHandler**](V1LifecycleHandler.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**postStart** | [**V1LifecycleHandler**](V1LifecycleHandler.md) | | [optional] | +|**preStop** | [**V1LifecycleHandler**](V1LifecycleHandler.md) | | [optional] | diff --git a/kubernetes/docs/V1LifecycleHandler.md b/kubernetes/docs/V1LifecycleHandler.md index cb88aa6ae0..74d276933a 100644 --- a/kubernetes/docs/V1LifecycleHandler.md +++ b/kubernetes/docs/V1LifecycleHandler.md @@ -3,13 +3,14 @@ # V1LifecycleHandler 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] -**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] -**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] | +|**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] | +|**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] | diff --git a/kubernetes/docs/V1LimitRange.md b/kubernetes/docs/V1LimitRange.md index 41c5cc1a16..199b69e26d 100644 --- a/kubernetes/docs/V1LimitRange.md +++ b/kubernetes/docs/V1LimitRange.md @@ -3,14 +3,15 @@ # V1LimitRange LimitRange sets resource usage limits for each kind of resource in a Namespace. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1LimitRangeSpec**](V1LimitRangeSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1LimitRangeSpec**](V1LimitRangeSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1LimitRangeItem.md b/kubernetes/docs/V1LimitRangeItem.md index 211cbe8e1e..b1274fe94b 100644 --- a/kubernetes/docs/V1LimitRangeItem.md +++ b/kubernetes/docs/V1LimitRangeItem.md @@ -3,16 +3,17 @@ # V1LimitRangeItem LimitRangeItem defines a min/max usage limit for any resource that matches on kind. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_default** | [**Map<String, Quantity>**](Quantity.md) | Default resource requirement limit value by resource name if resource limit is omitted. | [optional] -**defaultRequest** | [**Map<String, Quantity>**](Quantity.md) | DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. | [optional] -**max** | [**Map<String, Quantity>**](Quantity.md) | Max usage constraints on this kind by resource name. | [optional] -**maxLimitRequestRatio** | [**Map<String, Quantity>**](Quantity.md) | 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. | [optional] -**min** | [**Map<String, Quantity>**](Quantity.md) | Min usage constraints on this kind by resource name. | [optional] -**type** | **String** | Type of resource that this limit applies to. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_default** | **Map<String, Quantity>** | Default resource requirement limit value by resource name if resource limit is omitted. | [optional] | +|**defaultRequest** | **Map<String, Quantity>** | DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. | [optional] | +|**max** | **Map<String, Quantity>** | Max usage constraints on this kind by resource name. | [optional] | +|**maxLimitRequestRatio** | **Map<String, Quantity>** | 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. | [optional] | +|**min** | **Map<String, Quantity>** | Min usage constraints on this kind by resource name. | [optional] | +|**type** | **String** | Type of resource that this limit applies to. | | diff --git a/kubernetes/docs/V1LimitRangeList.md b/kubernetes/docs/V1LimitRangeList.md index e1049f76e4..e5d29e4611 100644 --- a/kubernetes/docs/V1LimitRangeList.md +++ b/kubernetes/docs/V1LimitRangeList.md @@ -3,14 +3,15 @@ # V1LimitRangeList LimitRangeList is a list of LimitRange items. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1LimitRange>**](V1LimitRange.md) | Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1LimitRange>**](V1LimitRange.md) | Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1LimitRangeSpec.md b/kubernetes/docs/V1LimitRangeSpec.md index c223169d34..52245a4637 100644 --- a/kubernetes/docs/V1LimitRangeSpec.md +++ b/kubernetes/docs/V1LimitRangeSpec.md @@ -3,11 +3,12 @@ # V1LimitRangeSpec LimitRangeSpec defines a min/max usage limit for resources that match on kind. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**limits** | [**List<V1LimitRangeItem>**](V1LimitRangeItem.md) | Limits is the list of LimitRangeItem objects that are enforced. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**limits** | [**List<V1LimitRangeItem>**](V1LimitRangeItem.md) | Limits is the list of LimitRangeItem objects that are enforced. | | diff --git a/kubernetes/docs/V1ListMeta.md b/kubernetes/docs/V1ListMeta.md index 7a18765eee..6098f84d91 100644 --- a/kubernetes/docs/V1ListMeta.md +++ b/kubernetes/docs/V1ListMeta.md @@ -3,14 +3,15 @@ # V1ListMeta ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_continue** | **String** | 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. | [optional] -**remainingItemCount** | **Long** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. | [optional] -**resourceVersion** | **String** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] -**selfLink** | **String** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_continue** | **String** | 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. | [optional] | +|**remainingItemCount** | **Long** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. | [optional] | +|**resourceVersion** | **String** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] | +|**selfLink** | **String** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] | diff --git a/kubernetes/docs/V1LoadBalancerIngress.md b/kubernetes/docs/V1LoadBalancerIngress.md index 3cfaffea0c..806af17470 100644 --- a/kubernetes/docs/V1LoadBalancerIngress.md +++ b/kubernetes/docs/V1LoadBalancerIngress.md @@ -3,13 +3,14 @@ # V1LoadBalancerIngress LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hostname** | **String** | Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) | [optional] -**ip** | **String** | IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) | [optional] -**ports** | [**List<V1PortStatus>**](V1PortStatus.md) | Ports is a list of records of service ports If used, every port defined in the service should have an entry in it | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hostname** | **String** | Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) | [optional] | +|**ip** | **String** | IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) | [optional] | +|**ports** | [**List<V1PortStatus>**](V1PortStatus.md) | Ports is a list of records of service ports If used, every port defined in the service should have an entry in it | [optional] | diff --git a/kubernetes/docs/V1LoadBalancerStatus.md b/kubernetes/docs/V1LoadBalancerStatus.md index f6d4550a58..8c0e6083b8 100644 --- a/kubernetes/docs/V1LoadBalancerStatus.md +++ b/kubernetes/docs/V1LoadBalancerStatus.md @@ -3,11 +3,12 @@ # V1LoadBalancerStatus LoadBalancerStatus represents the status of a load-balancer. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ingress** | [**List<V1LoadBalancerIngress>**](V1LoadBalancerIngress.md) | Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ingress** | [**List<V1LoadBalancerIngress>**](V1LoadBalancerIngress.md) | Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. | [optional] | diff --git a/kubernetes/docs/V1LocalObjectReference.md b/kubernetes/docs/V1LocalObjectReference.md index 0a4cb89cce..183e4be55b 100644 --- a/kubernetes/docs/V1LocalObjectReference.md +++ b/kubernetes/docs/V1LocalObjectReference.md @@ -3,11 +3,12 @@ # V1LocalObjectReference LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | diff --git a/kubernetes/docs/V1LocalSubjectAccessReview.md b/kubernetes/docs/V1LocalSubjectAccessReview.md index 86810dee6a..69bf1f1ed9 100644 --- a/kubernetes/docs/V1LocalSubjectAccessReview.md +++ b/kubernetes/docs/V1LocalSubjectAccessReview.md @@ -3,15 +3,16 @@ # V1LocalSubjectAccessReview 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | | | +|**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1LocalVolumeSource.md b/kubernetes/docs/V1LocalVolumeSource.md index 492abaad45..3ef137bf8c 100644 --- a/kubernetes/docs/V1LocalVolumeSource.md +++ b/kubernetes/docs/V1LocalVolumeSource.md @@ -3,12 +3,13 @@ # V1LocalVolumeSource Local represents directly-attached storage with node affinity (Beta feature) + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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. | [optional] -**path** | **String** | path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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. | [optional] | +|**path** | **String** | path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). | | diff --git a/kubernetes/docs/V1ManagedFieldsEntry.md b/kubernetes/docs/V1ManagedFieldsEntry.md index 870c241d1b..62ab4d899e 100644 --- a/kubernetes/docs/V1ManagedFieldsEntry.md +++ b/kubernetes/docs/V1ManagedFieldsEntry.md @@ -3,17 +3,18 @@ # V1ManagedFieldsEntry ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | 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. | [optional] -**fieldsType** | **String** | FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" | [optional] -**fieldsV1** | [**Object**](.md) | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] -**manager** | **String** | Manager is an identifier of the workflow managing these fields. | [optional] -**operation** | **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'. | [optional] -**subresource** | **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. | [optional] -**time** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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. | [optional] | +|**fieldsType** | **String** | FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" | [optional] | +|**fieldsV1** | **Object** | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] | +|**manager** | **String** | Manager is an identifier of the workflow managing these fields. | [optional] | +|**operation** | **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'. | [optional] | +|**subresource** | **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. | [optional] | +|**time** | **OffsetDateTime** | 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. | [optional] | diff --git a/kubernetes/docs/V1MatchCondition.md b/kubernetes/docs/V1MatchCondition.md index fadeeac807..52d4f8337b 100644 --- a/kubernetes/docs/V1MatchCondition.md +++ b/kubernetes/docs/V1MatchCondition.md @@ -3,12 +3,13 @@ # V1MatchCondition MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expression** | **String** | Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | -**name** | **String** | Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | | +|**name** | **String** | Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | | diff --git a/kubernetes/docs/V1MutatingWebhook.md b/kubernetes/docs/V1MutatingWebhook.md index 217091725a..ad402c7e81 100644 --- a/kubernetes/docs/V1MutatingWebhook.md +++ b/kubernetes/docs/V1MutatingWebhook.md @@ -3,6 +3,7 @@ # V1MutatingWebhook MutatingWebhook describes an admission webhook and the resources and operations it applies to. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1MutatingWebhookConfiguration.md b/kubernetes/docs/V1MutatingWebhookConfiguration.md index c82754e192..7f1954ff3b 100644 --- a/kubernetes/docs/V1MutatingWebhookConfiguration.md +++ b/kubernetes/docs/V1MutatingWebhookConfiguration.md @@ -3,14 +3,15 @@ # V1MutatingWebhookConfiguration MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**webhooks** | [**List<V1MutatingWebhook>**](V1MutatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**webhooks** | [**List<V1MutatingWebhook>**](V1MutatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1MutatingWebhookConfigurationList.md b/kubernetes/docs/V1MutatingWebhookConfigurationList.md index fa03e2d5e4..366759babc 100644 --- a/kubernetes/docs/V1MutatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1MutatingWebhookConfigurationList.md @@ -3,14 +3,15 @@ # V1MutatingWebhookConfigurationList MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1MutatingWebhookConfiguration>**](V1MutatingWebhookConfiguration.md) | List of MutatingWebhookConfiguration. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1MutatingWebhookConfiguration>**](V1MutatingWebhookConfiguration.md) | List of MutatingWebhookConfiguration. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1NFSVolumeSource.md b/kubernetes/docs/V1NFSVolumeSource.md index a5283f0cc7..f661efe53f 100644 --- a/kubernetes/docs/V1NFSVolumeSource.md +++ b/kubernetes/docs/V1NFSVolumeSource.md @@ -3,13 +3,14 @@ # V1NFSVolumeSource Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **String** | path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | -**readOnly** | **Boolean** | 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 | [optional] -**server** | **String** | server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | | +|**readOnly** | **Boolean** | 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 | [optional] | +|**server** | **String** | server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | | diff --git a/kubernetes/docs/V1Namespace.md b/kubernetes/docs/V1Namespace.md index a3f060fe12..f32c390963 100644 --- a/kubernetes/docs/V1Namespace.md +++ b/kubernetes/docs/V1Namespace.md @@ -3,15 +3,16 @@ # V1Namespace Namespace provides a scope for Names. Use of multiple namespaces is optional. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1NamespaceSpec**](V1NamespaceSpec.md) | | [optional] -**status** | [**V1NamespaceStatus**](V1NamespaceStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1NamespaceSpec**](V1NamespaceSpec.md) | | [optional] | +|**status** | [**V1NamespaceStatus**](V1NamespaceStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1NamespaceCondition.md b/kubernetes/docs/V1NamespaceCondition.md index 4cfab73753..13da093457 100644 --- a/kubernetes/docs/V1NamespaceCondition.md +++ b/kubernetes/docs/V1NamespaceCondition.md @@ -3,15 +3,16 @@ # V1NamespaceCondition NamespaceCondition contains details about state of namespace. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] -**message** | **String** | | [optional] -**reason** | **String** | | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of namespace controller condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | 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. | [optional] | +|**message** | **String** | | [optional] | +|**reason** | **String** | | [optional] | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of namespace controller condition. | | diff --git a/kubernetes/docs/V1NamespaceList.md b/kubernetes/docs/V1NamespaceList.md index 78a8e5337a..2500d356d8 100644 --- a/kubernetes/docs/V1NamespaceList.md +++ b/kubernetes/docs/V1NamespaceList.md @@ -3,14 +3,15 @@ # V1NamespaceList NamespaceList is a list of Namespaces. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Namespace>**](V1Namespace.md) | Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Namespace>**](V1Namespace.md) | Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1NamespaceSpec.md b/kubernetes/docs/V1NamespaceSpec.md index 3fbeb52b85..9074b72bc4 100644 --- a/kubernetes/docs/V1NamespaceSpec.md +++ b/kubernetes/docs/V1NamespaceSpec.md @@ -3,11 +3,12 @@ # V1NamespaceSpec NamespaceSpec describes the attributes on a Namespace. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**finalizers** | **List<String>** | 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/ | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**finalizers** | **List<String>** | 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/ | [optional] | diff --git a/kubernetes/docs/V1NamespaceStatus.md b/kubernetes/docs/V1NamespaceStatus.md index 76c024587a..bebd52e60b 100644 --- a/kubernetes/docs/V1NamespaceStatus.md +++ b/kubernetes/docs/V1NamespaceStatus.md @@ -3,12 +3,13 @@ # V1NamespaceStatus NamespaceStatus is information about the current status of a Namespace. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1NamespaceCondition>**](V1NamespaceCondition.md) | Represents the latest available observations of a namespace's current state. | [optional] -**phase** | **String** | Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1NamespaceCondition>**](V1NamespaceCondition.md) | Represents the latest available observations of a namespace's current state. | [optional] | +|**phase** | **String** | Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ | [optional] | diff --git a/kubernetes/docs/V1NetworkPolicy.md b/kubernetes/docs/V1NetworkPolicy.md index 01cf9fefd4..f30896e81a 100644 --- a/kubernetes/docs/V1NetworkPolicy.md +++ b/kubernetes/docs/V1NetworkPolicy.md @@ -3,6 +3,7 @@ # V1NetworkPolicy NetworkPolicy describes what network traffic is allowed for a set of Pods + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1NetworkPolicyEgressRule.md b/kubernetes/docs/V1NetworkPolicyEgressRule.md index 98ef7a21b4..cab047718b 100644 --- a/kubernetes/docs/V1NetworkPolicyEgressRule.md +++ b/kubernetes/docs/V1NetworkPolicyEgressRule.md @@ -3,12 +3,13 @@ # V1NetworkPolicyEgressRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ports** | [**List<V1NetworkPolicyPort>**](V1NetworkPolicyPort.md) | 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. | [optional] -**to** | [**List<V1NetworkPolicyPeer>**](V1NetworkPolicyPeer.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ports** | [**List<V1NetworkPolicyPort>**](V1NetworkPolicyPort.md) | 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. | [optional] | +|**to** | [**List<V1NetworkPolicyPeer>**](V1NetworkPolicyPeer.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1NetworkPolicyIngressRule.md b/kubernetes/docs/V1NetworkPolicyIngressRule.md index 5855349454..210710cb33 100644 --- a/kubernetes/docs/V1NetworkPolicyIngressRule.md +++ b/kubernetes/docs/V1NetworkPolicyIngressRule.md @@ -3,12 +3,13 @@ # V1NetworkPolicyIngressRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | [**List<V1NetworkPolicyPeer>**](V1NetworkPolicyPeer.md) | 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. | [optional] -**ports** | [**List<V1NetworkPolicyPort>**](V1NetworkPolicyPort.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**from** | [**List<V1NetworkPolicyPeer>**](V1NetworkPolicyPeer.md) | 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. | [optional] | +|**ports** | [**List<V1NetworkPolicyPort>**](V1NetworkPolicyPort.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1NetworkPolicyList.md b/kubernetes/docs/V1NetworkPolicyList.md index e29c1057a7..0593e14c7a 100644 --- a/kubernetes/docs/V1NetworkPolicyList.md +++ b/kubernetes/docs/V1NetworkPolicyList.md @@ -3,14 +3,15 @@ # V1NetworkPolicyList NetworkPolicyList is a list of NetworkPolicy objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1NetworkPolicy>**](V1NetworkPolicy.md) | items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1NetworkPolicy>**](V1NetworkPolicy.md) | items is a list of schema objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1NetworkPolicyPeer.md b/kubernetes/docs/V1NetworkPolicyPeer.md index 7785ceb7d5..bf678fb136 100644 --- a/kubernetes/docs/V1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1NetworkPolicyPeer.md @@ -3,13 +3,14 @@ # V1NetworkPolicyPeer NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipBlock** | [**V1IPBlock**](V1IPBlock.md) | | [optional] -**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ipBlock** | [**V1IPBlock**](V1IPBlock.md) | | [optional] | +|**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1NetworkPolicyPort.md b/kubernetes/docs/V1NetworkPolicyPort.md index 61648dca8f..05d00f2080 100644 --- a/kubernetes/docs/V1NetworkPolicyPort.md +++ b/kubernetes/docs/V1NetworkPolicyPort.md @@ -3,13 +3,14 @@ # V1NetworkPolicyPort NetworkPolicyPort describes a port to allow traffic on + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**endPort** | **Integer** | 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. | [optional] -**port** | [**IntOrString**](IntOrString.md) | 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. | [optional] -**protocol** | **String** | protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**endPort** | **Integer** | 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. | [optional] | +|**port** | **IntOrString** | 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. | [optional] | +|**protocol** | **String** | protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | [optional] | diff --git a/kubernetes/docs/V1NetworkPolicySpec.md b/kubernetes/docs/V1NetworkPolicySpec.md index ddb0be4ec8..5bea94c9d0 100644 --- a/kubernetes/docs/V1NetworkPolicySpec.md +++ b/kubernetes/docs/V1NetworkPolicySpec.md @@ -3,14 +3,15 @@ # V1NetworkPolicySpec NetworkPolicySpec provides the specification of a NetworkPolicy + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**egress** | [**List<V1NetworkPolicyEgressRule>**](V1NetworkPolicyEgressRule.md) | 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 | [optional] -**ingress** | [**List<V1NetworkPolicyIngressRule>**](V1NetworkPolicyIngressRule.md) | 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) | [optional] -**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | -**policyTypes** | **List<String>** | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**egress** | [**List<V1NetworkPolicyEgressRule>**](V1NetworkPolicyEgressRule.md) | 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 | [optional] | +|**ingress** | [**List<V1NetworkPolicyIngressRule>**](V1NetworkPolicyIngressRule.md) | 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) | [optional] | +|**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | | +|**policyTypes** | **List<String>** | 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 | [optional] | diff --git a/kubernetes/docs/V1Node.md b/kubernetes/docs/V1Node.md index dc0f1e0299..7219627ced 100644 --- a/kubernetes/docs/V1Node.md +++ b/kubernetes/docs/V1Node.md @@ -3,15 +3,16 @@ # V1Node Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1NodeSpec**](V1NodeSpec.md) | | [optional] -**status** | [**V1NodeStatus**](V1NodeStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1NodeSpec**](V1NodeSpec.md) | | [optional] | +|**status** | [**V1NodeStatus**](V1NodeStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1NodeAddress.md b/kubernetes/docs/V1NodeAddress.md index b9b9652b10..93c1995d94 100644 --- a/kubernetes/docs/V1NodeAddress.md +++ b/kubernetes/docs/V1NodeAddress.md @@ -3,12 +3,13 @@ # V1NodeAddress NodeAddress contains information for the node's address. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | The node address. | -**type** | **String** | Node address type, one of Hostname, ExternalIP or InternalIP. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**address** | **String** | The node address. | | +|**type** | **String** | Node address type, one of Hostname, ExternalIP or InternalIP. | | diff --git a/kubernetes/docs/V1NodeAffinity.md b/kubernetes/docs/V1NodeAffinity.md index de7048a221..9854363506 100644 --- a/kubernetes/docs/V1NodeAffinity.md +++ b/kubernetes/docs/V1NodeAffinity.md @@ -3,12 +3,13 @@ # V1NodeAffinity Node affinity is a group of node affinity scheduling rules. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1PreferredSchedulingTerm>**](V1PreferredSchedulingTerm.md) | 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. | [optional] -**requiredDuringSchedulingIgnoredDuringExecution** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1PreferredSchedulingTerm>**](V1PreferredSchedulingTerm.md) | 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. | [optional] | +|**requiredDuringSchedulingIgnoredDuringExecution** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1NodeCondition.md b/kubernetes/docs/V1NodeCondition.md index c86927adf1..9e814ee7b3 100644 --- a/kubernetes/docs/V1NodeCondition.md +++ b/kubernetes/docs/V1NodeCondition.md @@ -3,16 +3,17 @@ # V1NodeCondition NodeCondition contains condition information for a node. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastHeartbeatTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time we got an update on a given condition. | [optional] -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transit from one status to another. | [optional] -**message** | **String** | Human readable message indicating details about last transition. | [optional] -**reason** | **String** | (brief) reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of node condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastHeartbeatTime** | **OffsetDateTime** | Last time we got an update on a given condition. | [optional] | +|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transit from one status to another. | [optional] | +|**message** | **String** | Human readable message indicating details about last transition. | [optional] | +|**reason** | **String** | (brief) reason for the condition's last transition. | [optional] | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of node condition. | | diff --git a/kubernetes/docs/V1NodeConfigSource.md b/kubernetes/docs/V1NodeConfigSource.md index 6b4e86b2eb..c530525ef5 100644 --- a/kubernetes/docs/V1NodeConfigSource.md +++ b/kubernetes/docs/V1NodeConfigSource.md @@ -3,11 +3,12 @@ # V1NodeConfigSource NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configMap** | [**V1ConfigMapNodeConfigSource**](V1ConfigMapNodeConfigSource.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**configMap** | [**V1ConfigMapNodeConfigSource**](V1ConfigMapNodeConfigSource.md) | | [optional] | diff --git a/kubernetes/docs/V1NodeConfigStatus.md b/kubernetes/docs/V1NodeConfigStatus.md index ac21730645..89a07bf3d2 100644 --- a/kubernetes/docs/V1NodeConfigStatus.md +++ b/kubernetes/docs/V1NodeConfigStatus.md @@ -3,14 +3,15 @@ # V1NodeConfigStatus NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] -**assigned** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] -**error** | **String** | 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. | [optional] -**lastKnownGood** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] | +|**assigned** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] | +|**error** | **String** | 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. | [optional] | +|**lastKnownGood** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] | diff --git a/kubernetes/docs/V1NodeDaemonEndpoints.md b/kubernetes/docs/V1NodeDaemonEndpoints.md index 6832da760f..c04e244245 100644 --- a/kubernetes/docs/V1NodeDaemonEndpoints.md +++ b/kubernetes/docs/V1NodeDaemonEndpoints.md @@ -3,11 +3,12 @@ # V1NodeDaemonEndpoints NodeDaemonEndpoints lists ports opened by daemons running on the Node. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kubeletEndpoint** | [**V1DaemonEndpoint**](V1DaemonEndpoint.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**kubeletEndpoint** | [**V1DaemonEndpoint**](V1DaemonEndpoint.md) | | [optional] | diff --git a/kubernetes/docs/V1NodeList.md b/kubernetes/docs/V1NodeList.md index 97f2f2e695..a1b4902c2b 100644 --- a/kubernetes/docs/V1NodeList.md +++ b/kubernetes/docs/V1NodeList.md @@ -3,14 +3,15 @@ # V1NodeList NodeList is the whole list of all Nodes which have been registered with master. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Node>**](V1Node.md) | List of nodes | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Node>**](V1Node.md) | List of nodes | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1NodeSelector.md b/kubernetes/docs/V1NodeSelector.md index 955962877b..c02e01c34d 100644 --- a/kubernetes/docs/V1NodeSelector.md +++ b/kubernetes/docs/V1NodeSelector.md @@ -3,11 +3,12 @@ # V1NodeSelector 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodeSelectorTerms** | [**List<V1NodeSelectorTerm>**](V1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nodeSelectorTerms** | [**List<V1NodeSelectorTerm>**](V1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | | diff --git a/kubernetes/docs/V1NodeSelectorRequirement.md b/kubernetes/docs/V1NodeSelectorRequirement.md index fa77bb630e..61191a0dd8 100644 --- a/kubernetes/docs/V1NodeSelectorRequirement.md +++ b/kubernetes/docs/V1NodeSelectorRequirement.md @@ -3,13 +3,14 @@ # V1NodeSelectorRequirement A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | The label key that the selector applies to. | -**operator** | **String** | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. | -**values** | **List<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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | The label key that the selector applies to. | | +|**operator** | **String** | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. | | +|**values** | **List<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. | [optional] | diff --git a/kubernetes/docs/V1NodeSelectorTerm.md b/kubernetes/docs/V1NodeSelectorTerm.md index 4c82f5fdac..a911c04a17 100644 --- a/kubernetes/docs/V1NodeSelectorTerm.md +++ b/kubernetes/docs/V1NodeSelectorTerm.md @@ -3,12 +3,13 @@ # V1NodeSelectorTerm 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchExpressions** | [**List<V1NodeSelectorRequirement>**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's labels. | [optional] -**matchFields** | [**List<V1NodeSelectorRequirement>**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's fields. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchExpressions** | [**List<V1NodeSelectorRequirement>**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's labels. | [optional] | +|**matchFields** | [**List<V1NodeSelectorRequirement>**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's fields. | [optional] | diff --git a/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md index f7a8763105..754de856f0 100644 --- a/kubernetes/docs/V1NodeSpec.md +++ b/kubernetes/docs/V1NodeSpec.md @@ -3,17 +3,18 @@ # V1NodeSpec NodeSpec describes the attributes that a node is created with. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configSource** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] -**externalID** | **String** | Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 | [optional] -**podCIDR** | **String** | PodCIDR represents the pod IP range assigned to the node. | [optional] -**podCIDRs** | **List<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. | [optional] -**providerID** | **String** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] -**taints** | [**List<V1Taint>**](V1Taint.md) | If specified, the node's taints. | [optional] -**unschedulable** | **Boolean** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**configSource** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] | +|**externalID** | **String** | Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 | [optional] | +|**podCIDR** | **String** | PodCIDR represents the pod IP range assigned to the node. | [optional] | +|**podCIDRs** | **List<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. | [optional] | +|**providerID** | **String** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] | +|**taints** | [**List<V1Taint>**](V1Taint.md) | If specified, the node's taints. | [optional] | +|**unschedulable** | **Boolean** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration | [optional] | diff --git a/kubernetes/docs/V1NodeStatus.md b/kubernetes/docs/V1NodeStatus.md index 0d010ca684..8807e26f9f 100644 --- a/kubernetes/docs/V1NodeStatus.md +++ b/kubernetes/docs/V1NodeStatus.md @@ -3,21 +3,22 @@ # V1NodeStatus NodeStatus is information about the current status of a node. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | [**List<V1NodeAddress>**](V1NodeAddress.md) | 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). | [optional] -**allocatable** | [**Map<String, Quantity>**](Quantity.md) | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] -**capacity** | [**Map<String, Quantity>**](Quantity.md) | Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] -**conditions** | [**List<V1NodeCondition>**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition | [optional] -**config** | [**V1NodeConfigStatus**](V1NodeConfigStatus.md) | | [optional] -**daemonEndpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | | [optional] -**images** | [**List<V1ContainerImage>**](V1ContainerImage.md) | List of container images on this node | [optional] -**nodeInfo** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | | [optional] -**phase** | **String** | 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. | [optional] -**volumesAttached** | [**List<V1AttachedVolume>**](V1AttachedVolume.md) | List of volumes that are attached to the node. | [optional] -**volumesInUse** | **List<String>** | List of attachable volumes in use (mounted) by the node. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**addresses** | [**List<V1NodeAddress>**](V1NodeAddress.md) | 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). | [optional] | +|**allocatable** | **Map<String, Quantity>** | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] | +|**capacity** | **Map<String, Quantity>** | Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] | +|**conditions** | [**List<V1NodeCondition>**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition | [optional] | +|**config** | [**V1NodeConfigStatus**](V1NodeConfigStatus.md) | | [optional] | +|**daemonEndpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | | [optional] | +|**images** | [**List<V1ContainerImage>**](V1ContainerImage.md) | List of container images on this node | [optional] | +|**nodeInfo** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | | [optional] | +|**phase** | **String** | 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. | [optional] | +|**volumesAttached** | [**List<V1AttachedVolume>**](V1AttachedVolume.md) | List of volumes that are attached to the node. | [optional] | +|**volumesInUse** | **List<String>** | List of attachable volumes in use (mounted) by the node. | [optional] | diff --git a/kubernetes/docs/V1NodeSystemInfo.md b/kubernetes/docs/V1NodeSystemInfo.md index c749bc1fda..6856b69977 100644 --- a/kubernetes/docs/V1NodeSystemInfo.md +++ b/kubernetes/docs/V1NodeSystemInfo.md @@ -3,20 +3,21 @@ # V1NodeSystemInfo NodeSystemInfo is a set of ids/uuids to uniquely identify the node. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**architecture** | **String** | The Architecture reported by the node | -**bootID** | **String** | Boot ID reported by the node. | -**containerRuntimeVersion** | **String** | ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). | -**kernelVersion** | **String** | Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). | -**kubeProxyVersion** | **String** | KubeProxy Version reported by the node. | -**kubeletVersion** | **String** | Kubelet Version reported by the node. | -**machineID** | **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 | -**operatingSystem** | **String** | The Operating System reported by the node | -**osImage** | **String** | OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). | -**systemUUID** | **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 | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**architecture** | **String** | The Architecture reported by the node | | +|**bootID** | **String** | Boot ID reported by the node. | | +|**containerRuntimeVersion** | **String** | ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). | | +|**kernelVersion** | **String** | Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). | | +|**kubeProxyVersion** | **String** | KubeProxy Version reported by the node. | | +|**kubeletVersion** | **String** | Kubelet Version reported by the node. | | +|**machineID** | **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 | | +|**operatingSystem** | **String** | The Operating System reported by the node | | +|**osImage** | **String** | OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). | | +|**systemUUID** | **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 | | diff --git a/kubernetes/docs/V1NonResourceAttributes.md b/kubernetes/docs/V1NonResourceAttributes.md index 3270085c16..2487f25024 100644 --- a/kubernetes/docs/V1NonResourceAttributes.md +++ b/kubernetes/docs/V1NonResourceAttributes.md @@ -3,12 +3,13 @@ # V1NonResourceAttributes NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **String** | Path is the URL path of the request | [optional] -**verb** | **String** | Verb is the standard HTTP verb | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | Path is the URL path of the request | [optional] | +|**verb** | **String** | Verb is the standard HTTP verb | [optional] | diff --git a/kubernetes/docs/V1NonResourceRule.md b/kubernetes/docs/V1NonResourceRule.md index 3212136263..4789aafe41 100644 --- a/kubernetes/docs/V1NonResourceRule.md +++ b/kubernetes/docs/V1NonResourceRule.md @@ -3,12 +3,13 @@ # V1NonResourceRule NonResourceRule holds information that describes a rule for the non-resource + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceURLs** | **List<String>** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. | [optional] -**verbs** | **List<String>** | Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nonResourceURLs** | **List<String>** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. | [optional] | +|**verbs** | **List<String>** | Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. | | diff --git a/kubernetes/docs/V1ObjectFieldSelector.md b/kubernetes/docs/V1ObjectFieldSelector.md index 445dc3d5bf..9c7bd8fab5 100644 --- a/kubernetes/docs/V1ObjectFieldSelector.md +++ b/kubernetes/docs/V1ObjectFieldSelector.md @@ -3,12 +3,13 @@ # V1ObjectFieldSelector ObjectFieldSelector selects an APIVersioned field of an object. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | Version of the schema the FieldPath is written in terms of, defaults to \"v1\". | [optional] -**fieldPath** | **String** | Path of the field to select in the specified API version. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | Version of the schema the FieldPath is written in terms of, defaults to \"v1\". | [optional] | +|**fieldPath** | **String** | Path of the field to select in the specified API version. | | diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index b871c9c0d7..4e546762d5 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -3,25 +3,26 @@ # V1ObjectMeta ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**annotations** | **Map<String, String>** | 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 | [optional] -**creationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | 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. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**deletionGracePeriodSeconds** | **Long** | 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. | [optional] -**deletionTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | 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. Populated 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 | [optional] -**finalizers** | **List<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. | [optional] -**generateName** | **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 | [optional] -**generation** | **Long** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] -**labels** | **Map<String, String>** | 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 | [optional] -**managedFields** | [**List<V1ManagedFieldsEntry>**](V1ManagedFieldsEntry.md) | 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. | [optional] -**name** | **String** | 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 | [optional] -**namespace** | **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 | [optional] -**ownerReferences** | [**List<V1OwnerReference>**](V1OwnerReference.md) | 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. | [optional] -**resourceVersion** | **String** | 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 | [optional] -**selfLink** | **String** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] -**uid** | **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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**annotations** | **Map<String, String>** | 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 | [optional] | +|**creationTimestamp** | **OffsetDateTime** | 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. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] | +|**deletionGracePeriodSeconds** | **Long** | 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. | [optional] | +|**deletionTimestamp** | **OffsetDateTime** | 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. Populated 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 | [optional] | +|**finalizers** | **List<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. | [optional] | +|**generateName** | **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 | [optional] | +|**generation** | **Long** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] | +|**labels** | **Map<String, String>** | 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 | [optional] | +|**managedFields** | [**List<V1ManagedFieldsEntry>**](V1ManagedFieldsEntry.md) | 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. | [optional] | +|**name** | **String** | 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 | [optional] | +|**namespace** | **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 | [optional] | +|**ownerReferences** | [**List<V1OwnerReference>**](V1OwnerReference.md) | 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. | [optional] | +|**resourceVersion** | **String** | 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 | [optional] | +|**selfLink** | **String** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] | +|**uid** | **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 | [optional] | diff --git a/kubernetes/docs/V1ObjectReference.md b/kubernetes/docs/V1ObjectReference.md index ffe29464e2..92a08bbb1f 100644 --- a/kubernetes/docs/V1ObjectReference.md +++ b/kubernetes/docs/V1ObjectReference.md @@ -3,17 +3,18 @@ # V1ObjectReference ObjectReference contains enough information to let you inspect or modify the referred object. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | API version of the referent. | [optional] -**fieldPath** | **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. | [optional] -**kind** | **String** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**namespace** | **String** | Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ | [optional] -**resourceVersion** | **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 | [optional] -**uid** | **String** | UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | API version of the referent. | [optional] | +|**fieldPath** | **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. | [optional] | +|**kind** | **String** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | +|**namespace** | **String** | Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ | [optional] | +|**resourceVersion** | **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 | [optional] | +|**uid** | **String** | UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids | [optional] | diff --git a/kubernetes/docs/V1Overhead.md b/kubernetes/docs/V1Overhead.md index 6b85a1a1df..fdaa4de71a 100644 --- a/kubernetes/docs/V1Overhead.md +++ b/kubernetes/docs/V1Overhead.md @@ -3,11 +3,12 @@ # V1Overhead Overhead structure represents the resource overhead associated with running a pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**podFixed** | [**Map<String, Quantity>**](Quantity.md) | podFixed represents the fixed resource overhead associated with running a pod. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**podFixed** | **Map<String, Quantity>** | podFixed represents the fixed resource overhead associated with running a pod. | [optional] | diff --git a/kubernetes/docs/V1OwnerReference.md b/kubernetes/docs/V1OwnerReference.md index 2e7373548b..c0ea155cc2 100644 --- a/kubernetes/docs/V1OwnerReference.md +++ b/kubernetes/docs/V1OwnerReference.md @@ -3,16 +3,17 @@ # V1OwnerReference 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | API version of the referent. | -**blockOwnerDeletion** | **Boolean** | 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. | [optional] -**controller** | **Boolean** | If true, this reference points to the managing controller. | [optional] -**kind** | **String** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names | -**uid** | **String** | UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | API version of the referent. | | +|**blockOwnerDeletion** | **Boolean** | 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. | [optional] | +|**controller** | **Boolean** | If true, this reference points to the managing controller. | [optional] | +|**kind** | **String** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | | +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names | | +|**uid** | **String** | UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids | | diff --git a/kubernetes/docs/V1PersistentVolume.md b/kubernetes/docs/V1PersistentVolume.md index 71e2ab3454..db268363a5 100644 --- a/kubernetes/docs/V1PersistentVolume.md +++ b/kubernetes/docs/V1PersistentVolume.md @@ -3,15 +3,16 @@ # V1PersistentVolume 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] -**status** | [**V1PersistentVolumeStatus**](V1PersistentVolumeStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] | +|**status** | [**V1PersistentVolumeStatus**](V1PersistentVolumeStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PersistentVolumeClaim.md b/kubernetes/docs/V1PersistentVolumeClaim.md index bbefd24d0c..56e00ca916 100644 --- a/kubernetes/docs/V1PersistentVolumeClaim.md +++ b/kubernetes/docs/V1PersistentVolumeClaim.md @@ -3,15 +3,16 @@ # V1PersistentVolumeClaim PersistentVolumeClaim is a user's request for and claim to a persistent volume + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | | [optional] -**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | | [optional] | +|**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PersistentVolumeClaimCondition.md b/kubernetes/docs/V1PersistentVolumeClaimCondition.md index e642ccedba..77ee1a14dd 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimCondition.md +++ b/kubernetes/docs/V1PersistentVolumeClaimCondition.md @@ -3,16 +3,17 @@ # V1PersistentVolumeClaimCondition PersistentVolumeClaimCondition contains details about state of pvc + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastProbeTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastProbeTime is the time we probed the condition. | [optional] -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime is the time the condition transitioned from one status to another. | [optional] -**message** | **String** | message is the human-readable message indicating details about last transition. | [optional] -**reason** | **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 \"ResizeStarted\" that means the underlying persistent volume is being resized. | [optional] -**status** | **String** | | -**type** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastProbeTime** | **OffsetDateTime** | lastProbeTime is the time we probed the condition. | [optional] | +|**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime is the time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | message is the human-readable message indicating details about last transition. | [optional] | +|**reason** | **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 \"ResizeStarted\" that means the underlying persistent volume is being resized. | [optional] | +|**status** | **String** | | | +|**type** | **String** | | | diff --git a/kubernetes/docs/V1PersistentVolumeClaimList.md b/kubernetes/docs/V1PersistentVolumeClaimList.md index 491b0eebe7..0268446458 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimList.md +++ b/kubernetes/docs/V1PersistentVolumeClaimList.md @@ -3,14 +3,15 @@ # V1PersistentVolumeClaimList PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index 714fd92894..5425eaf144 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -3,18 +3,19 @@ # V1PersistentVolumeClaimSpec PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessModes** | **List<String>** | accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**dataSource** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | [optional] -**dataSourceRef** | [**V1TypedObjectReference**](V1TypedObjectReference.md) | | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**storageClassName** | **String** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volumeMode** | **String** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] -**volumeName** | **String** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessModes** | **List<String>** | accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] | +|**dataSource** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | [optional] | +|**dataSourceRef** | [**V1TypedObjectReference**](V1TypedObjectReference.md) | | [optional] | +|**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] | +|**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**storageClassName** | **String** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] | +|**volumeMode** | **String** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] | +|**volumeName** | **String** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] | diff --git a/kubernetes/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md index 59256c31d1..c9cf8e139b 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -3,6 +3,7 @@ # V1PersistentVolumeClaimStatus PersistentVolumeClaimStatus is the current status of a persistent volume claim. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1PersistentVolumeClaimTemplate.md b/kubernetes/docs/V1PersistentVolumeClaimTemplate.md index ef944f09c5..d48a05b6e1 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimTemplate.md +++ b/kubernetes/docs/V1PersistentVolumeClaimTemplate.md @@ -3,12 +3,13 @@ # V1PersistentVolumeClaimTemplate PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | | | diff --git a/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md b/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md index 7ee7226e2d..8f4332047c 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md +++ b/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md @@ -3,12 +3,13 @@ # V1PersistentVolumeClaimVolumeSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**claimName** | **String** | 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 | -**readOnly** | **Boolean** | readOnly Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**claimName** | **String** | 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 | | +|**readOnly** | **Boolean** | readOnly Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] | diff --git a/kubernetes/docs/V1PersistentVolumeList.md b/kubernetes/docs/V1PersistentVolumeList.md index 711130497f..f21ec51a96 100644 --- a/kubernetes/docs/V1PersistentVolumeList.md +++ b/kubernetes/docs/V1PersistentVolumeList.md @@ -3,14 +3,15 @@ # V1PersistentVolumeList PersistentVolumeList is a list of PersistentVolume items. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1PersistentVolume>**](V1PersistentVolume.md) | items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1PersistentVolume>**](V1PersistentVolume.md) | items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index b300070aa5..91f8837ae9 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -3,40 +3,41 @@ # V1PersistentVolumeSpec PersistentVolumeSpec is the specification of a persistent volume. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessModes** | **List<String>** | accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes | [optional] -**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | | [optional] -**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | | [optional] -**azureFile** | [**V1AzureFilePersistentVolumeSource**](V1AzureFilePersistentVolumeSource.md) | | [optional] -**capacity** | [**Map<String, Quantity>**](Quantity.md) | capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] -**cephfs** | [**V1CephFSPersistentVolumeSource**](V1CephFSPersistentVolumeSource.md) | | [optional] -**cinder** | [**V1CinderPersistentVolumeSource**](V1CinderPersistentVolumeSource.md) | | [optional] -**claimRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**csi** | [**V1CSIPersistentVolumeSource**](V1CSIPersistentVolumeSource.md) | | [optional] -**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | | [optional] -**flexVolume** | [**V1FlexPersistentVolumeSource**](V1FlexPersistentVolumeSource.md) | | [optional] -**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | | [optional] -**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | | [optional] -**glusterfs** | [**V1GlusterfsPersistentVolumeSource**](V1GlusterfsPersistentVolumeSource.md) | | [optional] -**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] -**iscsi** | [**V1ISCSIPersistentVolumeSource**](V1ISCSIPersistentVolumeSource.md) | | [optional] -**local** | [**V1LocalVolumeSource**](V1LocalVolumeSource.md) | | [optional] -**mountOptions** | **List<String>** | 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 | [optional] -**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] -**nodeAffinity** | [**V1VolumeNodeAffinity**](V1VolumeNodeAffinity.md) | | [optional] -**persistentVolumeReclaimPolicy** | **String** | 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 | [optional] -**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | | [optional] -**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | | [optional] -**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | | [optional] -**rbd** | [**V1RBDPersistentVolumeSource**](V1RBDPersistentVolumeSource.md) | | [optional] -**scaleIO** | [**V1ScaleIOPersistentVolumeSource**](V1ScaleIOPersistentVolumeSource.md) | | [optional] -**storageClassName** | **String** | storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] -**storageos** | [**V1StorageOSPersistentVolumeSource**](V1StorageOSPersistentVolumeSource.md) | | [optional] -**volumeMode** | **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. | [optional] -**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessModes** | **List<String>** | accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes | [optional] | +|**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | | [optional] | +|**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | | [optional] | +|**azureFile** | [**V1AzureFilePersistentVolumeSource**](V1AzureFilePersistentVolumeSource.md) | | [optional] | +|**capacity** | **Map<String, Quantity>** | capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] | +|**cephfs** | [**V1CephFSPersistentVolumeSource**](V1CephFSPersistentVolumeSource.md) | | [optional] | +|**cinder** | [**V1CinderPersistentVolumeSource**](V1CinderPersistentVolumeSource.md) | | [optional] | +|**claimRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] | +|**csi** | [**V1CSIPersistentVolumeSource**](V1CSIPersistentVolumeSource.md) | | [optional] | +|**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | | [optional] | +|**flexVolume** | [**V1FlexPersistentVolumeSource**](V1FlexPersistentVolumeSource.md) | | [optional] | +|**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | | [optional] | +|**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | | [optional] | +|**glusterfs** | [**V1GlusterfsPersistentVolumeSource**](V1GlusterfsPersistentVolumeSource.md) | | [optional] | +|**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] | +|**iscsi** | [**V1ISCSIPersistentVolumeSource**](V1ISCSIPersistentVolumeSource.md) | | [optional] | +|**local** | [**V1LocalVolumeSource**](V1LocalVolumeSource.md) | | [optional] | +|**mountOptions** | **List<String>** | 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 | [optional] | +|**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] | +|**nodeAffinity** | [**V1VolumeNodeAffinity**](V1VolumeNodeAffinity.md) | | [optional] | +|**persistentVolumeReclaimPolicy** | **String** | 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 | [optional] | +|**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | | [optional] | +|**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | | [optional] | +|**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | | [optional] | +|**rbd** | [**V1RBDPersistentVolumeSource**](V1RBDPersistentVolumeSource.md) | | [optional] | +|**scaleIO** | [**V1ScaleIOPersistentVolumeSource**](V1ScaleIOPersistentVolumeSource.md) | | [optional] | +|**storageClassName** | **String** | storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] | +|**storageos** | [**V1StorageOSPersistentVolumeSource**](V1StorageOSPersistentVolumeSource.md) | | [optional] | +|**volumeMode** | **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. | [optional] | +|**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] | diff --git a/kubernetes/docs/V1PersistentVolumeStatus.md b/kubernetes/docs/V1PersistentVolumeStatus.md index 0e48378df7..2fa7800bce 100644 --- a/kubernetes/docs/V1PersistentVolumeStatus.md +++ b/kubernetes/docs/V1PersistentVolumeStatus.md @@ -3,6 +3,7 @@ # V1PersistentVolumeStatus PersistentVolumeStatus is the current status of a persistent volume. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md b/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md index 7184a67c0e..4c29d751a3 100644 --- a/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md +++ b/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md @@ -3,12 +3,13 @@ # V1PhotonPersistentDiskVolumeSource Represents a Photon Controller persistent disk resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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. | [optional] -**pdID** | **String** | pdID is the ID that identifies Photon Controller persistent disk | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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. | [optional] | +|**pdID** | **String** | pdID is the ID that identifies Photon Controller persistent disk | | diff --git a/kubernetes/docs/V1Pod.md b/kubernetes/docs/V1Pod.md index 2efe34cdcb..8c17177248 100644 --- a/kubernetes/docs/V1Pod.md +++ b/kubernetes/docs/V1Pod.md @@ -3,15 +3,16 @@ # V1Pod Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1PodSpec**](V1PodSpec.md) | | [optional] -**status** | [**V1PodStatus**](V1PodStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1PodSpec**](V1PodSpec.md) | | [optional] | +|**status** | [**V1PodStatus**](V1PodStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PodAffinity.md b/kubernetes/docs/V1PodAffinity.md index 9c1ffbf961..7ad498d7a9 100644 --- a/kubernetes/docs/V1PodAffinity.md +++ b/kubernetes/docs/V1PodAffinity.md @@ -3,12 +3,13 @@ # V1PodAffinity Pod affinity is a group of inter pod affinity scheduling rules. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | 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. | [optional] -**requiredDuringSchedulingIgnoredDuringExecution** | [**List<V1PodAffinityTerm>**](V1PodAffinityTerm.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | 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. | [optional] | +|**requiredDuringSchedulingIgnoredDuringExecution** | [**List<V1PodAffinityTerm>**](V1PodAffinityTerm.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md index 7993c2bc7e..d67c00f08e 100644 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ b/kubernetes/docs/V1PodAffinityTerm.md @@ -3,14 +3,15 @@ # V1PodAffinityTerm 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**namespaces** | **List<String>** | 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\". | [optional] -**topologyKey** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**namespaces** | **List<String>** | 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\". | [optional] | +|**topologyKey** | **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. | | diff --git a/kubernetes/docs/V1PodAntiAffinity.md b/kubernetes/docs/V1PodAntiAffinity.md index e980326d70..c329dadf0a 100644 --- a/kubernetes/docs/V1PodAntiAffinity.md +++ b/kubernetes/docs/V1PodAntiAffinity.md @@ -3,12 +3,13 @@ # V1PodAntiAffinity Pod anti affinity is a group of inter pod anti affinity scheduling rules. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | 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. | [optional] -**requiredDuringSchedulingIgnoredDuringExecution** | [**List<V1PodAffinityTerm>**](V1PodAffinityTerm.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | 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. | [optional] | +|**requiredDuringSchedulingIgnoredDuringExecution** | [**List<V1PodAffinityTerm>**](V1PodAffinityTerm.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 5e01b413bf..70dc83153f 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -3,16 +3,17 @@ # V1PodCondition PodCondition contains details for the current condition of this pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastProbeTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time we probed the condition. | [optional] -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] -**message** | **String** | Human-readable message indicating details about last transition. | [optional] -**reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | -**type** | **String** | Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastProbeTime** | **OffsetDateTime** | Last time we probed the condition. | [optional] | +|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | Human-readable message indicating details about last transition. | [optional] | +|**reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] | +|**status** | **String** | Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | | +|**type** | **String** | Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | | diff --git a/kubernetes/docs/V1PodDNSConfig.md b/kubernetes/docs/V1PodDNSConfig.md index 069577bd8b..92de07725e 100644 --- a/kubernetes/docs/V1PodDNSConfig.md +++ b/kubernetes/docs/V1PodDNSConfig.md @@ -3,13 +3,14 @@ # V1PodDNSConfig PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nameservers** | **List<String>** | A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. | [optional] -**options** | [**List<V1PodDNSConfigOption>**](V1PodDNSConfigOption.md) | 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. | [optional] -**searches** | **List<String>** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nameservers** | **List<String>** | A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. | [optional] | +|**options** | [**List<V1PodDNSConfigOption>**](V1PodDNSConfigOption.md) | 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. | [optional] | +|**searches** | **List<String>** | 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. | [optional] | diff --git a/kubernetes/docs/V1PodDNSConfigOption.md b/kubernetes/docs/V1PodDNSConfigOption.md index 6bcb021f14..839e2a282f 100644 --- a/kubernetes/docs/V1PodDNSConfigOption.md +++ b/kubernetes/docs/V1PodDNSConfigOption.md @@ -3,12 +3,13 @@ # V1PodDNSConfigOption PodDNSConfigOption defines DNS resolver options of a pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Required. | [optional] -**value** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Required. | [optional] | +|**value** | **String** | | [optional] | diff --git a/kubernetes/docs/V1PodDisruptionBudget.md b/kubernetes/docs/V1PodDisruptionBudget.md index 097aa23f2a..64c2537e23 100644 --- a/kubernetes/docs/V1PodDisruptionBudget.md +++ b/kubernetes/docs/V1PodDisruptionBudget.md @@ -3,15 +3,16 @@ # V1PodDisruptionBudget PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1PodDisruptionBudgetSpec**](V1PodDisruptionBudgetSpec.md) | | [optional] -**status** | [**V1PodDisruptionBudgetStatus**](V1PodDisruptionBudgetStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1PodDisruptionBudgetSpec**](V1PodDisruptionBudgetSpec.md) | | [optional] | +|**status** | [**V1PodDisruptionBudgetStatus**](V1PodDisruptionBudgetStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PodDisruptionBudgetList.md b/kubernetes/docs/V1PodDisruptionBudgetList.md index 3bce58c1a0..622730a8f9 100644 --- a/kubernetes/docs/V1PodDisruptionBudgetList.md +++ b/kubernetes/docs/V1PodDisruptionBudgetList.md @@ -3,14 +3,15 @@ # V1PodDisruptionBudgetList PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1PodDisruptionBudget>**](V1PodDisruptionBudget.md) | Items is a list of PodDisruptionBudgets | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1PodDisruptionBudget>**](V1PodDisruptionBudget.md) | Items is a list of PodDisruptionBudgets | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1PodDisruptionBudgetSpec.md index cbb89354c3..2d9be30375 100644 --- a/kubernetes/docs/V1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1PodDisruptionBudgetSpec.md @@ -3,14 +3,15 @@ # V1PodDisruptionBudgetSpec PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxUnavailable** | [**IntOrString**](IntOrString.md) | 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. | [optional] -**minAvailable** | [**IntOrString**](IntOrString.md) | 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. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**unhealthyPodEvictionPolicy** | **String** | 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). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**maxUnavailable** | **IntOrString** | 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. | [optional] | +|**minAvailable** | **IntOrString** | 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. | [optional] | +|**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**unhealthyPodEvictionPolicy** | **String** | 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). | [optional] | diff --git a/kubernetes/docs/V1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1PodDisruptionBudgetStatus.md index 3a01deed90..45f165f4e0 100644 --- a/kubernetes/docs/V1PodDisruptionBudgetStatus.md +++ b/kubernetes/docs/V1PodDisruptionBudgetStatus.md @@ -3,17 +3,18 @@ # V1PodDisruptionBudgetStatus PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. | [optional] -**currentHealthy** | **Integer** | current number of healthy pods | -**desiredHealthy** | **Integer** | minimum desired number of healthy pods | -**disruptedPods** | [**Map<String, OffsetDateTime>**](OffsetDateTime.md) | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | [optional] -**disruptionsAllowed** | **Integer** | Number of pod disruptions that are currently allowed. | -**expectedPods** | **Integer** | total number of pods counted by this disruption budget | -**observedGeneration** | **Long** | Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. | [optional] | +|**currentHealthy** | **Integer** | current number of healthy pods | | +|**desiredHealthy** | **Integer** | minimum desired number of healthy pods | | +|**disruptedPods** | **Map<String, OffsetDateTime>** | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | [optional] | +|**disruptionsAllowed** | **Integer** | Number of pod disruptions that are currently allowed. | | +|**expectedPods** | **Integer** | total number of pods counted by this disruption budget | | +|**observedGeneration** | **Long** | Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. | [optional] | diff --git a/kubernetes/docs/V1PodFailurePolicy.md b/kubernetes/docs/V1PodFailurePolicy.md index dd1b583417..975337cf3b 100644 --- a/kubernetes/docs/V1PodFailurePolicy.md +++ b/kubernetes/docs/V1PodFailurePolicy.md @@ -3,11 +3,12 @@ # V1PodFailurePolicy PodFailurePolicy describes how failed pods influence the backoffLimit. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rules** | [**List<V1PodFailurePolicyRule>**](V1PodFailurePolicyRule.md) | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**rules** | [**List<V1PodFailurePolicyRule>**](V1PodFailurePolicyRule.md) | 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. | | diff --git a/kubernetes/docs/V1PodFailurePolicyOnExitCodesRequirement.md b/kubernetes/docs/V1PodFailurePolicyOnExitCodesRequirement.md index cd52fefa31..de1ffe8a0e 100644 --- a/kubernetes/docs/V1PodFailurePolicyOnExitCodesRequirement.md +++ b/kubernetes/docs/V1PodFailurePolicyOnExitCodesRequirement.md @@ -3,13 +3,14 @@ # V1PodFailurePolicyOnExitCodesRequirement 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerName** | **String** | 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. | [optional] -**operator** | **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. | -**values** | **List<Integer>** | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containerName** | **String** | 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. | [optional] | +|**operator** | **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. | | +|**values** | **List<Integer>** | 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. | | diff --git a/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md b/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md index 9a67a29081..b525c653d6 100644 --- a/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md +++ b/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md @@ -3,12 +3,13 @@ # V1PodFailurePolicyOnPodConditionsPattern PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | 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** | Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | 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** | Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. | | diff --git a/kubernetes/docs/V1PodFailurePolicyRule.md b/kubernetes/docs/V1PodFailurePolicyRule.md index 75143c4c95..972c3c0d93 100644 --- a/kubernetes/docs/V1PodFailurePolicyRule.md +++ b/kubernetes/docs/V1PodFailurePolicyRule.md @@ -3,6 +3,7 @@ # V1PodFailurePolicyRule 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 Name | Type | Description | Notes diff --git a/kubernetes/docs/V1PodList.md b/kubernetes/docs/V1PodList.md index 9e85eac7f9..ca111db6bb 100644 --- a/kubernetes/docs/V1PodList.md +++ b/kubernetes/docs/V1PodList.md @@ -3,14 +3,15 @@ # V1PodList PodList is a list of Pods. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Pod>**](V1Pod.md) | List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Pod>**](V1Pod.md) | List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PodOS.md b/kubernetes/docs/V1PodOS.md index 5382507cfd..c2eb744e99 100644 --- a/kubernetes/docs/V1PodOS.md +++ b/kubernetes/docs/V1PodOS.md @@ -3,11 +3,12 @@ # V1PodOS PodOS defines the OS parameters of a pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | 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 | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 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 | | diff --git a/kubernetes/docs/V1PodReadinessGate.md b/kubernetes/docs/V1PodReadinessGate.md index 2e085d16dc..ee04c8ff5a 100644 --- a/kubernetes/docs/V1PodReadinessGate.md +++ b/kubernetes/docs/V1PodReadinessGate.md @@ -3,11 +3,12 @@ # V1PodReadinessGate PodReadinessGate contains the reference to a pod condition + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditionType** | **String** | ConditionType refers to a condition in the pod's condition list with matching type. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditionType** | **String** | ConditionType refers to a condition in the pod's condition list with matching type. | | diff --git a/kubernetes/docs/V1PodResourceClaim.md b/kubernetes/docs/V1PodResourceClaim.md index 74c9c00129..385759daef 100644 --- a/kubernetes/docs/V1PodResourceClaim.md +++ b/kubernetes/docs/V1PodResourceClaim.md @@ -3,12 +3,13 @@ # V1PodResourceClaim 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 | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. | -**source** | [**V1ClaimSource**](V1ClaimSource.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. | | +|**source** | [**V1ClaimSource**](V1ClaimSource.md) | | [optional] | diff --git a/kubernetes/docs/V1PodSchedulingGate.md b/kubernetes/docs/V1PodSchedulingGate.md index 7678ca96c7..cd2859a30b 100644 --- a/kubernetes/docs/V1PodSchedulingGate.md +++ b/kubernetes/docs/V1PodSchedulingGate.md @@ -3,11 +3,12 @@ # V1PodSchedulingGate PodSchedulingGate is associated to a Pod to guard its scheduling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the scheduling gate. Each scheduling gate must have a unique name field. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the scheduling gate. Each scheduling gate must have a unique name field. | | diff --git a/kubernetes/docs/V1PodSecurityContext.md b/kubernetes/docs/V1PodSecurityContext.md index 4f2638eedf..72df2850f8 100644 --- a/kubernetes/docs/V1PodSecurityContext.md +++ b/kubernetes/docs/V1PodSecurityContext.md @@ -3,20 +3,21 @@ # V1PodSecurityContext 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsGroup** | **Long** | 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. | [optional] -**fsGroupChangePolicy** | **String** | 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. | [optional] -**runAsGroup** | **Long** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] -**runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] -**runAsUser** | **Long** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] -**seccompProfile** | [**V1SeccompProfile**](V1SeccompProfile.md) | | [optional] -**supplementalGroups** | **List<Long>** | 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. | [optional] -**sysctls** | [**List<V1Sysctl>**](V1Sysctl.md) | 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. | [optional] -**windowsOptions** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsGroup** | **Long** | 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. | [optional] | +|**fsGroupChangePolicy** | **String** | 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. | [optional] | +|**runAsGroup** | **Long** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] | +|**runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] | +|**runAsUser** | **Long** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] | +|**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] | +|**seccompProfile** | [**V1SeccompProfile**](V1SeccompProfile.md) | | [optional] | +|**supplementalGroups** | **List<Long>** | 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. | [optional] | +|**sysctls** | [**List<V1Sysctl>**](V1Sysctl.md) | 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. | [optional] | +|**windowsOptions** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] | diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 3ba1316c22..3153a68ae7 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -3,49 +3,50 @@ # V1PodSpec PodSpec is a description of a pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**activeDeadlineSeconds** | **Long** | 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. | [optional] -**affinity** | [**V1Affinity**](V1Affinity.md) | | [optional] -**automountServiceAccountToken** | **Boolean** | AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. | [optional] -**containers** | [**List<V1Container>**](V1Container.md) | 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. | -**dnsConfig** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | | [optional] -**dnsPolicy** | **String** | 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] -**enableServiceLinks** | **Boolean** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] -**ephemeralContainers** | [**List<V1EphemeralContainer>**](V1EphemeralContainer.md) | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. | [optional] -**hostAliases** | [**List<V1HostAlias>**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. | [optional] -**hostIPC** | **Boolean** | Use the host's ipc namespace. Optional: Default to false. | [optional] -**hostNetwork** | **Boolean** | Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. | [optional] -**hostPID** | **Boolean** | Use the host's pid namespace. Optional: Default to false. | [optional] -**hostUsers** | **Boolean** | Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. | [optional] -**hostname** | **String** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] -**imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod | [optional] -**initContainers** | [**List<V1Container>**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] -**nodeName** | **String** | 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. | [optional] -**nodeSelector** | **Map<String, 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/ | [optional] -**os** | [**V1PodOS**](V1PodOS.md) | | [optional] -**overhead** | [**Map<String, Quantity>**](Quantity.md) | Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md | [optional] -**preemptionPolicy** | **String** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. | [optional] -**priority** | **Integer** | The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. | [optional] -**priorityClassName** | **String** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. | [optional] -**readinessGates** | [**List<V1PodReadinessGate>**](V1PodReadinessGate.md) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates | [optional] -**resourceClaims** | [**List<V1PodResourceClaim>**](V1PodResourceClaim.md) | 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. | [optional] -**restartPolicy** | **String** | 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 | [optional] -**runtimeClassName** | **String** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class | [optional] -**schedulerName** | **String** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] -**schedulingGates** | [**List<V1PodSchedulingGate>**](V1PodSchedulingGate.md) | SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. This is a beta feature enabled by the PodSchedulingReadiness feature gate. | [optional] -**securityContext** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | | [optional] -**serviceAccount** | **String** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] -**serviceAccountName** | **String** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] -**setHostnameAsFQDN** | **Boolean** | 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. | [optional] -**shareProcessNamespace** | **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. | [optional] -**subdomain** | **String** | If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. | [optional] -**terminationGracePeriodSeconds** | **Long** | 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. | [optional] -**tolerations** | [**List<V1Toleration>**](V1Toleration.md) | If specified, the pod's tolerations. | [optional] -**topologySpreadConstraints** | [**List<V1TopologySpreadConstraint>**](V1TopologySpreadConstraint.md) | TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. | [optional] -**volumes** | [**List<V1Volume>**](V1Volume.md) | List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**activeDeadlineSeconds** | **Long** | 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. | [optional] | +|**affinity** | [**V1Affinity**](V1Affinity.md) | | [optional] | +|**automountServiceAccountToken** | **Boolean** | AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. | [optional] | +|**containers** | [**List<V1Container>**](V1Container.md) | 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. | | +|**dnsConfig** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | | [optional] | +|**dnsPolicy** | **String** | 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] | +|**enableServiceLinks** | **Boolean** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] | +|**ephemeralContainers** | [**List<V1EphemeralContainer>**](V1EphemeralContainer.md) | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. | [optional] | +|**hostAliases** | [**List<V1HostAlias>**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. | [optional] | +|**hostIPC** | **Boolean** | Use the host's ipc namespace. Optional: Default to false. | [optional] | +|**hostNetwork** | **Boolean** | Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. | [optional] | +|**hostPID** | **Boolean** | Use the host's pid namespace. Optional: Default to false. | [optional] | +|**hostUsers** | **Boolean** | Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. | [optional] | +|**hostname** | **String** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] | +|**imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod | [optional] | +|**initContainers** | [**List<V1Container>**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] | +|**nodeName** | **String** | 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. | [optional] | +|**nodeSelector** | **Map<String, 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/ | [optional] | +|**os** | [**V1PodOS**](V1PodOS.md) | | [optional] | +|**overhead** | **Map<String, Quantity>** | Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md | [optional] | +|**preemptionPolicy** | **String** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. | [optional] | +|**priority** | **Integer** | The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. | [optional] | +|**priorityClassName** | **String** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. | [optional] | +|**readinessGates** | [**List<V1PodReadinessGate>**](V1PodReadinessGate.md) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates | [optional] | +|**resourceClaims** | [**List<V1PodResourceClaim>**](V1PodResourceClaim.md) | 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. | [optional] | +|**restartPolicy** | **String** | 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 | [optional] | +|**runtimeClassName** | **String** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class | [optional] | +|**schedulerName** | **String** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] | +|**schedulingGates** | [**List<V1PodSchedulingGate>**](V1PodSchedulingGate.md) | SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. This is a beta feature enabled by the PodSchedulingReadiness feature gate. | [optional] | +|**securityContext** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | | [optional] | +|**serviceAccount** | **String** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] | +|**serviceAccountName** | **String** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] | +|**setHostnameAsFQDN** | **Boolean** | 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. | [optional] | +|**shareProcessNamespace** | **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. | [optional] | +|**subdomain** | **String** | If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. | [optional] | +|**terminationGracePeriodSeconds** | **Long** | 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. | [optional] | +|**tolerations** | [**List<V1Toleration>**](V1Toleration.md) | If specified, the pod's tolerations. | [optional] | +|**topologySpreadConstraints** | [**List<V1TopologySpreadConstraint>**](V1TopologySpreadConstraint.md) | TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. | [optional] | +|**volumes** | [**List<V1Volume>**](V1Volume.md) | List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes | [optional] | diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 0f438b11ad..4457fc8c65 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -3,6 +3,7 @@ # V1PodStatus 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 Name | Type | Description | Notes diff --git a/kubernetes/docs/V1PodTemplate.md b/kubernetes/docs/V1PodTemplate.md index e3dc73b101..2e7d4724ae 100644 --- a/kubernetes/docs/V1PodTemplate.md +++ b/kubernetes/docs/V1PodTemplate.md @@ -3,14 +3,15 @@ # V1PodTemplate PodTemplate describes a template for creating copies of a predefined pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PodTemplateList.md b/kubernetes/docs/V1PodTemplateList.md index 35b4ba80b1..2c35cc11c3 100644 --- a/kubernetes/docs/V1PodTemplateList.md +++ b/kubernetes/docs/V1PodTemplateList.md @@ -3,14 +3,15 @@ # V1PodTemplateList PodTemplateList is a list of PodTemplates. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1PodTemplate>**](V1PodTemplate.md) | List of pod templates | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1PodTemplate>**](V1PodTemplate.md) | List of pod templates | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PodTemplateSpec.md b/kubernetes/docs/V1PodTemplateSpec.md index 593cd0f36f..25f01f310d 100644 --- a/kubernetes/docs/V1PodTemplateSpec.md +++ b/kubernetes/docs/V1PodTemplateSpec.md @@ -3,12 +3,13 @@ # V1PodTemplateSpec PodTemplateSpec describes the data a pod should have when created from a template + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1PodSpec**](V1PodSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1PodSpec**](V1PodSpec.md) | | [optional] | diff --git a/kubernetes/docs/V1PolicyRule.md b/kubernetes/docs/V1PolicyRule.md index 9de688d5cf..989456f815 100644 --- a/kubernetes/docs/V1PolicyRule.md +++ b/kubernetes/docs/V1PolicyRule.md @@ -3,15 +3,16 @@ # V1PolicyRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups. | [optional] -**nonResourceURLs** | **List<String>** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] -**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] -**resources** | **List<String>** | Resources is a list of resources this rule applies to. '*' represents all resources. | [optional] -**verbs** | **List<String>** | Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups. | [optional] | +|**nonResourceURLs** | **List<String>** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] | +|**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | +|**resources** | **List<String>** | Resources is a list of resources this rule applies to. '*' represents all resources. | [optional] | +|**verbs** | **List<String>** | Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | | diff --git a/kubernetes/docs/V1PortStatus.md b/kubernetes/docs/V1PortStatus.md index 9b3047903d..7368c43602 100644 --- a/kubernetes/docs/V1PortStatus.md +++ b/kubernetes/docs/V1PortStatus.md @@ -2,13 +2,14 @@ # V1PortStatus + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **String** | 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. | [optional] -**port** | **Integer** | Port is the port number of the service port of which status is recorded here | -**protocol** | **String** | Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\" | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | 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. | [optional] | +|**port** | **Integer** | Port is the port number of the service port of which status is recorded here | | +|**protocol** | **String** | Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\" | | diff --git a/kubernetes/docs/V1PortworxVolumeSource.md b/kubernetes/docs/V1PortworxVolumeSource.md index 1df59c3018..9d930a549b 100644 --- a/kubernetes/docs/V1PortworxVolumeSource.md +++ b/kubernetes/docs/V1PortworxVolumeSource.md @@ -3,13 +3,14 @@ # V1PortworxVolumeSource PortworxVolumeSource represents a Portworx volume resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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. | [optional] -**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**volumeID** | **String** | volumeID uniquely identifies a Portworx volume | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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. | [optional] | +|**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**volumeID** | **String** | volumeID uniquely identifies a Portworx volume | | diff --git a/kubernetes/docs/V1Preconditions.md b/kubernetes/docs/V1Preconditions.md index 25b395ece7..00d4470f4d 100644 --- a/kubernetes/docs/V1Preconditions.md +++ b/kubernetes/docs/V1Preconditions.md @@ -3,12 +3,13 @@ # V1Preconditions Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resourceVersion** | **String** | Specifies the target ResourceVersion | [optional] -**uid** | **String** | Specifies the target UID. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resourceVersion** | **String** | Specifies the target ResourceVersion | [optional] | +|**uid** | **String** | Specifies the target UID. | [optional] | diff --git a/kubernetes/docs/V1PreferredSchedulingTerm.md b/kubernetes/docs/V1PreferredSchedulingTerm.md index 9e5210755d..40e04f5219 100644 --- a/kubernetes/docs/V1PreferredSchedulingTerm.md +++ b/kubernetes/docs/V1PreferredSchedulingTerm.md @@ -3,12 +3,13 @@ # V1PreferredSchedulingTerm 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | | -**weight** | **Integer** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | | | +|**weight** | **Integer** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | | diff --git a/kubernetes/docs/V1PriorityClass.md b/kubernetes/docs/V1PriorityClass.md index 8db98903cb..e4d213daad 100644 --- a/kubernetes/docs/V1PriorityClass.md +++ b/kubernetes/docs/V1PriorityClass.md @@ -3,17 +3,18 @@ # V1PriorityClass PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**description** | **String** | description is an arbitrary string that usually provides guidelines on when this priority class should be used. | [optional] -**globalDefault** | **Boolean** | 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. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. | [optional] -**value** | **Integer** | value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**description** | **String** | description is an arbitrary string that usually provides guidelines on when this priority class should be used. | [optional] | +|**globalDefault** | **Boolean** | 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. | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. | [optional] | +|**value** | **Integer** | value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1PriorityClassList.md b/kubernetes/docs/V1PriorityClassList.md index b16256c536..782fa6dc7d 100644 --- a/kubernetes/docs/V1PriorityClassList.md +++ b/kubernetes/docs/V1PriorityClassList.md @@ -3,14 +3,15 @@ # V1PriorityClassList PriorityClassList is a collection of priority classes. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1PriorityClass>**](V1PriorityClass.md) | items is the list of PriorityClasses | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1PriorityClass>**](V1PriorityClass.md) | items is the list of PriorityClasses | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1Probe.md b/kubernetes/docs/V1Probe.md index 3f4b61d645..bcb7b74c43 100644 --- a/kubernetes/docs/V1Probe.md +++ b/kubernetes/docs/V1Probe.md @@ -3,20 +3,21 @@ # V1Probe Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] -**failureThreshold** | **Integer** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] -**grpc** | [**V1GRPCAction**](V1GRPCAction.md) | | [optional] -**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] -**initialDelaySeconds** | **Integer** | 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 | [optional] -**periodSeconds** | **Integer** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] -**successThreshold** | **Integer** | 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. | [optional] -**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] -**terminationGracePeriodSeconds** | **Long** | 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. | [optional] -**timeoutSeconds** | **Integer** | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] | +|**failureThreshold** | **Integer** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] | +|**grpc** | [**V1GRPCAction**](V1GRPCAction.md) | | [optional] | +|**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] | +|**initialDelaySeconds** | **Integer** | 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 | [optional] | +|**periodSeconds** | **Integer** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] | +|**successThreshold** | **Integer** | 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. | [optional] | +|**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] | +|**terminationGracePeriodSeconds** | **Long** | 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. | [optional] | +|**timeoutSeconds** | **Integer** | 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 | [optional] | diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md index 873b02bdb3..7efe09e7c7 100644 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ b/kubernetes/docs/V1ProjectedVolumeSource.md @@ -3,12 +3,13 @@ # V1ProjectedVolumeSource Represents a projected volume source + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultMode** | **Integer** | defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**sources** | [**List<V1VolumeProjection>**](V1VolumeProjection.md) | sources is the list of volume projections | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultMode** | **Integer** | defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] | +|**sources** | [**List<V1VolumeProjection>**](V1VolumeProjection.md) | sources is the list of volume projections | [optional] | diff --git a/kubernetes/docs/V1QuobyteVolumeSource.md b/kubernetes/docs/V1QuobyteVolumeSource.md index 39a25815af..dd1e961927 100644 --- a/kubernetes/docs/V1QuobyteVolumeSource.md +++ b/kubernetes/docs/V1QuobyteVolumeSource.md @@ -3,16 +3,17 @@ # V1QuobyteVolumeSource Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **String** | group to map volume access to Default is no group | [optional] -**readOnly** | **Boolean** | readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. | [optional] -**registry** | **String** | 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 | -**tenant** | **String** | tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin | [optional] -**user** | **String** | user to map volume access to Defaults to serivceaccount user | [optional] -**volume** | **String** | volume is a string that references an already created Quobyte volume by name. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | **String** | group to map volume access to Default is no group | [optional] | +|**readOnly** | **Boolean** | readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. | [optional] | +|**registry** | **String** | 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 | | +|**tenant** | **String** | tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin | [optional] | +|**user** | **String** | user to map volume access to Defaults to serivceaccount user | [optional] | +|**volume** | **String** | volume is a string that references an already created Quobyte volume by name. | | diff --git a/kubernetes/docs/V1RBDPersistentVolumeSource.md b/kubernetes/docs/V1RBDPersistentVolumeSource.md index 0322b8349a..dfa806d5fe 100644 --- a/kubernetes/docs/V1RBDPersistentVolumeSource.md +++ b/kubernetes/docs/V1RBDPersistentVolumeSource.md @@ -3,18 +3,19 @@ # V1RBDPersistentVolumeSource Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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 | [optional] -**image** | **String** | image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | -**keyring** | **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 | [optional] -**monitors** | **List<String>** | monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | -**pool** | **String** | pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] -**readOnly** | **Boolean** | 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 | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] -**user** | **String** | user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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 | [optional] | +|**image** | **String** | image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | +|**keyring** | **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 | [optional] | +|**monitors** | **List<String>** | monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | +|**pool** | **String** | pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] | +|**readOnly** | **Boolean** | 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 | [optional] | +|**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] | +|**user** | **String** | user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] | diff --git a/kubernetes/docs/V1RBDVolumeSource.md b/kubernetes/docs/V1RBDVolumeSource.md index c841ed8098..bd60e3377b 100644 --- a/kubernetes/docs/V1RBDVolumeSource.md +++ b/kubernetes/docs/V1RBDVolumeSource.md @@ -3,18 +3,19 @@ # V1RBDVolumeSource Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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 | [optional] -**image** | **String** | image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | -**keyring** | **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 | [optional] -**monitors** | **List<String>** | monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | -**pool** | **String** | pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] -**readOnly** | **Boolean** | 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 | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] -**user** | **String** | user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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 | [optional] | +|**image** | **String** | image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | +|**keyring** | **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 | [optional] | +|**monitors** | **List<String>** | monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | +|**pool** | **String** | pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] | +|**readOnly** | **Boolean** | 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 | [optional] | +|**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] | +|**user** | **String** | user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] | diff --git a/kubernetes/docs/V1ReplicaSet.md b/kubernetes/docs/V1ReplicaSet.md index ec952a83e6..bd3aea035d 100644 --- a/kubernetes/docs/V1ReplicaSet.md +++ b/kubernetes/docs/V1ReplicaSet.md @@ -3,15 +3,16 @@ # V1ReplicaSet ReplicaSet ensures that a specified number of pod replicas are running at any given time. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | [optional] -**status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | [optional] | +|**status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ReplicaSetCondition.md b/kubernetes/docs/V1ReplicaSetCondition.md index 94ded64415..71f12092f6 100644 --- a/kubernetes/docs/V1ReplicaSetCondition.md +++ b/kubernetes/docs/V1ReplicaSetCondition.md @@ -3,15 +3,16 @@ # V1ReplicaSetCondition ReplicaSetCondition describes the state of a replica set at a certain point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | The last time the condition transitioned from one status to another. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of replica set condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | The last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | A human readable message indicating details about the transition. | [optional] | +|**reason** | **String** | The reason for the condition's last transition. | [optional] | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of replica set condition. | | diff --git a/kubernetes/docs/V1ReplicaSetList.md b/kubernetes/docs/V1ReplicaSetList.md index 87e178f9b6..94be8888b5 100644 --- a/kubernetes/docs/V1ReplicaSetList.md +++ b/kubernetes/docs/V1ReplicaSetList.md @@ -3,14 +3,15 @@ # V1ReplicaSetList ReplicaSetList is a collection of ReplicaSets. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ReplicaSet>**](V1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ReplicaSet>**](V1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ReplicaSetSpec.md b/kubernetes/docs/V1ReplicaSetSpec.md index 399bb8872c..159561a0fa 100644 --- a/kubernetes/docs/V1ReplicaSetSpec.md +++ b/kubernetes/docs/V1ReplicaSetSpec.md @@ -3,14 +3,15 @@ # V1ReplicaSetSpec ReplicaSetSpec is the specification of a ReplicaSet. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Integer** | 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) | [optional] -**replicas** | **Integer** | 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 | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minReadySeconds** | **Integer** | 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) | [optional] | +|**replicas** | **Integer** | 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 | [optional] | +|**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | | +|**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] | diff --git a/kubernetes/docs/V1ReplicaSetStatus.md b/kubernetes/docs/V1ReplicaSetStatus.md index a2ea81ffdd..e6c53e2336 100644 --- a/kubernetes/docs/V1ReplicaSetStatus.md +++ b/kubernetes/docs/V1ReplicaSetStatus.md @@ -3,16 +3,17 @@ # V1ReplicaSetStatus ReplicaSetStatus represents the current status of a ReplicaSet. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] -**conditions** | [**List<V1ReplicaSetCondition>**](V1ReplicaSetCondition.md) | Represents the latest available observations of a replica set's current state. | [optional] -**fullyLabeledReplicas** | **Integer** | The number of pods that have labels matching the labels of the pod template of the replicaset. | [optional] -**observedGeneration** | **Long** | ObservedGeneration reflects the generation of the most recently observed ReplicaSet. | [optional] -**readyReplicas** | **Integer** | readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. | [optional] -**replicas** | **Integer** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] | +|**conditions** | [**List<V1ReplicaSetCondition>**](V1ReplicaSetCondition.md) | Represents the latest available observations of a replica set's current state. | [optional] | +|**fullyLabeledReplicas** | **Integer** | The number of pods that have labels matching the labels of the pod template of the replicaset. | [optional] | +|**observedGeneration** | **Long** | ObservedGeneration reflects the generation of the most recently observed ReplicaSet. | [optional] | +|**readyReplicas** | **Integer** | readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. | [optional] | +|**replicas** | **Integer** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | | diff --git a/kubernetes/docs/V1ReplicationController.md b/kubernetes/docs/V1ReplicationController.md index 7be2946f57..76d3c25212 100644 --- a/kubernetes/docs/V1ReplicationController.md +++ b/kubernetes/docs/V1ReplicationController.md @@ -3,15 +3,16 @@ # V1ReplicationController ReplicationController represents the configuration of a replication controller. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1ReplicationControllerSpec**](V1ReplicationControllerSpec.md) | | [optional] -**status** | [**V1ReplicationControllerStatus**](V1ReplicationControllerStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1ReplicationControllerSpec**](V1ReplicationControllerSpec.md) | | [optional] | +|**status** | [**V1ReplicationControllerStatus**](V1ReplicationControllerStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ReplicationControllerCondition.md b/kubernetes/docs/V1ReplicationControllerCondition.md index 4cbb50f66e..44c9430e9d 100644 --- a/kubernetes/docs/V1ReplicationControllerCondition.md +++ b/kubernetes/docs/V1ReplicationControllerCondition.md @@ -3,15 +3,16 @@ # V1ReplicationControllerCondition ReplicationControllerCondition describes the state of a replication controller at a certain point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | The last time the condition transitioned from one status to another. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of replication controller condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | The last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | A human readable message indicating details about the transition. | [optional] | +|**reason** | **String** | The reason for the condition's last transition. | [optional] | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of replication controller condition. | | diff --git a/kubernetes/docs/V1ReplicationControllerList.md b/kubernetes/docs/V1ReplicationControllerList.md index 149c0a21e8..082b3d625f 100644 --- a/kubernetes/docs/V1ReplicationControllerList.md +++ b/kubernetes/docs/V1ReplicationControllerList.md @@ -3,14 +3,15 @@ # V1ReplicationControllerList ReplicationControllerList is a collection of replication controllers. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ReplicationController>**](V1ReplicationController.md) | List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ReplicationController>**](V1ReplicationController.md) | List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ReplicationControllerSpec.md b/kubernetes/docs/V1ReplicationControllerSpec.md index 04f33891bf..0877ea4173 100644 --- a/kubernetes/docs/V1ReplicationControllerSpec.md +++ b/kubernetes/docs/V1ReplicationControllerSpec.md @@ -3,14 +3,15 @@ # V1ReplicationControllerSpec ReplicationControllerSpec is the specification of a replication controller. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Integer** | 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) | [optional] -**replicas** | **Integer** | 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 | [optional] -**selector** | **Map<String, String>** | 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 | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minReadySeconds** | **Integer** | 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) | [optional] | +|**replicas** | **Integer** | 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 | [optional] | +|**selector** | **Map<String, String>** | 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 | [optional] | +|**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] | diff --git a/kubernetes/docs/V1ReplicationControllerStatus.md b/kubernetes/docs/V1ReplicationControllerStatus.md index f398220962..3c931b10dc 100644 --- a/kubernetes/docs/V1ReplicationControllerStatus.md +++ b/kubernetes/docs/V1ReplicationControllerStatus.md @@ -3,16 +3,17 @@ # V1ReplicationControllerStatus ReplicationControllerStatus represents the current status of a replication controller. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replication controller. | [optional] -**conditions** | [**List<V1ReplicationControllerCondition>**](V1ReplicationControllerCondition.md) | Represents the latest available observations of a replication controller's current state. | [optional] -**fullyLabeledReplicas** | **Integer** | The number of pods that have labels matching the labels of the pod template of the replication controller. | [optional] -**observedGeneration** | **Long** | ObservedGeneration reflects the generation of the most recently observed replication controller. | [optional] -**readyReplicas** | **Integer** | The number of ready replicas for this replication controller. | [optional] -**replicas** | **Integer** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replication controller. | [optional] | +|**conditions** | [**List<V1ReplicationControllerCondition>**](V1ReplicationControllerCondition.md) | Represents the latest available observations of a replication controller's current state. | [optional] | +|**fullyLabeledReplicas** | **Integer** | The number of pods that have labels matching the labels of the pod template of the replication controller. | [optional] | +|**observedGeneration** | **Long** | ObservedGeneration reflects the generation of the most recently observed replication controller. | [optional] | +|**readyReplicas** | **Integer** | The number of ready replicas for this replication controller. | [optional] | +|**replicas** | **Integer** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller | | diff --git a/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md index 96faa9d5b7..64be5ad806 100644 --- a/kubernetes/docs/V1ResourceAttributes.md +++ b/kubernetes/docs/V1ResourceAttributes.md @@ -3,17 +3,18 @@ # V1ResourceAttributes ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **String** | Group is the API Group of the Resource. \"*\" means all. | [optional] -**name** | **String** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] -**namespace** | **String** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] -**resource** | **String** | Resource is one of the existing resource types. \"*\" means all. | [optional] -**subresource** | **String** | Subresource is one of the existing resource types. \"\" means none. | [optional] -**verb** | **String** | Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] -**version** | **String** | Version is the API Version of the Resource. \"*\" means all. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | **String** | Group is the API Group of the Resource. \"*\" means all. | [optional] | +|**name** | **String** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] | +|**namespace** | **String** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] | +|**resource** | **String** | Resource is one of the existing resource types. \"*\" means all. | [optional] | +|**subresource** | **String** | Subresource is one of the existing resource types. \"\" means none. | [optional] | +|**verb** | **String** | Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] | +|**version** | **String** | Version is the API Version of the Resource. \"*\" means all. | [optional] | diff --git a/kubernetes/docs/V1ResourceClaim.md b/kubernetes/docs/V1ResourceClaim.md index 60c1c6b3e0..2d72f664c3 100644 --- a/kubernetes/docs/V1ResourceClaim.md +++ b/kubernetes/docs/V1ResourceClaim.md @@ -3,11 +3,12 @@ # V1ResourceClaim ResourceClaim references one entry in PodSpec.ResourceClaims. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 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. | | diff --git a/kubernetes/docs/V1ResourceFieldSelector.md b/kubernetes/docs/V1ResourceFieldSelector.md index a7c5e94255..37844a3dd7 100644 --- a/kubernetes/docs/V1ResourceFieldSelector.md +++ b/kubernetes/docs/V1ResourceFieldSelector.md @@ -3,13 +3,14 @@ # V1ResourceFieldSelector ResourceFieldSelector represents container resources (cpu, memory) and their output format + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerName** | **String** | Container name: required for volumes, optional for env vars | [optional] -**divisor** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] -**resource** | **String** | Required: resource to select | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containerName** | **String** | Container name: required for volumes, optional for env vars | [optional] | +|**divisor** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +|**resource** | **String** | Required: resource to select | | diff --git a/kubernetes/docs/V1ResourceQuota.md b/kubernetes/docs/V1ResourceQuota.md index 8abeeb23da..edec1eb4a2 100644 --- a/kubernetes/docs/V1ResourceQuota.md +++ b/kubernetes/docs/V1ResourceQuota.md @@ -3,15 +3,16 @@ # V1ResourceQuota ResourceQuota sets aggregate quota restrictions enforced per namespace + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | | [optional] -**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | | [optional] | +|**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ResourceQuotaList.md b/kubernetes/docs/V1ResourceQuotaList.md index 03b1147edf..a5456398cd 100644 --- a/kubernetes/docs/V1ResourceQuotaList.md +++ b/kubernetes/docs/V1ResourceQuotaList.md @@ -3,14 +3,15 @@ # V1ResourceQuotaList ResourceQuotaList is a list of ResourceQuota items. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ResourceQuota>**](V1ResourceQuota.md) | Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ResourceQuota>**](V1ResourceQuota.md) | Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ResourceQuotaSpec.md b/kubernetes/docs/V1ResourceQuotaSpec.md index 7006f1a423..f2af003f9f 100644 --- a/kubernetes/docs/V1ResourceQuotaSpec.md +++ b/kubernetes/docs/V1ResourceQuotaSpec.md @@ -3,13 +3,14 @@ # V1ResourceQuotaSpec ResourceQuotaSpec defines the desired hard limits to enforce for Quota. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hard** | [**Map<String, Quantity>**](Quantity.md) | hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | [optional] -**scopeSelector** | [**V1ScopeSelector**](V1ScopeSelector.md) | | [optional] -**scopes** | **List<String>** | A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hard** | **Map<String, Quantity>** | hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | [optional] | +|**scopeSelector** | [**V1ScopeSelector**](V1ScopeSelector.md) | | [optional] | +|**scopes** | **List<String>** | A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. | [optional] | diff --git a/kubernetes/docs/V1ResourceQuotaStatus.md b/kubernetes/docs/V1ResourceQuotaStatus.md index f4cd565da7..4737ccf789 100644 --- a/kubernetes/docs/V1ResourceQuotaStatus.md +++ b/kubernetes/docs/V1ResourceQuotaStatus.md @@ -3,12 +3,13 @@ # V1ResourceQuotaStatus ResourceQuotaStatus defines the enforced hard limits and observed use. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hard** | [**Map<String, Quantity>**](Quantity.md) | Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | [optional] -**used** | [**Map<String, Quantity>**](Quantity.md) | Used is the current observed total usage of the resource in the namespace. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hard** | **Map<String, Quantity>** | Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | [optional] | +|**used** | **Map<String, Quantity>** | Used is the current observed total usage of the resource in the namespace. | [optional] | diff --git a/kubernetes/docs/V1ResourceRequirements.md b/kubernetes/docs/V1ResourceRequirements.md index 0321c0db31..29f077e454 100644 --- a/kubernetes/docs/V1ResourceRequirements.md +++ b/kubernetes/docs/V1ResourceRequirements.md @@ -3,13 +3,14 @@ # V1ResourceRequirements ResourceRequirements describes the compute resource requirements. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**claims** | [**List<V1ResourceClaim>**](V1ResourceClaim.md) | 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. | [optional] -**limits** | [**Map<String, Quantity>**](Quantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] -**requests** | [**Map<String, Quantity>**](Quantity.md) | 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/ | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**claims** | [**List<V1ResourceClaim>**](V1ResourceClaim.md) | 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. | [optional] | +|**limits** | **Map<String, Quantity>** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | +|**requests** | **Map<String, Quantity>** | 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/ | [optional] | diff --git a/kubernetes/docs/V1ResourceRule.md b/kubernetes/docs/V1ResourceRule.md index 3858896f44..372012407d 100644 --- a/kubernetes/docs/V1ResourceRule.md +++ b/kubernetes/docs/V1ResourceRule.md @@ -3,14 +3,15 @@ # V1ResourceRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. | [optional] -**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. | [optional] -**resources** | **List<String>** | Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. | [optional] -**verbs** | **List<String>** | Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. | [optional] | +|**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. | [optional] | +|**resources** | **List<String>** | Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. | [optional] | +|**verbs** | **List<String>** | Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | | diff --git a/kubernetes/docs/V1Role.md b/kubernetes/docs/V1Role.md index f74bdc1032..d6831c43cb 100644 --- a/kubernetes/docs/V1Role.md +++ b/kubernetes/docs/V1Role.md @@ -3,14 +3,15 @@ # V1Role Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1RoleBinding.md b/kubernetes/docs/V1RoleBinding.md index b5b6fb6c7d..3b3be4e51f 100644 --- a/kubernetes/docs/V1RoleBinding.md +++ b/kubernetes/docs/V1RoleBinding.md @@ -3,15 +3,16 @@ # V1RoleBinding 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**roleRef** | [**V1RoleRef**](V1RoleRef.md) | | -**subjects** | [**List<V1Subject>**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**roleRef** | [**V1RoleRef**](V1RoleRef.md) | | | +|**subjects** | [**List<V1Subject>**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1RoleBindingList.md b/kubernetes/docs/V1RoleBindingList.md index 88bc5c52e2..2d695dc145 100644 --- a/kubernetes/docs/V1RoleBindingList.md +++ b/kubernetes/docs/V1RoleBindingList.md @@ -3,14 +3,15 @@ # V1RoleBindingList RoleBindingList is a collection of RoleBindings + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1RoleBinding>**](V1RoleBinding.md) | Items is a list of RoleBindings | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1RoleBinding>**](V1RoleBinding.md) | Items is a list of RoleBindings | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1RoleList.md b/kubernetes/docs/V1RoleList.md index 28fbdc2712..e746c482d6 100644 --- a/kubernetes/docs/V1RoleList.md +++ b/kubernetes/docs/V1RoleList.md @@ -3,14 +3,15 @@ # V1RoleList RoleList is a collection of Roles + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Role>**](V1Role.md) | Items is a list of Roles | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Role>**](V1Role.md) | Items is a list of Roles | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1RoleRef.md b/kubernetes/docs/V1RoleRef.md index e2e3ef6f12..de03641369 100644 --- a/kubernetes/docs/V1RoleRef.md +++ b/kubernetes/docs/V1RoleRef.md @@ -3,13 +3,14 @@ # V1RoleRef RoleRef contains information that points to the role being used + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | APIGroup is the group for the resource being referenced | -**kind** | **String** | Kind is the type of resource being referenced | -**name** | **String** | Name is the name of resource being referenced | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | APIGroup is the group for the resource being referenced | | +|**kind** | **String** | Kind is the type of resource being referenced | | +|**name** | **String** | Name is the name of resource being referenced | | diff --git a/kubernetes/docs/V1RollingUpdateDaemonSet.md b/kubernetes/docs/V1RollingUpdateDaemonSet.md index 913b247edc..4f7f0fb144 100644 --- a/kubernetes/docs/V1RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1RollingUpdateDaemonSet.md @@ -3,12 +3,13 @@ # V1RollingUpdateDaemonSet Spec to control the desired behavior of daemon set rolling update. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxSurge** | [**IntOrString**](IntOrString.md) | 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. | [optional] -**maxUnavailable** | [**IntOrString**](IntOrString.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**maxSurge** | **IntOrString** | 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. | [optional] | +|**maxUnavailable** | **IntOrString** | 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. | [optional] | diff --git a/kubernetes/docs/V1RollingUpdateDeployment.md b/kubernetes/docs/V1RollingUpdateDeployment.md index ca3498090e..db6a62b43a 100644 --- a/kubernetes/docs/V1RollingUpdateDeployment.md +++ b/kubernetes/docs/V1RollingUpdateDeployment.md @@ -3,12 +3,13 @@ # V1RollingUpdateDeployment Spec to control the desired behavior of rolling update. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxSurge** | [**IntOrString**](IntOrString.md) | 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. | [optional] -**maxUnavailable** | [**IntOrString**](IntOrString.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**maxSurge** | **IntOrString** | 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. | [optional] | +|**maxUnavailable** | **IntOrString** | 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. | [optional] | diff --git a/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md b/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md index 9877c82028..0f43b008b7 100644 --- a/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md +++ b/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md @@ -3,12 +3,13 @@ # V1RollingUpdateStatefulSetStrategy RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxUnavailable** | [**IntOrString**](IntOrString.md) | 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. | [optional] -**partition** | **Integer** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**maxUnavailable** | **IntOrString** | 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. | [optional] | +|**partition** | **Integer** | 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. | [optional] | diff --git a/kubernetes/docs/V1RuleWithOperations.md b/kubernetes/docs/V1RuleWithOperations.md index 377e9142c4..a2416bf79a 100644 --- a/kubernetes/docs/V1RuleWithOperations.md +++ b/kubernetes/docs/V1RuleWithOperations.md @@ -3,15 +3,16 @@ # V1RuleWithOperations RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] -**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] -**operations** | **List<String>** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] -**resources** | **List<String>** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] -**scope** | **String** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**operations** | **List<String>** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**resources** | **List<String>** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | +|**scope** | **String** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] | diff --git a/kubernetes/docs/V1RuntimeClass.md b/kubernetes/docs/V1RuntimeClass.md index 32b5d9a4e9..1a77d2af19 100644 --- a/kubernetes/docs/V1RuntimeClass.md +++ b/kubernetes/docs/V1RuntimeClass.md @@ -3,16 +3,17 @@ # V1RuntimeClass 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**handler** | **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. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**overhead** | [**V1Overhead**](V1Overhead.md) | | [optional] -**scheduling** | [**V1Scheduling**](V1Scheduling.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**handler** | **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. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**overhead** | [**V1Overhead**](V1Overhead.md) | | [optional] | +|**scheduling** | [**V1Scheduling**](V1Scheduling.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1RuntimeClassList.md b/kubernetes/docs/V1RuntimeClassList.md index d0abbadab9..3ad0857790 100644 --- a/kubernetes/docs/V1RuntimeClassList.md +++ b/kubernetes/docs/V1RuntimeClassList.md @@ -3,14 +3,15 @@ # V1RuntimeClassList RuntimeClassList is a list of RuntimeClass objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1RuntimeClass>**](V1RuntimeClass.md) | items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1RuntimeClass>**](V1RuntimeClass.md) | items is a list of schema objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1SELinuxOptions.md b/kubernetes/docs/V1SELinuxOptions.md index fb639cd299..0c3f7b67d6 100644 --- a/kubernetes/docs/V1SELinuxOptions.md +++ b/kubernetes/docs/V1SELinuxOptions.md @@ -3,14 +3,15 @@ # V1SELinuxOptions SELinuxOptions are the labels to be applied to the container + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**level** | **String** | Level is SELinux level label that applies to the container. | [optional] -**role** | **String** | Role is a SELinux role label that applies to the container. | [optional] -**type** | **String** | Type is a SELinux type label that applies to the container. | [optional] -**user** | **String** | User is a SELinux user label that applies to the container. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**level** | **String** | Level is SELinux level label that applies to the container. | [optional] | +|**role** | **String** | Role is a SELinux role label that applies to the container. | [optional] | +|**type** | **String** | Type is a SELinux type label that applies to the container. | [optional] | +|**user** | **String** | User is a SELinux user label that applies to the container. | [optional] | diff --git a/kubernetes/docs/V1Scale.md b/kubernetes/docs/V1Scale.md index ef09295c94..3a567f9821 100644 --- a/kubernetes/docs/V1Scale.md +++ b/kubernetes/docs/V1Scale.md @@ -3,15 +3,16 @@ # V1Scale Scale represents a scaling request for a resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1ScaleSpec**](V1ScaleSpec.md) | | [optional] -**status** | [**V1ScaleStatus**](V1ScaleStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1ScaleSpec**](V1ScaleSpec.md) | | [optional] | +|**status** | [**V1ScaleStatus**](V1ScaleStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md b/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md index be3285f02a..d5747c4b15 100644 --- a/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md +++ b/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md @@ -3,20 +3,21 @@ # V1ScaleIOPersistentVolumeSource ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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\" | [optional] -**gateway** | **String** | gateway is the host address of the ScaleIO API Gateway. | -**protectionDomain** | **String** | protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. | [optional] -**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | -**sslEnabled** | **Boolean** | sslEnabled is the flag to enable/disable SSL communication with Gateway, default false | [optional] -**storageMode** | **String** | storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. | [optional] -**storagePool** | **String** | storagePool is the ScaleIO Storage Pool associated with the protection domain. | [optional] -**system** | **String** | system is the name of the storage system as configured in ScaleIO. | -**volumeName** | **String** | volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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\" | [optional] | +|**gateway** | **String** | gateway is the host address of the ScaleIO API Gateway. | | +|**protectionDomain** | **String** | protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. | [optional] | +|**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | | +|**sslEnabled** | **Boolean** | sslEnabled is the flag to enable/disable SSL communication with Gateway, default false | [optional] | +|**storageMode** | **String** | storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. | [optional] | +|**storagePool** | **String** | storagePool is the ScaleIO Storage Pool associated with the protection domain. | [optional] | +|**system** | **String** | system is the name of the storage system as configured in ScaleIO. | | +|**volumeName** | **String** | volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. | [optional] | diff --git a/kubernetes/docs/V1ScaleIOVolumeSource.md b/kubernetes/docs/V1ScaleIOVolumeSource.md index 6e5932409a..3f8a3668e2 100644 --- a/kubernetes/docs/V1ScaleIOVolumeSource.md +++ b/kubernetes/docs/V1ScaleIOVolumeSource.md @@ -3,20 +3,21 @@ # V1ScaleIOVolumeSource ScaleIOVolumeSource represents a persistent ScaleIO volume + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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\". | [optional] -**gateway** | **String** | gateway is the host address of the ScaleIO API Gateway. | -**protectionDomain** | **String** | protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. | [optional] -**readOnly** | **Boolean** | readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | -**sslEnabled** | **Boolean** | sslEnabled Flag enable/disable SSL communication with Gateway, default false | [optional] -**storageMode** | **String** | storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. | [optional] -**storagePool** | **String** | storagePool is the ScaleIO Storage Pool associated with the protection domain. | [optional] -**system** | **String** | system is the name of the storage system as configured in ScaleIO. | -**volumeName** | **String** | volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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\". | [optional] | +|**gateway** | **String** | gateway is the host address of the ScaleIO API Gateway. | | +|**protectionDomain** | **String** | protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. | [optional] | +|**readOnly** | **Boolean** | readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | | +|**sslEnabled** | **Boolean** | sslEnabled Flag enable/disable SSL communication with Gateway, default false | [optional] | +|**storageMode** | **String** | storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. | [optional] | +|**storagePool** | **String** | storagePool is the ScaleIO Storage Pool associated with the protection domain. | [optional] | +|**system** | **String** | system is the name of the storage system as configured in ScaleIO. | | +|**volumeName** | **String** | volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. | [optional] | diff --git a/kubernetes/docs/V1ScaleSpec.md b/kubernetes/docs/V1ScaleSpec.md index 1c5c476476..87f0bceac0 100644 --- a/kubernetes/docs/V1ScaleSpec.md +++ b/kubernetes/docs/V1ScaleSpec.md @@ -3,11 +3,12 @@ # V1ScaleSpec ScaleSpec describes the attributes of a scale subresource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Integer** | replicas is the desired number of instances for the scaled object. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**replicas** | **Integer** | replicas is the desired number of instances for the scaled object. | [optional] | diff --git a/kubernetes/docs/V1ScaleStatus.md b/kubernetes/docs/V1ScaleStatus.md index 9e44beba5c..a4b5d521d9 100644 --- a/kubernetes/docs/V1ScaleStatus.md +++ b/kubernetes/docs/V1ScaleStatus.md @@ -3,12 +3,13 @@ # V1ScaleStatus ScaleStatus represents the current status of a scale subresource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Integer** | replicas is the actual number of observed instances of the scaled object. | -**selector** | **String** | 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/ | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**replicas** | **Integer** | replicas is the actual number of observed instances of the scaled object. | | +|**selector** | **String** | 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/ | [optional] | diff --git a/kubernetes/docs/V1Scheduling.md b/kubernetes/docs/V1Scheduling.md index 69b78ff45c..5b6c5f0354 100644 --- a/kubernetes/docs/V1Scheduling.md +++ b/kubernetes/docs/V1Scheduling.md @@ -3,12 +3,13 @@ # V1Scheduling Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodeSelector** | **Map<String, String>** | nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. | [optional] -**tolerations** | [**List<V1Toleration>**](V1Toleration.md) | tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nodeSelector** | **Map<String, String>** | nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. | [optional] | +|**tolerations** | [**List<V1Toleration>**](V1Toleration.md) | tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. | [optional] | diff --git a/kubernetes/docs/V1ScopeSelector.md b/kubernetes/docs/V1ScopeSelector.md index 5d4188771b..49995cf3e1 100644 --- a/kubernetes/docs/V1ScopeSelector.md +++ b/kubernetes/docs/V1ScopeSelector.md @@ -3,11 +3,12 @@ # V1ScopeSelector A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchExpressions** | [**List<V1ScopedResourceSelectorRequirement>**](V1ScopedResourceSelectorRequirement.md) | A list of scope selector requirements by scope of the resources. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchExpressions** | [**List<V1ScopedResourceSelectorRequirement>**](V1ScopedResourceSelectorRequirement.md) | A list of scope selector requirements by scope of the resources. | [optional] | diff --git a/kubernetes/docs/V1ScopedResourceSelectorRequirement.md b/kubernetes/docs/V1ScopedResourceSelectorRequirement.md index b9fbe68400..a840dfc933 100644 --- a/kubernetes/docs/V1ScopedResourceSelectorRequirement.md +++ b/kubernetes/docs/V1ScopedResourceSelectorRequirement.md @@ -3,13 +3,14 @@ # V1ScopedResourceSelectorRequirement 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operator** | **String** | Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. | -**scopeName** | **String** | The name of the scope that the selector applies to. | -**values** | **List<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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**operator** | **String** | Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. | | +|**scopeName** | **String** | The name of the scope that the selector applies to. | | +|**values** | **List<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. | [optional] | diff --git a/kubernetes/docs/V1SeccompProfile.md b/kubernetes/docs/V1SeccompProfile.md index 1db673ef28..5008164112 100644 --- a/kubernetes/docs/V1SeccompProfile.md +++ b/kubernetes/docs/V1SeccompProfile.md @@ -3,6 +3,7 @@ # V1SeccompProfile SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1Secret.md b/kubernetes/docs/V1Secret.md index 793a65d8a9..5ff4e4b505 100644 --- a/kubernetes/docs/V1Secret.md +++ b/kubernetes/docs/V1Secret.md @@ -3,17 +3,18 @@ # V1Secret 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**data** | **Map<String, byte[]>** | 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 | [optional] -**immutable** | **Boolean** | 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. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**stringData** | **Map<String, String>** | 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. | [optional] -**type** | **String** | Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**data** | **Map<String, byte[]>** | 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 | [optional] | +|**immutable** | **Boolean** | 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. | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**stringData** | **Map<String, String>** | 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. | [optional] | +|**type** | **String** | Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1SecretEnvSource.md b/kubernetes/docs/V1SecretEnvSource.md index 815cdf5674..be2d5de177 100644 --- a/kubernetes/docs/V1SecretEnvSource.md +++ b/kubernetes/docs/V1SecretEnvSource.md @@ -3,12 +3,13 @@ # V1SecretEnvSource 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | Specify whether the Secret must be defined | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | +|**optional** | **Boolean** | Specify whether the Secret must be defined | [optional] | diff --git a/kubernetes/docs/V1SecretKeySelector.md b/kubernetes/docs/V1SecretKeySelector.md index f34f2b3116..4b94afd5dd 100644 --- a/kubernetes/docs/V1SecretKeySelector.md +++ b/kubernetes/docs/V1SecretKeySelector.md @@ -3,13 +3,14 @@ # V1SecretKeySelector SecretKeySelector selects a key of a Secret. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | The key of the secret to select from. Must be a valid secret key. | -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | Specify whether the Secret or its key must be defined | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | The key of the secret to select from. Must be a valid secret key. | | +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | +|**optional** | **Boolean** | Specify whether the Secret or its key must be defined | [optional] | diff --git a/kubernetes/docs/V1SecretList.md b/kubernetes/docs/V1SecretList.md index d82cf88435..e4e3005e1a 100644 --- a/kubernetes/docs/V1SecretList.md +++ b/kubernetes/docs/V1SecretList.md @@ -3,14 +3,15 @@ # V1SecretList SecretList is a list of Secret. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Secret>**](V1Secret.md) | Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Secret>**](V1Secret.md) | Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1SecretProjection.md b/kubernetes/docs/V1SecretProjection.md index 3f68363a5e..1bd5794e14 100644 --- a/kubernetes/docs/V1SecretProjection.md +++ b/kubernetes/docs/V1SecretProjection.md @@ -3,13 +3,14 @@ # V1SecretProjection 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | optional field specify whether the Secret or its key must be defined | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] | +|**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] | +|**optional** | **Boolean** | optional field specify whether the Secret or its key must be defined | [optional] | diff --git a/kubernetes/docs/V1SecretReference.md b/kubernetes/docs/V1SecretReference.md index 7c53cd7c1e..bcdec8b9e0 100644 --- a/kubernetes/docs/V1SecretReference.md +++ b/kubernetes/docs/V1SecretReference.md @@ -3,12 +3,13 @@ # V1SecretReference SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name is unique within a namespace to reference a secret resource. | [optional] -**namespace** | **String** | namespace defines the space within which the secret name must be unique. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name is unique within a namespace to reference a secret resource. | [optional] | +|**namespace** | **String** | namespace defines the space within which the secret name must be unique. | [optional] | diff --git a/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md index 7bab134164..e20b56baab 100644 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ b/kubernetes/docs/V1SecretVolumeSource.md @@ -3,14 +3,15 @@ # V1SecretVolumeSource 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultMode** | **Integer** | defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**optional** | **Boolean** | optional field specify whether the Secret or its keys must be defined | [optional] -**secretName** | **String** | secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultMode** | **Integer** | defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] | +|**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] | +|**optional** | **Boolean** | optional field specify whether the Secret or its keys must be defined | [optional] | +|**secretName** | **String** | secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] | diff --git a/kubernetes/docs/V1SecurityContext.md b/kubernetes/docs/V1SecurityContext.md index 70ec5b98e7..436fdca3c0 100644 --- a/kubernetes/docs/V1SecurityContext.md +++ b/kubernetes/docs/V1SecurityContext.md @@ -3,21 +3,22 @@ # V1SecurityContext 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowPrivilegeEscalation** | **Boolean** | 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. | [optional] -**capabilities** | [**V1Capabilities**](V1Capabilities.md) | | [optional] -**privileged** | **Boolean** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. | [optional] -**procMount** | **String** | procMount denotes the type of proc mount to use for the containers. The default 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. | [optional] -**readOnlyRootFilesystem** | **Boolean** | Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. | [optional] -**runAsGroup** | **Long** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. | [optional] -**runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] -**runAsUser** | **Long** | 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. | [optional] -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] -**seccompProfile** | [**V1SeccompProfile**](V1SeccompProfile.md) | | [optional] -**windowsOptions** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allowPrivilegeEscalation** | **Boolean** | 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. | [optional] | +|**capabilities** | [**V1Capabilities**](V1Capabilities.md) | | [optional] | +|**privileged** | **Boolean** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. | [optional] | +|**procMount** | **String** | procMount denotes the type of proc mount to use for the containers. The default 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. | [optional] | +|**readOnlyRootFilesystem** | **Boolean** | Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. | [optional] | +|**runAsGroup** | **Long** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. | [optional] | +|**runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] | +|**runAsUser** | **Long** | 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. | [optional] | +|**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] | +|**seccompProfile** | [**V1SeccompProfile**](V1SeccompProfile.md) | | [optional] | +|**windowsOptions** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] | diff --git a/kubernetes/docs/V1SelfSubjectAccessReview.md b/kubernetes/docs/V1SelfSubjectAccessReview.md index 69c0b36b3f..13e91c8534 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReview.md +++ b/kubernetes/docs/V1SelfSubjectAccessReview.md @@ -3,15 +3,16 @@ # V1SelfSubjectAccessReview 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | | | +|**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md index 3c0897a76c..b8e5fcba30 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md @@ -3,12 +3,13 @@ # V1SelfSubjectAccessReviewSpec SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] -**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] | +|**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] | diff --git a/kubernetes/docs/V1SelfSubjectRulesReview.md b/kubernetes/docs/V1SelfSubjectRulesReview.md index 87f8cd7af7..5401cb6eb7 100644 --- a/kubernetes/docs/V1SelfSubjectRulesReview.md +++ b/kubernetes/docs/V1SelfSubjectRulesReview.md @@ -3,15 +3,16 @@ # V1SelfSubjectRulesReview 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SelfSubjectRulesReviewSpec**](V1SelfSubjectRulesReviewSpec.md) | | -**status** | [**V1SubjectRulesReviewStatus**](V1SubjectRulesReviewStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1SelfSubjectRulesReviewSpec**](V1SelfSubjectRulesReviewSpec.md) | | | +|**status** | [**V1SubjectRulesReviewStatus**](V1SubjectRulesReviewStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md b/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md index c380822cfd..73c8625fd1 100644 --- a/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md +++ b/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md @@ -3,11 +3,12 @@ # V1SelfSubjectRulesReviewSpec SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**namespace** | **String** | Namespace to evaluate rules for. Required. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**namespace** | **String** | Namespace to evaluate rules for. Required. | [optional] | diff --git a/kubernetes/docs/V1ServerAddressByClientCIDR.md b/kubernetes/docs/V1ServerAddressByClientCIDR.md index 9e61ef52b7..bef13e6bfc 100644 --- a/kubernetes/docs/V1ServerAddressByClientCIDR.md +++ b/kubernetes/docs/V1ServerAddressByClientCIDR.md @@ -3,12 +3,13 @@ # V1ServerAddressByClientCIDR ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientCIDR** | **String** | The CIDR with which clients can match their IP to figure out the server address that they should use. | -**serverAddress** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientCIDR** | **String** | The CIDR with which clients can match their IP to figure out the server address that they should use. | | +|**serverAddress** | **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. | | diff --git a/kubernetes/docs/V1Service.md b/kubernetes/docs/V1Service.md index fb68e91a66..284042c8ff 100644 --- a/kubernetes/docs/V1Service.md +++ b/kubernetes/docs/V1Service.md @@ -3,15 +3,16 @@ # V1Service 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1ServiceSpec**](V1ServiceSpec.md) | | [optional] -**status** | [**V1ServiceStatus**](V1ServiceStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1ServiceSpec**](V1ServiceSpec.md) | | [optional] | +|**status** | [**V1ServiceStatus**](V1ServiceStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md index e3f858332c..5deebcd4cf 100644 --- a/kubernetes/docs/V1ServiceAccount.md +++ b/kubernetes/docs/V1ServiceAccount.md @@ -3,16 +3,17 @@ # V1ServiceAccount 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**automountServiceAccountToken** | **Boolean** | AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. | [optional] -**imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | 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 | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**secrets** | [**List<V1ObjectReference>**](V1ObjectReference.md) | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**automountServiceAccountToken** | **Boolean** | AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. | [optional] | +|**imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | 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 | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**secrets** | [**List<V1ObjectReference>**](V1ObjectReference.md) | 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 | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ServiceAccountList.md b/kubernetes/docs/V1ServiceAccountList.md index 69b716b863..442c8a369e 100644 --- a/kubernetes/docs/V1ServiceAccountList.md +++ b/kubernetes/docs/V1ServiceAccountList.md @@ -3,14 +3,15 @@ # V1ServiceAccountList ServiceAccountList is a list of ServiceAccount objects + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ServiceAccount>**](V1ServiceAccount.md) | List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ServiceAccount>**](V1ServiceAccount.md) | List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ServiceAccountTokenProjection.md b/kubernetes/docs/V1ServiceAccountTokenProjection.md index 369e9b5e7a..eba144b1e7 100644 --- a/kubernetes/docs/V1ServiceAccountTokenProjection.md +++ b/kubernetes/docs/V1ServiceAccountTokenProjection.md @@ -3,13 +3,14 @@ # V1ServiceAccountTokenProjection 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audience** | **String** | audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. | [optional] -**expirationSeconds** | **Long** | expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. | [optional] -**path** | **String** | path is the path relative to the mount point of the file to project the token into. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audience** | **String** | audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. | [optional] | +|**expirationSeconds** | **Long** | expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. | [optional] | +|**path** | **String** | path is the path relative to the mount point of the file to project the token into. | | diff --git a/kubernetes/docs/V1ServiceBackendPort.md b/kubernetes/docs/V1ServiceBackendPort.md index a28271a1d1..249aa5cb40 100644 --- a/kubernetes/docs/V1ServiceBackendPort.md +++ b/kubernetes/docs/V1ServiceBackendPort.md @@ -3,12 +3,13 @@ # V1ServiceBackendPort ServiceBackendPort is the service port being referenced. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\". | [optional] -**number** | **Integer** | number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\". | [optional] | +|**number** | **Integer** | number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\". | [optional] | diff --git a/kubernetes/docs/V1ServiceList.md b/kubernetes/docs/V1ServiceList.md index c1547d6bf2..53be1d1c46 100644 --- a/kubernetes/docs/V1ServiceList.md +++ b/kubernetes/docs/V1ServiceList.md @@ -3,14 +3,15 @@ # V1ServiceList ServiceList holds a list of services. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1Service>**](V1Service.md) | List of services | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1Service>**](V1Service.md) | List of services | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ServicePort.md b/kubernetes/docs/V1ServicePort.md index 99d71817b0..cb64261b6a 100644 --- a/kubernetes/docs/V1ServicePort.md +++ b/kubernetes/docs/V1ServicePort.md @@ -3,6 +3,7 @@ # V1ServicePort ServicePort contains information on service's port. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index a03a9aca03..5862b1c2a6 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -3,6 +3,7 @@ # V1ServiceSpec ServiceSpec describes the attributes that a user creates on a service. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1ServiceStatus.md b/kubernetes/docs/V1ServiceStatus.md index 4dfb11a3c0..c8064afac1 100644 --- a/kubernetes/docs/V1ServiceStatus.md +++ b/kubernetes/docs/V1ServiceStatus.md @@ -3,12 +3,13 @@ # V1ServiceStatus ServiceStatus represents the current status of a service. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1Condition>**](V1Condition.md) | Current service state | [optional] -**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Current service state | [optional] | +|**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1SessionAffinityConfig.md b/kubernetes/docs/V1SessionAffinityConfig.md index b6cf1688bf..2ce3531c0a 100644 --- a/kubernetes/docs/V1SessionAffinityConfig.md +++ b/kubernetes/docs/V1SessionAffinityConfig.md @@ -3,11 +3,12 @@ # V1SessionAffinityConfig SessionAffinityConfig represents the configurations of session affinity. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientIP** | [**V1ClientIPConfig**](V1ClientIPConfig.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientIP** | [**V1ClientIPConfig**](V1ClientIPConfig.md) | | [optional] | diff --git a/kubernetes/docs/V1StatefulSet.md b/kubernetes/docs/V1StatefulSet.md index b39b955fd2..fa4ff2531c 100644 --- a/kubernetes/docs/V1StatefulSet.md +++ b/kubernetes/docs/V1StatefulSet.md @@ -3,15 +3,16 @@ # V1StatefulSet 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | [optional] -**status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | [optional] | +|**status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1StatefulSetCondition.md b/kubernetes/docs/V1StatefulSetCondition.md index 2588a7ee0f..17fff6d79f 100644 --- a/kubernetes/docs/V1StatefulSetCondition.md +++ b/kubernetes/docs/V1StatefulSetCondition.md @@ -3,15 +3,16 @@ # V1StatefulSetCondition StatefulSetCondition describes the state of a statefulset at a certain point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of statefulset condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | A human readable message indicating details about the transition. | [optional] | +|**reason** | **String** | The reason for the condition's last transition. | [optional] | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of statefulset condition. | | diff --git a/kubernetes/docs/V1StatefulSetList.md b/kubernetes/docs/V1StatefulSetList.md index 54d43a6377..4ad6be3455 100644 --- a/kubernetes/docs/V1StatefulSetList.md +++ b/kubernetes/docs/V1StatefulSetList.md @@ -3,14 +3,15 @@ # V1StatefulSetList StatefulSetList is a collection of StatefulSets. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1StatefulSet>**](V1StatefulSet.md) | Items is the list of stateful sets. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1StatefulSet>**](V1StatefulSet.md) | Items is the list of stateful sets. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1StatefulSetOrdinals.md b/kubernetes/docs/V1StatefulSetOrdinals.md index 35499038fd..67d3d8a62f 100644 --- a/kubernetes/docs/V1StatefulSetOrdinals.md +++ b/kubernetes/docs/V1StatefulSetOrdinals.md @@ -3,11 +3,12 @@ # V1StatefulSetOrdinals StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start** | **Integer** | 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). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**start** | **Integer** | 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). | [optional] | diff --git a/kubernetes/docs/V1StatefulSetPersistentVolumeClaimRetentionPolicy.md b/kubernetes/docs/V1StatefulSetPersistentVolumeClaimRetentionPolicy.md index e8947cfb3a..f9ebdf8b58 100644 --- a/kubernetes/docs/V1StatefulSetPersistentVolumeClaimRetentionPolicy.md +++ b/kubernetes/docs/V1StatefulSetPersistentVolumeClaimRetentionPolicy.md @@ -3,12 +3,13 @@ # V1StatefulSetPersistentVolumeClaimRetentionPolicy StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**whenDeleted** | **String** | 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. | [optional] -**whenScaled** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**whenDeleted** | **String** | 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. | [optional] | +|**whenScaled** | **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. | [optional] | diff --git a/kubernetes/docs/V1StatefulSetSpec.md b/kubernetes/docs/V1StatefulSetSpec.md index 0defbebcff..b5aa66c662 100644 --- a/kubernetes/docs/V1StatefulSetSpec.md +++ b/kubernetes/docs/V1StatefulSetSpec.md @@ -3,21 +3,22 @@ # V1StatefulSetSpec A StatefulSetSpec is the specification of a StatefulSet. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Integer** | 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) | [optional] -**ordinals** | [**V1StatefulSetOrdinals**](V1StatefulSetOrdinals.md) | | [optional] -**persistentVolumeClaimRetentionPolicy** | [**V1StatefulSetPersistentVolumeClaimRetentionPolicy**](V1StatefulSetPersistentVolumeClaimRetentionPolicy.md) | | [optional] -**podManagementPolicy** | **String** | 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. | [optional] -**replicas** | **Integer** | 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. | [optional] -**revisionHistoryLimit** | **Integer** | 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. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | -**serviceName** | **String** | 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. | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | -**updateStrategy** | [**V1StatefulSetUpdateStrategy**](V1StatefulSetUpdateStrategy.md) | | [optional] -**volumeClaimTemplates** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minReadySeconds** | **Integer** | 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) | [optional] | +|**ordinals** | [**V1StatefulSetOrdinals**](V1StatefulSetOrdinals.md) | | [optional] | +|**persistentVolumeClaimRetentionPolicy** | [**V1StatefulSetPersistentVolumeClaimRetentionPolicy**](V1StatefulSetPersistentVolumeClaimRetentionPolicy.md) | | [optional] | +|**podManagementPolicy** | **String** | 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. | [optional] | +|**replicas** | **Integer** | 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. | [optional] | +|**revisionHistoryLimit** | **Integer** | 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. | [optional] | +|**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | | +|**serviceName** | **String** | 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. | | +|**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | | +|**updateStrategy** | [**V1StatefulSetUpdateStrategy**](V1StatefulSetUpdateStrategy.md) | | [optional] | +|**volumeClaimTemplates** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1StatefulSetStatus.md b/kubernetes/docs/V1StatefulSetStatus.md index 3b7ce55233..15a18bb24d 100644 --- a/kubernetes/docs/V1StatefulSetStatus.md +++ b/kubernetes/docs/V1StatefulSetStatus.md @@ -3,20 +3,21 @@ # V1StatefulSetStatus StatefulSetStatus represents the current state of a StatefulSet. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. | [optional] -**collisionCount** | **Integer** | 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. | [optional] -**conditions** | [**List<V1StatefulSetCondition>**](V1StatefulSetCondition.md) | Represents the latest available observations of a statefulset's current state. | [optional] -**currentReplicas** | **Integer** | currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. | [optional] -**currentRevision** | **String** | currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). | [optional] -**observedGeneration** | **Long** | 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. | [optional] -**readyReplicas** | **Integer** | readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. | [optional] -**replicas** | **Integer** | replicas is the number of Pods created by the StatefulSet controller. | -**updateRevision** | **String** | updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) | [optional] -**updatedReplicas** | **Integer** | updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. | [optional] | +|**collisionCount** | **Integer** | 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. | [optional] | +|**conditions** | [**List<V1StatefulSetCondition>**](V1StatefulSetCondition.md) | Represents the latest available observations of a statefulset's current state. | [optional] | +|**currentReplicas** | **Integer** | currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. | [optional] | +|**currentRevision** | **String** | currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). | [optional] | +|**observedGeneration** | **Long** | 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. | [optional] | +|**readyReplicas** | **Integer** | readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. | [optional] | +|**replicas** | **Integer** | replicas is the number of Pods created by the StatefulSet controller. | | +|**updateRevision** | **String** | updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) | [optional] | +|**updatedReplicas** | **Integer** | updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. | [optional] | diff --git a/kubernetes/docs/V1StatefulSetUpdateStrategy.md b/kubernetes/docs/V1StatefulSetUpdateStrategy.md index da14f40dfb..c2d8bad331 100644 --- a/kubernetes/docs/V1StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1StatefulSetUpdateStrategy.md @@ -3,12 +3,13 @@ # V1StatefulSetUpdateStrategy 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1RollingUpdateStatefulSetStrategy**](V1RollingUpdateStatefulSetStrategy.md) | | [optional] -**type** | **String** | Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**rollingUpdate** | [**V1RollingUpdateStatefulSetStrategy**](V1RollingUpdateStatefulSetStrategy.md) | | [optional] | +|**type** | **String** | Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. | [optional] | diff --git a/kubernetes/docs/V1Status.md b/kubernetes/docs/V1Status.md index b26f71cb7d..8726ba2059 100644 --- a/kubernetes/docs/V1Status.md +++ b/kubernetes/docs/V1Status.md @@ -3,18 +3,19 @@ # V1Status Status is a return value for calls that don't return other objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**code** | **Integer** | Suggested HTTP return code for this status, 0 if not set. | [optional] -**details** | [**V1StatusDetails**](V1StatusDetails.md) | | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**message** | **String** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] -**reason** | **String** | 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. | [optional] -**status** | **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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**code** | **Integer** | Suggested HTTP return code for this status, 0 if not set. | [optional] | +|**details** | [**V1StatusDetails**](V1StatusDetails.md) | | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**message** | **String** | A human-readable description of the status of this operation. | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | +|**reason** | **String** | 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. | [optional] | +|**status** | **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 | [optional] | diff --git a/kubernetes/docs/V1StatusCause.md b/kubernetes/docs/V1StatusCause.md index d5cec27a32..6c56a3aa30 100644 --- a/kubernetes/docs/V1StatusCause.md +++ b/kubernetes/docs/V1StatusCause.md @@ -3,13 +3,14 @@ # V1StatusCause StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field** | **String** | 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\" | [optional] -**message** | **String** | A human-readable description of the cause of the error. This field may be presented as-is to a reader. | [optional] -**reason** | **String** | A machine-readable description of the cause of the error. If this value is empty there is no information available. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**field** | **String** | 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\" | [optional] | +|**message** | **String** | A human-readable description of the cause of the error. This field may be presented as-is to a reader. | [optional] | +|**reason** | **String** | A machine-readable description of the cause of the error. If this value is empty there is no information available. | [optional] | diff --git a/kubernetes/docs/V1StatusDetails.md b/kubernetes/docs/V1StatusDetails.md index 9eb17bc884..871e2755b8 100644 --- a/kubernetes/docs/V1StatusDetails.md +++ b/kubernetes/docs/V1StatusDetails.md @@ -3,16 +3,17 @@ # V1StatusDetails 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**causes** | [**List<V1StatusCause>**](V1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] -**group** | **String** | The group attribute of the resource associated with the status StatusReason. | [optional] -**kind** | **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 | [optional] -**name** | **String** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] -**retryAfterSeconds** | **Integer** | 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. | [optional] -**uid** | **String** | 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 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**causes** | [**List<V1StatusCause>**](V1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] | +|**group** | **String** | The group attribute of the resource associated with the status StatusReason. | [optional] | +|**kind** | **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 | [optional] | +|**name** | **String** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] | +|**retryAfterSeconds** | **Integer** | 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. | [optional] | +|**uid** | **String** | 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 | [optional] | diff --git a/kubernetes/docs/V1StorageClass.md b/kubernetes/docs/V1StorageClass.md index 27b16b589d..6a1fec802a 100644 --- a/kubernetes/docs/V1StorageClass.md +++ b/kubernetes/docs/V1StorageClass.md @@ -3,20 +3,21 @@ # V1StorageClass 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowVolumeExpansion** | **Boolean** | allowVolumeExpansion shows whether the storage class allow volume expand. | [optional] -**allowedTopologies** | [**List<V1TopologySelectorTerm>**](V1TopologySelectorTerm.md) | 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. | [optional] -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**mountOptions** | **List<String>** | 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. | [optional] -**parameters** | **Map<String, String>** | parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] -**provisioner** | **String** | provisioner indicates the type of the provisioner. | -**reclaimPolicy** | **String** | reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. | [optional] -**volumeBindingMode** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allowVolumeExpansion** | **Boolean** | allowVolumeExpansion shows whether the storage class allow volume expand. | [optional] | +|**allowedTopologies** | [**List<V1TopologySelectorTerm>**](V1TopologySelectorTerm.md) | 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. | [optional] | +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**mountOptions** | **List<String>** | 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. | [optional] | +|**parameters** | **Map<String, String>** | parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] | +|**provisioner** | **String** | provisioner indicates the type of the provisioner. | | +|**reclaimPolicy** | **String** | reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. | [optional] | +|**volumeBindingMode** | **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. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1StorageClassList.md b/kubernetes/docs/V1StorageClassList.md index 6aeb0efe1c..24f8464cf4 100644 --- a/kubernetes/docs/V1StorageClassList.md +++ b/kubernetes/docs/V1StorageClassList.md @@ -3,14 +3,15 @@ # V1StorageClassList StorageClassList is a collection of storage classes. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1StorageClass>**](V1StorageClass.md) | items is the list of StorageClasses | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1StorageClass>**](V1StorageClass.md) | items is the list of StorageClasses | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1StorageOSPersistentVolumeSource.md b/kubernetes/docs/V1StorageOSPersistentVolumeSource.md index eed8c46efa..8a77be7647 100644 --- a/kubernetes/docs/V1StorageOSPersistentVolumeSource.md +++ b/kubernetes/docs/V1StorageOSPersistentVolumeSource.md @@ -3,15 +3,16 @@ # V1StorageOSPersistentVolumeSource Represents a StorageOS persistent volume resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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. | [optional] -**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**volumeName** | **String** | volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] -**volumeNamespace** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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. | [optional] | +|**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**secretRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] | +|**volumeName** | **String** | volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] | +|**volumeNamespace** | **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. | [optional] | diff --git a/kubernetes/docs/V1StorageOSVolumeSource.md b/kubernetes/docs/V1StorageOSVolumeSource.md index 3243a54208..e5c97b9815 100644 --- a/kubernetes/docs/V1StorageOSVolumeSource.md +++ b/kubernetes/docs/V1StorageOSVolumeSource.md @@ -3,15 +3,16 @@ # V1StorageOSVolumeSource Represents a StorageOS persistent volume resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | 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. | [optional] -**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] -**volumeName** | **String** | volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] -**volumeNamespace** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **String** | 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. | [optional] | +|**readOnly** | **Boolean** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] | +|**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] | +|**volumeName** | **String** | volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] | +|**volumeNamespace** | **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. | [optional] | diff --git a/kubernetes/docs/V1Subject.md b/kubernetes/docs/V1Subject.md index e7b08a560a..d80b74a8fb 100644 --- a/kubernetes/docs/V1Subject.md +++ b/kubernetes/docs/V1Subject.md @@ -3,14 +3,15 @@ # V1Subject 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] -**kind** | **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. | -**name** | **String** | Name of the object being referenced. | -**namespace** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] | +|**kind** | **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. | | +|**name** | **String** | Name of the object being referenced. | | +|**namespace** | **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. | [optional] | diff --git a/kubernetes/docs/V1SubjectAccessReview.md b/kubernetes/docs/V1SubjectAccessReview.md index 87459e765c..3b0bbf66dd 100644 --- a/kubernetes/docs/V1SubjectAccessReview.md +++ b/kubernetes/docs/V1SubjectAccessReview.md @@ -3,15 +3,16 @@ # V1SubjectAccessReview SubjectAccessReview checks whether or not a user or group can perform an action. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | | | +|**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1SubjectAccessReviewSpec.md b/kubernetes/docs/V1SubjectAccessReviewSpec.md index 20bc4c67a5..f1ec521eff 100644 --- a/kubernetes/docs/V1SubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SubjectAccessReviewSpec.md @@ -3,16 +3,17 @@ # V1SubjectAccessReviewSpec SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | [**Map<String, List<String>>**](List.md) | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] -**groups** | **List<String>** | Groups is the groups you're testing for. | [optional] -**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] -**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] -**uid** | **String** | UID information about the requesting user. | [optional] -**user** | **String** | User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**extra** | **Map<String, List<String>>** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] | +|**groups** | **List<String>** | Groups is the groups you're testing for. | [optional] | +|**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] | +|**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] | +|**uid** | **String** | UID information about the requesting user. | [optional] | +|**user** | **String** | User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups | [optional] | diff --git a/kubernetes/docs/V1SubjectAccessReviewStatus.md b/kubernetes/docs/V1SubjectAccessReviewStatus.md index e9e820d37d..acd8760025 100644 --- a/kubernetes/docs/V1SubjectAccessReviewStatus.md +++ b/kubernetes/docs/V1SubjectAccessReviewStatus.md @@ -3,14 +3,15 @@ # V1SubjectAccessReviewStatus SubjectAccessReviewStatus + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **Boolean** | Allowed is required. True if the action would be allowed, false otherwise. | -**denied** | **Boolean** | Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. | [optional] -**evaluationError** | **String** | EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] -**reason** | **String** | Reason is optional. It indicates why a request was allowed or denied. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allowed** | **Boolean** | Allowed is required. True if the action would be allowed, false otherwise. | | +|**denied** | **Boolean** | Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. | [optional] | +|**evaluationError** | **String** | EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] | +|**reason** | **String** | Reason is optional. It indicates why a request was allowed or denied. | [optional] | diff --git a/kubernetes/docs/V1SubjectRulesReviewStatus.md b/kubernetes/docs/V1SubjectRulesReviewStatus.md index 4dc8606dca..a27e95bb31 100644 --- a/kubernetes/docs/V1SubjectRulesReviewStatus.md +++ b/kubernetes/docs/V1SubjectRulesReviewStatus.md @@ -3,14 +3,15 @@ # V1SubjectRulesReviewStatus 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**evaluationError** | **String** | EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. | [optional] -**incomplete** | **Boolean** | Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. | -**nonResourceRules** | [**List<V1NonResourceRule>**](V1NonResourceRule.md) | NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | -**resourceRules** | [**List<V1ResourceRule>**](V1ResourceRule.md) | ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**evaluationError** | **String** | EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. | [optional] | +|**incomplete** | **Boolean** | Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. | | +|**nonResourceRules** | [**List<V1NonResourceRule>**](V1NonResourceRule.md) | NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | | +|**resourceRules** | [**List<V1ResourceRule>**](V1ResourceRule.md) | ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | | diff --git a/kubernetes/docs/V1Sysctl.md b/kubernetes/docs/V1Sysctl.md index b4d1b665fb..7029cab92d 100644 --- a/kubernetes/docs/V1Sysctl.md +++ b/kubernetes/docs/V1Sysctl.md @@ -3,12 +3,13 @@ # V1Sysctl Sysctl defines a kernel parameter to be set + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of a property to set | -**value** | **String** | Value of a property to set | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of a property to set | | +|**value** | **String** | Value of a property to set | | diff --git a/kubernetes/docs/V1TCPSocketAction.md b/kubernetes/docs/V1TCPSocketAction.md index 5ff9bd1aa5..7a656fa0ae 100644 --- a/kubernetes/docs/V1TCPSocketAction.md +++ b/kubernetes/docs/V1TCPSocketAction.md @@ -3,12 +3,13 @@ # V1TCPSocketAction TCPSocketAction describes an action based on opening a socket + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**host** | **String** | Optional: Host name to connect to, defaults to the pod IP. | [optional] -**port** | [**IntOrString**](IntOrString.md) | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**host** | **String** | Optional: Host name to connect to, defaults to the pod IP. | [optional] | +|**port** | **IntOrString** | 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. | | diff --git a/kubernetes/docs/V1Taint.md b/kubernetes/docs/V1Taint.md index ff0061000d..d6606eea07 100644 --- a/kubernetes/docs/V1Taint.md +++ b/kubernetes/docs/V1Taint.md @@ -3,14 +3,15 @@ # V1Taint The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**effect** | **String** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | -**key** | **String** | Required. The taint key to be applied to a node. | -**timeAdded** | [**OffsetDateTime**](OffsetDateTime.md) | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] -**value** | **String** | The taint value corresponding to the taint key. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | | +|**key** | **String** | Required. The taint key to be applied to a node. | | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] | +|**value** | **String** | The taint value corresponding to the taint key. | [optional] | diff --git a/kubernetes/docs/V1TokenRequestSpec.md b/kubernetes/docs/V1TokenRequestSpec.md index 1c6013fe6a..8963c9f594 100644 --- a/kubernetes/docs/V1TokenRequestSpec.md +++ b/kubernetes/docs/V1TokenRequestSpec.md @@ -3,13 +3,14 @@ # V1TokenRequestSpec TokenRequestSpec contains client provided parameters of a token request. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audiences** | **List<String>** | Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. | -**boundObjectRef** | [**V1BoundObjectReference**](V1BoundObjectReference.md) | | [optional] -**expirationSeconds** | **Long** | ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audiences** | **List<String>** | Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. | | +|**boundObjectRef** | [**V1BoundObjectReference**](V1BoundObjectReference.md) | | [optional] | +|**expirationSeconds** | **Long** | ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. | [optional] | diff --git a/kubernetes/docs/V1TokenRequestStatus.md b/kubernetes/docs/V1TokenRequestStatus.md index 697a17dfac..d928832ebb 100644 --- a/kubernetes/docs/V1TokenRequestStatus.md +++ b/kubernetes/docs/V1TokenRequestStatus.md @@ -3,12 +3,13 @@ # V1TokenRequestStatus TokenRequestStatus is the result of a token request. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expirationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | ExpirationTimestamp is the time of expiration of the returned token. | -**token** | **String** | Token is the opaque bearer token. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expirationTimestamp** | **OffsetDateTime** | ExpirationTimestamp is the time of expiration of the returned token. | | +|**token** | **String** | Token is the opaque bearer token. | | diff --git a/kubernetes/docs/V1TokenReview.md b/kubernetes/docs/V1TokenReview.md index 524393e6d5..f16a0011d4 100644 --- a/kubernetes/docs/V1TokenReview.md +++ b/kubernetes/docs/V1TokenReview.md @@ -3,15 +3,16 @@ # V1TokenReview 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | | -**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | | | +|**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1TokenReviewSpec.md b/kubernetes/docs/V1TokenReviewSpec.md index 6f78d46177..18b23ce7f2 100644 --- a/kubernetes/docs/V1TokenReviewSpec.md +++ b/kubernetes/docs/V1TokenReviewSpec.md @@ -3,12 +3,13 @@ # V1TokenReviewSpec TokenReviewSpec is a description of the token authentication request. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audiences** | **List<String>** | Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. | [optional] -**token** | **String** | Token is the opaque bearer token. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audiences** | **List<String>** | Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. | [optional] | +|**token** | **String** | Token is the opaque bearer token. | [optional] | diff --git a/kubernetes/docs/V1TokenReviewStatus.md b/kubernetes/docs/V1TokenReviewStatus.md index 62c65320c7..9f29408831 100644 --- a/kubernetes/docs/V1TokenReviewStatus.md +++ b/kubernetes/docs/V1TokenReviewStatus.md @@ -3,14 +3,15 @@ # V1TokenReviewStatus TokenReviewStatus is the result of the token authentication request. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audiences** | **List<String>** | Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. | [optional] -**authenticated** | **Boolean** | Authenticated indicates that the token was associated with a known user. | [optional] -**error** | **String** | Error indicates that the token couldn't be checked | [optional] -**user** | [**V1UserInfo**](V1UserInfo.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audiences** | **List<String>** | Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. | [optional] | +|**authenticated** | **Boolean** | Authenticated indicates that the token was associated with a known user. | [optional] | +|**error** | **String** | Error indicates that the token couldn't be checked | [optional] | +|**user** | [**V1UserInfo**](V1UserInfo.md) | | [optional] | diff --git a/kubernetes/docs/V1Toleration.md b/kubernetes/docs/V1Toleration.md index 144dc72486..ef985be05c 100644 --- a/kubernetes/docs/V1Toleration.md +++ b/kubernetes/docs/V1Toleration.md @@ -3,15 +3,16 @@ # V1Toleration The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | [optional] -**key** | **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. | [optional] -**operator** | **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. | [optional] -**tolerationSeconds** | **Long** | 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. | [optional] -**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | [optional] | +|**key** | **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. | [optional] | +|**operator** | **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. | [optional] | +|**tolerationSeconds** | **Long** | 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. | [optional] | +|**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] | diff --git a/kubernetes/docs/V1TopologySelectorLabelRequirement.md b/kubernetes/docs/V1TopologySelectorLabelRequirement.md index 73d48fa725..d31b4d0ab5 100644 --- a/kubernetes/docs/V1TopologySelectorLabelRequirement.md +++ b/kubernetes/docs/V1TopologySelectorLabelRequirement.md @@ -3,12 +3,13 @@ # V1TopologySelectorLabelRequirement A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | The label key that the selector applies to. | -**values** | **List<String>** | An array of string values. One value must match the label to be selected. Each entry in Values is ORed. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | The label key that the selector applies to. | | +|**values** | **List<String>** | An array of string values. One value must match the label to be selected. Each entry in Values is ORed. | | diff --git a/kubernetes/docs/V1TopologySelectorTerm.md b/kubernetes/docs/V1TopologySelectorTerm.md index 1a4d521055..fa973ef9bd 100644 --- a/kubernetes/docs/V1TopologySelectorTerm.md +++ b/kubernetes/docs/V1TopologySelectorTerm.md @@ -3,11 +3,12 @@ # V1TopologySelectorTerm 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchLabelExpressions** | [**List<V1TopologySelectorLabelRequirement>**](V1TopologySelectorLabelRequirement.md) | A list of topology selector requirements by labels. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchLabelExpressions** | [**List<V1TopologySelectorLabelRequirement>**](V1TopologySelectorLabelRequirement.md) | A list of topology selector requirements by labels. | [optional] | diff --git a/kubernetes/docs/V1TopologySpreadConstraint.md b/kubernetes/docs/V1TopologySpreadConstraint.md index a015f491e8..621159a151 100644 --- a/kubernetes/docs/V1TopologySpreadConstraint.md +++ b/kubernetes/docs/V1TopologySpreadConstraint.md @@ -3,18 +3,19 @@ # V1TopologySpreadConstraint TopologySpreadConstraint specifies how to spread matching pods among the given topology. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**matchLabelKeys** | **List<String>** | 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). | [optional] -**maxSkew** | **Integer** | 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. | -**minDomains** | **Integer** | 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). | [optional] -**nodeAffinityPolicy** | **String** | 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. | [optional] -**nodeTaintsPolicy** | **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. | [optional] -**topologyKey** | **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 <key, value> 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. | -**whenUnsatisfiable** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**matchLabelKeys** | **List<String>** | 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). | [optional] | +|**maxSkew** | **Integer** | 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. | | +|**minDomains** | **Integer** | 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). | [optional] | +|**nodeAffinityPolicy** | **String** | 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. | [optional] | +|**nodeTaintsPolicy** | **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. | [optional] | +|**topologyKey** | **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 <key, value> 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. | | +|**whenUnsatisfiable** | **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. | | diff --git a/kubernetes/docs/V1TypedLocalObjectReference.md b/kubernetes/docs/V1TypedLocalObjectReference.md index ea09bc5409..30cd9c5106 100644 --- a/kubernetes/docs/V1TypedLocalObjectReference.md +++ b/kubernetes/docs/V1TypedLocalObjectReference.md @@ -3,13 +3,14 @@ # V1TypedLocalObjectReference TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | 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. | [optional] -**kind** | **String** | Kind is the type of resource being referenced | -**name** | **String** | Name is the name of resource being referenced | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | 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. | [optional] | +|**kind** | **String** | Kind is the type of resource being referenced | | +|**name** | **String** | Name is the name of resource being referenced | | diff --git a/kubernetes/docs/V1TypedObjectReference.md b/kubernetes/docs/V1TypedObjectReference.md index c5aeec7b04..a9cf38fd0e 100644 --- a/kubernetes/docs/V1TypedObjectReference.md +++ b/kubernetes/docs/V1TypedObjectReference.md @@ -2,14 +2,15 @@ # V1TypedObjectReference + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | 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. | [optional] -**kind** | **String** | Kind is the type of resource being referenced | -**name** | **String** | Name is the name of resource being referenced | -**namespace** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | 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. | [optional] | +|**kind** | **String** | Kind is the type of resource being referenced | | +|**name** | **String** | Name is the name of resource being referenced | | +|**namespace** | **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. | [optional] | diff --git a/kubernetes/docs/V1UncountedTerminatedPods.md b/kubernetes/docs/V1UncountedTerminatedPods.md index 082164af15..7d1604abf8 100644 --- a/kubernetes/docs/V1UncountedTerminatedPods.md +++ b/kubernetes/docs/V1UncountedTerminatedPods.md @@ -3,12 +3,13 @@ # V1UncountedTerminatedPods UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**failed** | **List<String>** | failed holds UIDs of failed Pods. | [optional] -**succeeded** | **List<String>** | succeeded holds UIDs of succeeded Pods. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**failed** | **List<String>** | failed holds UIDs of failed Pods. | [optional] | +|**succeeded** | **List<String>** | succeeded holds UIDs of succeeded Pods. | [optional] | diff --git a/kubernetes/docs/V1UserInfo.md b/kubernetes/docs/V1UserInfo.md index 7dcd8186fc..17af3d976d 100644 --- a/kubernetes/docs/V1UserInfo.md +++ b/kubernetes/docs/V1UserInfo.md @@ -3,14 +3,15 @@ # V1UserInfo UserInfo holds the information about the user needed to implement the user.Info interface. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | [**Map<String, List<String>>**](List.md) | Any additional information provided by the authenticator. | [optional] -**groups** | **List<String>** | The names of groups this user is a part of. | [optional] -**uid** | **String** | A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. | [optional] -**username** | **String** | The name that uniquely identifies this user among all active users. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**extra** | **Map<String, List<String>>** | Any additional information provided by the authenticator. | [optional] | +|**groups** | **List<String>** | The names of groups this user is a part of. | [optional] | +|**uid** | **String** | A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. | [optional] | +|**username** | **String** | The name that uniquely identifies this user among all active users. | [optional] | diff --git a/kubernetes/docs/V1ValidatingWebhook.md b/kubernetes/docs/V1ValidatingWebhook.md index ad2be24a46..206cf931f7 100644 --- a/kubernetes/docs/V1ValidatingWebhook.md +++ b/kubernetes/docs/V1ValidatingWebhook.md @@ -3,6 +3,7 @@ # V1ValidatingWebhook ValidatingWebhook describes an admission webhook and the resources and operations it applies to. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1ValidatingWebhookConfiguration.md b/kubernetes/docs/V1ValidatingWebhookConfiguration.md index 9ac38573eb..7746a7f612 100644 --- a/kubernetes/docs/V1ValidatingWebhookConfiguration.md +++ b/kubernetes/docs/V1ValidatingWebhookConfiguration.md @@ -3,14 +3,15 @@ # V1ValidatingWebhookConfiguration ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**webhooks** | [**List<V1ValidatingWebhook>**](V1ValidatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**webhooks** | [**List<V1ValidatingWebhook>**](V1ValidatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ValidatingWebhookConfigurationList.md b/kubernetes/docs/V1ValidatingWebhookConfigurationList.md index 2637357246..9f4fc64592 100644 --- a/kubernetes/docs/V1ValidatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1ValidatingWebhookConfigurationList.md @@ -3,14 +3,15 @@ # V1ValidatingWebhookConfigurationList ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ValidatingWebhookConfiguration>**](V1ValidatingWebhookConfiguration.md) | List of ValidatingWebhookConfiguration. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1ValidatingWebhookConfiguration>**](V1ValidatingWebhookConfiguration.md) | List of ValidatingWebhookConfiguration. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ValidationRule.md b/kubernetes/docs/V1ValidationRule.md index 7975d98004..8ae24ff47e 100644 --- a/kubernetes/docs/V1ValidationRule.md +++ b/kubernetes/docs/V1ValidationRule.md @@ -3,6 +3,7 @@ # V1ValidationRule ValidationRule describes a validation rule written in the CEL expression language. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1Volume.md b/kubernetes/docs/V1Volume.md index 33b96a0985..ac16b60f05 100644 --- a/kubernetes/docs/V1Volume.md +++ b/kubernetes/docs/V1Volume.md @@ -3,40 +3,41 @@ # V1Volume Volume represents a named volume in a pod that may be accessed by any container in the pod. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | | [optional] -**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | | [optional] -**azureFile** | [**V1AzureFileVolumeSource**](V1AzureFileVolumeSource.md) | | [optional] -**cephfs** | [**V1CephFSVolumeSource**](V1CephFSVolumeSource.md) | | [optional] -**cinder** | [**V1CinderVolumeSource**](V1CinderVolumeSource.md) | | [optional] -**configMap** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | | [optional] -**csi** | [**V1CSIVolumeSource**](V1CSIVolumeSource.md) | | [optional] -**downwardAPI** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | | [optional] -**emptyDir** | [**V1EmptyDirVolumeSource**](V1EmptyDirVolumeSource.md) | | [optional] -**ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | | [optional] -**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | | [optional] -**flexVolume** | [**V1FlexVolumeSource**](V1FlexVolumeSource.md) | | [optional] -**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | | [optional] -**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | | [optional] -**gitRepo** | [**V1GitRepoVolumeSource**](V1GitRepoVolumeSource.md) | | [optional] -**glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | | [optional] -**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] -**iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | | [optional] -**name** | **String** | 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 | -**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] -**persistentVolumeClaim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | | [optional] -**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | | [optional] -**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | | [optional] -**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | | [optional] -**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | | [optional] -**rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | | [optional] -**scaleIO** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | | [optional] -**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | | [optional] -**storageos** | [**V1StorageOSVolumeSource**](V1StorageOSVolumeSource.md) | | [optional] -**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | | [optional] | +|**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | | [optional] | +|**azureFile** | [**V1AzureFileVolumeSource**](V1AzureFileVolumeSource.md) | | [optional] | +|**cephfs** | [**V1CephFSVolumeSource**](V1CephFSVolumeSource.md) | | [optional] | +|**cinder** | [**V1CinderVolumeSource**](V1CinderVolumeSource.md) | | [optional] | +|**configMap** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | | [optional] | +|**csi** | [**V1CSIVolumeSource**](V1CSIVolumeSource.md) | | [optional] | +|**downwardAPI** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | | [optional] | +|**emptyDir** | [**V1EmptyDirVolumeSource**](V1EmptyDirVolumeSource.md) | | [optional] | +|**ephemeral** | [**V1EphemeralVolumeSource**](V1EphemeralVolumeSource.md) | | [optional] | +|**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | | [optional] | +|**flexVolume** | [**V1FlexVolumeSource**](V1FlexVolumeSource.md) | | [optional] | +|**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | | [optional] | +|**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | | [optional] | +|**gitRepo** | [**V1GitRepoVolumeSource**](V1GitRepoVolumeSource.md) | | [optional] | +|**glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | | [optional] | +|**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] | +|**iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | | [optional] | +|**name** | **String** | 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 | | +|**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] | +|**persistentVolumeClaim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | | [optional] | +|**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | | [optional] | +|**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | | [optional] | +|**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | | [optional] | +|**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | | [optional] | +|**rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | | [optional] | +|**scaleIO** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | | [optional] | +|**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | | [optional] | +|**storageos** | [**V1StorageOSVolumeSource**](V1StorageOSVolumeSource.md) | | [optional] | +|**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] | diff --git a/kubernetes/docs/V1VolumeAttachment.md b/kubernetes/docs/V1VolumeAttachment.md index 6e6e004f0b..4fbd023ed9 100644 --- a/kubernetes/docs/V1VolumeAttachment.md +++ b/kubernetes/docs/V1VolumeAttachment.md @@ -3,15 +3,16 @@ # V1VolumeAttachment VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1VolumeAttachmentSpec**](V1VolumeAttachmentSpec.md) | | -**status** | [**V1VolumeAttachmentStatus**](V1VolumeAttachmentStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1VolumeAttachmentSpec**](V1VolumeAttachmentSpec.md) | | | +|**status** | [**V1VolumeAttachmentStatus**](V1VolumeAttachmentStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1VolumeAttachmentList.md b/kubernetes/docs/V1VolumeAttachmentList.md index 19eadf1ceb..423653df65 100644 --- a/kubernetes/docs/V1VolumeAttachmentList.md +++ b/kubernetes/docs/V1VolumeAttachmentList.md @@ -3,14 +3,15 @@ # V1VolumeAttachmentList VolumeAttachmentList is a collection of VolumeAttachment objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1VolumeAttachment>**](V1VolumeAttachment.md) | items is the list of VolumeAttachments | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1VolumeAttachment>**](V1VolumeAttachment.md) | items is the list of VolumeAttachments | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1VolumeAttachmentSource.md b/kubernetes/docs/V1VolumeAttachmentSource.md index 2aa506c144..704beb236b 100644 --- a/kubernetes/docs/V1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1VolumeAttachmentSource.md @@ -3,12 +3,13 @@ # V1VolumeAttachmentSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**inlineVolumeSpec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] -**persistentVolumeName** | **String** | persistentVolumeName represents the name of the persistent volume to attach. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**inlineVolumeSpec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] | +|**persistentVolumeName** | **String** | persistentVolumeName represents the name of the persistent volume to attach. | [optional] | diff --git a/kubernetes/docs/V1VolumeAttachmentSpec.md b/kubernetes/docs/V1VolumeAttachmentSpec.md index f1a481a08e..4bf2fdbe04 100644 --- a/kubernetes/docs/V1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1VolumeAttachmentSpec.md @@ -3,13 +3,14 @@ # V1VolumeAttachmentSpec VolumeAttachmentSpec is the specification of a VolumeAttachment request. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attacher** | **String** | attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). | -**nodeName** | **String** | nodeName represents the node that the volume should be attached to. | -**source** | [**V1VolumeAttachmentSource**](V1VolumeAttachmentSource.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attacher** | **String** | attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). | | +|**nodeName** | **String** | nodeName represents the node that the volume should be attached to. | | +|**source** | [**V1VolumeAttachmentSource**](V1VolumeAttachmentSource.md) | | | diff --git a/kubernetes/docs/V1VolumeAttachmentStatus.md b/kubernetes/docs/V1VolumeAttachmentStatus.md index 4979a1adf3..134b2534b3 100644 --- a/kubernetes/docs/V1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1VolumeAttachmentStatus.md @@ -3,14 +3,15 @@ # V1VolumeAttachmentStatus VolumeAttachmentStatus is the status of a VolumeAttachment request. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attachError** | [**V1VolumeError**](V1VolumeError.md) | | [optional] -**attached** | **Boolean** | 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. | -**attachmentMetadata** | **Map<String, String>** | 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. | [optional] -**detachError** | [**V1VolumeError**](V1VolumeError.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attachError** | [**V1VolumeError**](V1VolumeError.md) | | [optional] | +|**attached** | **Boolean** | 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. | | +|**attachmentMetadata** | **Map<String, String>** | 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. | [optional] | +|**detachError** | [**V1VolumeError**](V1VolumeError.md) | | [optional] | diff --git a/kubernetes/docs/V1VolumeDevice.md b/kubernetes/docs/V1VolumeDevice.md index 1ce5aba785..3067470a16 100644 --- a/kubernetes/docs/V1VolumeDevice.md +++ b/kubernetes/docs/V1VolumeDevice.md @@ -3,12 +3,13 @@ # V1VolumeDevice volumeDevice describes a mapping of a raw block device within a container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**devicePath** | **String** | devicePath is the path inside of the container that the device will be mapped to. | -**name** | **String** | name must match the name of a persistentVolumeClaim in the pod | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**devicePath** | **String** | devicePath is the path inside of the container that the device will be mapped to. | | +|**name** | **String** | name must match the name of a persistentVolumeClaim in the pod | | diff --git a/kubernetes/docs/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index 6aeb2676f6..263cd4a036 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -3,12 +3,13 @@ # V1VolumeError VolumeError captures an error encountered during a volume operation. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] -**time** | [**OffsetDateTime**](OffsetDateTime.md) | time represents the time the error was encountered. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**message** | **String** | message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] | +|**time** | **OffsetDateTime** | time represents the time the error was encountered. | [optional] | diff --git a/kubernetes/docs/V1VolumeMount.md b/kubernetes/docs/V1VolumeMount.md index 7aad8281fa..97d024c4b8 100644 --- a/kubernetes/docs/V1VolumeMount.md +++ b/kubernetes/docs/V1VolumeMount.md @@ -3,16 +3,17 @@ # V1VolumeMount VolumeMount describes a mounting of a Volume within a container. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mountPath** | **String** | Path within the container at which the volume should be mounted. Must not contain ':'. | -**mountPropagation** | **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. | [optional] -**name** | **String** | This must match the Name of a Volume. | -**readOnly** | **Boolean** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] -**subPath** | **String** | Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). | [optional] -**subPathExpr** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mountPath** | **String** | Path within the container at which the volume should be mounted. Must not contain ':'. | | +|**mountPropagation** | **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. | [optional] | +|**name** | **String** | This must match the Name of a Volume. | | +|**readOnly** | **Boolean** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] | +|**subPath** | **String** | Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). | [optional] | +|**subPathExpr** | **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. | [optional] | diff --git a/kubernetes/docs/V1VolumeNodeAffinity.md b/kubernetes/docs/V1VolumeNodeAffinity.md index a7ffc7f16f..881f7b8e8a 100644 --- a/kubernetes/docs/V1VolumeNodeAffinity.md +++ b/kubernetes/docs/V1VolumeNodeAffinity.md @@ -3,11 +3,12 @@ # V1VolumeNodeAffinity VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**required** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**required** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1VolumeNodeResources.md b/kubernetes/docs/V1VolumeNodeResources.md index 09f770e7a9..2138cc7f4e 100644 --- a/kubernetes/docs/V1VolumeNodeResources.md +++ b/kubernetes/docs/V1VolumeNodeResources.md @@ -3,11 +3,12 @@ # V1VolumeNodeResources VolumeNodeResources is a set of resource limits for scheduling of volumes. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Integer** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**count** | **Integer** | 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. | [optional] | diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md index afe552ed84..38573e960c 100644 --- a/kubernetes/docs/V1VolumeProjection.md +++ b/kubernetes/docs/V1VolumeProjection.md @@ -3,14 +3,15 @@ # V1VolumeProjection Projection that may be projected along with other supported volume types + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configMap** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | | [optional] -**downwardAPI** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | | [optional] -**secret** | [**V1SecretProjection**](V1SecretProjection.md) | | [optional] -**serviceAccountToken** | [**V1ServiceAccountTokenProjection**](V1ServiceAccountTokenProjection.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**configMap** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | | [optional] | +|**downwardAPI** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | | [optional] | +|**secret** | [**V1SecretProjection**](V1SecretProjection.md) | | [optional] | +|**serviceAccountToken** | [**V1ServiceAccountTokenProjection**](V1ServiceAccountTokenProjection.md) | | [optional] | diff --git a/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md b/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md index 09dfccac78..3821200ff4 100644 --- a/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md +++ b/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md @@ -3,14 +3,15 @@ # V1VsphereVirtualDiskVolumeSource Represents a vSphere volume resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **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. | [optional] -**storagePolicyID** | **String** | storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. | [optional] -**storagePolicyName** | **String** | storagePolicyName is the storage Policy Based Management (SPBM) profile name. | [optional] -**volumePath** | **String** | volumePath is the path that identifies vSphere volume vmdk | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fsType** | **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. | [optional] | +|**storagePolicyID** | **String** | storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. | [optional] | +|**storagePolicyName** | **String** | storagePolicyName is the storage Policy Based Management (SPBM) profile name. | [optional] | +|**volumePath** | **String** | volumePath is the path that identifies vSphere volume vmdk | | diff --git a/kubernetes/docs/V1WatchEvent.md b/kubernetes/docs/V1WatchEvent.md index 5fcc963599..2e7c594a71 100644 --- a/kubernetes/docs/V1WatchEvent.md +++ b/kubernetes/docs/V1WatchEvent.md @@ -3,12 +3,13 @@ # V1WatchEvent Event represents a single event to a watched resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_object** | [**Object**](.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | -**type** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_object** | **Object** | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | | +|**type** | **String** | | | diff --git a/kubernetes/docs/V1WebhookConversion.md b/kubernetes/docs/V1WebhookConversion.md index d8e2c038f2..72ccb3110e 100644 --- a/kubernetes/docs/V1WebhookConversion.md +++ b/kubernetes/docs/V1WebhookConversion.md @@ -3,12 +3,13 @@ # V1WebhookConversion WebhookConversion describes how to call a conversion webhook + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientConfig** | [**ApiextensionsV1WebhookClientConfig**](ApiextensionsV1WebhookClientConfig.md) | | [optional] -**conversionReviewVersions** | **List<String>** | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientConfig** | [**ApiextensionsV1WebhookClientConfig**](ApiextensionsV1WebhookClientConfig.md) | | [optional] | +|**conversionReviewVersions** | **List<String>** | 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. | | diff --git a/kubernetes/docs/V1WeightedPodAffinityTerm.md b/kubernetes/docs/V1WeightedPodAffinityTerm.md index daf184be92..97f390ae38 100644 --- a/kubernetes/docs/V1WeightedPodAffinityTerm.md +++ b/kubernetes/docs/V1WeightedPodAffinityTerm.md @@ -3,12 +3,13 @@ # V1WeightedPodAffinityTerm The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**podAffinityTerm** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | | -**weight** | **Integer** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**podAffinityTerm** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | | | +|**weight** | **Integer** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | | diff --git a/kubernetes/docs/V1WindowsSecurityContextOptions.md b/kubernetes/docs/V1WindowsSecurityContextOptions.md index 8c9fb0fa08..ab5edc6afb 100644 --- a/kubernetes/docs/V1WindowsSecurityContextOptions.md +++ b/kubernetes/docs/V1WindowsSecurityContextOptions.md @@ -3,6 +3,7 @@ # V1WindowsSecurityContextOptions WindowsSecurityContextOptions contain Windows-specific options and credentials. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1alpha1AuditAnnotation.md b/kubernetes/docs/V1alpha1AuditAnnotation.md index 173dec2e77..29f9604b56 100644 --- a/kubernetes/docs/V1alpha1AuditAnnotation.md +++ b/kubernetes/docs/V1alpha1AuditAnnotation.md @@ -3,12 +3,13 @@ # V1alpha1AuditAnnotation AuditAnnotation describes how to produce an audit annotation for an API request. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | 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. | -**valueExpression** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | 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. | | +|**valueExpression** | **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. | | diff --git a/kubernetes/docs/V1alpha1ClusterCIDR.md b/kubernetes/docs/V1alpha1ClusterCIDR.md index 525601be2e..a80792e94a 100644 --- a/kubernetes/docs/V1alpha1ClusterCIDR.md +++ b/kubernetes/docs/V1alpha1ClusterCIDR.md @@ -3,14 +3,15 @@ # V1alpha1ClusterCIDR ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1ClusterCIDRSpec**](V1alpha1ClusterCIDRSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha1ClusterCIDRSpec**](V1alpha1ClusterCIDRSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ClusterCIDRList.md b/kubernetes/docs/V1alpha1ClusterCIDRList.md index 4d7c42fdf2..5e2be21cd6 100644 --- a/kubernetes/docs/V1alpha1ClusterCIDRList.md +++ b/kubernetes/docs/V1alpha1ClusterCIDRList.md @@ -3,14 +3,15 @@ # V1alpha1ClusterCIDRList ClusterCIDRList contains a list of ClusterCIDR. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1ClusterCIDR>**](V1alpha1ClusterCIDR.md) | items is the list of ClusterCIDRs. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha1ClusterCIDR>**](V1alpha1ClusterCIDR.md) | items is the list of ClusterCIDRs. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ClusterCIDRSpec.md b/kubernetes/docs/V1alpha1ClusterCIDRSpec.md index 08cf3fde4e..465fc53b70 100644 --- a/kubernetes/docs/V1alpha1ClusterCIDRSpec.md +++ b/kubernetes/docs/V1alpha1ClusterCIDRSpec.md @@ -3,14 +3,15 @@ # V1alpha1ClusterCIDRSpec ClusterCIDRSpec defines the desired state of ClusterCIDR. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipv4** | **String** | ipv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. | [optional] -**ipv6** | **String** | ipv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. | [optional] -**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] -**perNodeHostBits** | **Integer** | perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ipv4** | **String** | ipv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. | [optional] | +|**ipv6** | **String** | ipv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**perNodeHostBits** | **Integer** | perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. | | diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundle.md b/kubernetes/docs/V1alpha1ClusterTrustBundle.md index d6df7d59d3..1f1f632e55 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundle.md +++ b/kubernetes/docs/V1alpha1ClusterTrustBundle.md @@ -3,14 +3,15 @@ # V1alpha1ClusterTrustBundle 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1ClusterTrustBundleSpec**](V1alpha1ClusterTrustBundleSpec.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha1ClusterTrustBundleSpec**](V1alpha1ClusterTrustBundleSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundleList.md b/kubernetes/docs/V1alpha1ClusterTrustBundleList.md index 7921b32b41..363253d074 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundleList.md +++ b/kubernetes/docs/V1alpha1ClusterTrustBundleList.md @@ -3,14 +3,15 @@ # V1alpha1ClusterTrustBundleList ClusterTrustBundleList is a collection of ClusterTrustBundle objects + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1ClusterTrustBundle>**](V1alpha1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha1ClusterTrustBundle>**](V1alpha1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md b/kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md index 885d161fc4..4a28975ef5 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md +++ b/kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md @@ -3,12 +3,13 @@ # V1alpha1ClusterTrustBundleSpec ClusterTrustBundleSpec contains the signer and trust anchors. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**signerName** | **String** | 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=<the signer name> 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. | [optional] -**trustBundle** | **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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**signerName** | **String** | 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=<the signer name> 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. | [optional] | +|**trustBundle** | **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. | | diff --git a/kubernetes/docs/V1alpha1ExpressionWarning.md b/kubernetes/docs/V1alpha1ExpressionWarning.md index d13791f315..d659ac1775 100644 --- a/kubernetes/docs/V1alpha1ExpressionWarning.md +++ b/kubernetes/docs/V1alpha1ExpressionWarning.md @@ -3,12 +3,13 @@ # V1alpha1ExpressionWarning ExpressionWarning is a warning information that targets a specific expression. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldRef** | **String** | The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" | -**warning** | **String** | The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fieldRef** | **String** | The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" | | +|**warning** | **String** | The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. | | diff --git a/kubernetes/docs/V1alpha1IPAddress.md b/kubernetes/docs/V1alpha1IPAddress.md index 3a9d2ca552..c7b3d74517 100644 --- a/kubernetes/docs/V1alpha1IPAddress.md +++ b/kubernetes/docs/V1alpha1IPAddress.md @@ -3,14 +3,15 @@ # V1alpha1IPAddress IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1IPAddressSpec**](V1alpha1IPAddressSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha1IPAddressSpec**](V1alpha1IPAddressSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1IPAddressList.md b/kubernetes/docs/V1alpha1IPAddressList.md index 1dac25a27d..a87df1b682 100644 --- a/kubernetes/docs/V1alpha1IPAddressList.md +++ b/kubernetes/docs/V1alpha1IPAddressList.md @@ -3,14 +3,15 @@ # V1alpha1IPAddressList IPAddressList contains a list of IPAddress. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1IPAddress>**](V1alpha1IPAddress.md) | items is the list of IPAddresses. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha1IPAddress>**](V1alpha1IPAddress.md) | items is the list of IPAddresses. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1IPAddressSpec.md b/kubernetes/docs/V1alpha1IPAddressSpec.md index eb4722cd41..5c77beee39 100644 --- a/kubernetes/docs/V1alpha1IPAddressSpec.md +++ b/kubernetes/docs/V1alpha1IPAddressSpec.md @@ -3,11 +3,12 @@ # V1alpha1IPAddressSpec IPAddressSpec describe the attributes in an IP Address. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parentRef** | [**V1alpha1ParentReference**](V1alpha1ParentReference.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**parentRef** | [**V1alpha1ParentReference**](V1alpha1ParentReference.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha1MatchCondition.md b/kubernetes/docs/V1alpha1MatchCondition.md index 2c646ccc3b..408358d77e 100644 --- a/kubernetes/docs/V1alpha1MatchCondition.md +++ b/kubernetes/docs/V1alpha1MatchCondition.md @@ -2,12 +2,13 @@ # V1alpha1MatchCondition + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expression** | **String** | Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | -**name** | **String** | Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | | +|**name** | **String** | Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | | diff --git a/kubernetes/docs/V1alpha1MatchResources.md b/kubernetes/docs/V1alpha1MatchResources.md index 0b0dc62811..e357a705e5 100644 --- a/kubernetes/docs/V1alpha1MatchResources.md +++ b/kubernetes/docs/V1alpha1MatchResources.md @@ -3,15 +3,16 @@ # V1alpha1MatchResources 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**excludeResourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] -**matchPolicy** | **String** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" | [optional] -**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**resourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**excludeResourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | +|**matchPolicy** | **String** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" | [optional] | +|**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | +|**resourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | diff --git a/kubernetes/docs/V1alpha1NamedRuleWithOperations.md b/kubernetes/docs/V1alpha1NamedRuleWithOperations.md index 9af8fd5083..32134dc468 100644 --- a/kubernetes/docs/V1alpha1NamedRuleWithOperations.md +++ b/kubernetes/docs/V1alpha1NamedRuleWithOperations.md @@ -3,16 +3,17 @@ # V1alpha1NamedRuleWithOperations NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] -**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] -**operations** | **List<String>** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] -**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] -**resources** | **List<String>** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] -**scope** | **String** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**operations** | **List<String>** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | +|**resources** | **List<String>** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | +|**scope** | **String** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] | diff --git a/kubernetes/docs/V1alpha1ParamKind.md b/kubernetes/docs/V1alpha1ParamKind.md index 6ac77583e9..fb2afab481 100644 --- a/kubernetes/docs/V1alpha1ParamKind.md +++ b/kubernetes/docs/V1alpha1ParamKind.md @@ -3,12 +3,13 @@ # V1alpha1ParamKind ParamKind is a tuple of Group Kind and Version. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] -**kind** | **String** | Kind is the API kind the resources belong to. Required. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] | +|**kind** | **String** | Kind is the API kind the resources belong to. Required. | [optional] | diff --git a/kubernetes/docs/V1alpha1ParentReference.md b/kubernetes/docs/V1alpha1ParentReference.md index 4375b2ac3c..aba806f25d 100644 --- a/kubernetes/docs/V1alpha1ParentReference.md +++ b/kubernetes/docs/V1alpha1ParentReference.md @@ -3,15 +3,16 @@ # V1alpha1ParentReference ParentReference describes a reference to a parent object. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **String** | Group is the group of the object being referenced. | [optional] -**name** | **String** | Name is the name of the object being referenced. | [optional] -**namespace** | **String** | Namespace is the namespace of the object being referenced. | [optional] -**resource** | **String** | Resource is the resource of the object being referenced. | [optional] -**uid** | **String** | UID is the uid of the object being referenced. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | **String** | Group is the group of the object being referenced. | [optional] | +|**name** | **String** | Name is the name of the object being referenced. | [optional] | +|**namespace** | **String** | Namespace is the namespace of the object being referenced. | [optional] | +|**resource** | **String** | Resource is the resource of the object being referenced. | [optional] | +|**uid** | **String** | UID is the uid of the object being referenced. | [optional] | diff --git a/kubernetes/docs/V1alpha1SelfSubjectReview.md b/kubernetes/docs/V1alpha1SelfSubjectReview.md index 10efa8a8d1..38a1dbfa4c 100644 --- a/kubernetes/docs/V1alpha1SelfSubjectReview.md +++ b/kubernetes/docs/V1alpha1SelfSubjectReview.md @@ -3,14 +3,15 @@ # V1alpha1SelfSubjectReview 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**status** | [**V1alpha1SelfSubjectReviewStatus**](V1alpha1SelfSubjectReviewStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**status** | [**V1alpha1SelfSubjectReviewStatus**](V1alpha1SelfSubjectReviewStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1SelfSubjectReviewStatus.md b/kubernetes/docs/V1alpha1SelfSubjectReviewStatus.md index cd085ddd4f..e9547678c2 100644 --- a/kubernetes/docs/V1alpha1SelfSubjectReviewStatus.md +++ b/kubernetes/docs/V1alpha1SelfSubjectReviewStatus.md @@ -3,11 +3,12 @@ # V1alpha1SelfSubjectReviewStatus SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userInfo** | [**V1UserInfo**](V1UserInfo.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userInfo** | [**V1UserInfo**](V1UserInfo.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha1ServerStorageVersion.md b/kubernetes/docs/V1alpha1ServerStorageVersion.md index 0c5f787aac..9e5c0a0821 100644 --- a/kubernetes/docs/V1alpha1ServerStorageVersion.md +++ b/kubernetes/docs/V1alpha1ServerStorageVersion.md @@ -3,6 +3,7 @@ # V1alpha1ServerStorageVersion An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1alpha1StorageVersion.md b/kubernetes/docs/V1alpha1StorageVersion.md index 4692ab0a1a..76d06a1e87 100644 --- a/kubernetes/docs/V1alpha1StorageVersion.md +++ b/kubernetes/docs/V1alpha1StorageVersion.md @@ -3,15 +3,16 @@ # V1alpha1StorageVersion Storage version of a specific resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**Object**](.md) | Spec is an empty spec. It is here to comply with Kubernetes API style. | -**status** | [**V1alpha1StorageVersionStatus**](V1alpha1StorageVersionStatus.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | **Object** | Spec is an empty spec. It is here to comply with Kubernetes API style. | | +|**status** | [**V1alpha1StorageVersionStatus**](V1alpha1StorageVersionStatus.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1StorageVersionCondition.md b/kubernetes/docs/V1alpha1StorageVersionCondition.md index a157f9642d..e1245597ce 100644 --- a/kubernetes/docs/V1alpha1StorageVersionCondition.md +++ b/kubernetes/docs/V1alpha1StorageVersionCondition.md @@ -3,16 +3,17 @@ # V1alpha1StorageVersionCondition Describes the state of the storageVersion at a certain point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the condition was set based upon. | [optional] -**reason** | **String** | The reason for the condition's last transition. | -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of the condition. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | A human readable message indicating details about the transition. | [optional] | +|**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the condition was set based upon. | [optional] | +|**reason** | **String** | The reason for the condition's last transition. | | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | | +|**type** | **String** | Type of the condition. | | diff --git a/kubernetes/docs/V1alpha1StorageVersionList.md b/kubernetes/docs/V1alpha1StorageVersionList.md index ad1644ae50..0932570827 100644 --- a/kubernetes/docs/V1alpha1StorageVersionList.md +++ b/kubernetes/docs/V1alpha1StorageVersionList.md @@ -3,14 +3,15 @@ # V1alpha1StorageVersionList A list of StorageVersions. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1StorageVersion>**](V1alpha1StorageVersion.md) | Items holds a list of StorageVersion | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha1StorageVersion>**](V1alpha1StorageVersion.md) | Items holds a list of StorageVersion | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1StorageVersionStatus.md b/kubernetes/docs/V1alpha1StorageVersionStatus.md index a7b1dd2c22..fc33d7a085 100644 --- a/kubernetes/docs/V1alpha1StorageVersionStatus.md +++ b/kubernetes/docs/V1alpha1StorageVersionStatus.md @@ -3,13 +3,14 @@ # V1alpha1StorageVersionStatus API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**commonEncodingVersion** | **String** | If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. | [optional] -**conditions** | [**List<V1alpha1StorageVersionCondition>**](V1alpha1StorageVersionCondition.md) | The latest available observations of the storageVersion's state. | [optional] -**storageVersions** | [**List<V1alpha1ServerStorageVersion>**](V1alpha1ServerStorageVersion.md) | The reported versions per API server instance. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**commonEncodingVersion** | **String** | If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. | [optional] | +|**conditions** | [**List<V1alpha1StorageVersionCondition>**](V1alpha1StorageVersionCondition.md) | The latest available observations of the storageVersion's state. | [optional] | +|**storageVersions** | [**List<V1alpha1ServerStorageVersion>**](V1alpha1ServerStorageVersion.md) | The reported versions per API server instance. | [optional] | diff --git a/kubernetes/docs/V1alpha1TypeChecking.md b/kubernetes/docs/V1alpha1TypeChecking.md index 2be9166d59..d8f286e35f 100644 --- a/kubernetes/docs/V1alpha1TypeChecking.md +++ b/kubernetes/docs/V1alpha1TypeChecking.md @@ -3,11 +3,12 @@ # V1alpha1TypeChecking TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expressionWarnings** | [**List<V1alpha1ExpressionWarning>**](V1alpha1ExpressionWarning.md) | The type checking warnings for each expression. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expressionWarnings** | [**List<V1alpha1ExpressionWarning>**](V1alpha1ExpressionWarning.md) | The type checking warnings for each expression. | [optional] | diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md index ceb637b580..6a1905b243 100644 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md +++ b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md @@ -3,15 +3,16 @@ # V1alpha1ValidatingAdmissionPolicy ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1ValidatingAdmissionPolicySpec**](V1alpha1ValidatingAdmissionPolicySpec.md) | | [optional] -**status** | [**V1alpha1ValidatingAdmissionPolicyStatus**](V1alpha1ValidatingAdmissionPolicyStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha1ValidatingAdmissionPolicySpec**](V1alpha1ValidatingAdmissionPolicySpec.md) | | [optional] | +|**status** | [**V1alpha1ValidatingAdmissionPolicyStatus**](V1alpha1ValidatingAdmissionPolicyStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBinding.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBinding.md index 861c728e23..e9ac6d2998 100644 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBinding.md +++ b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBinding.md @@ -5,12 +5,12 @@ 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. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1ValidatingAdmissionPolicyBindingSpec**](V1alpha1ValidatingAdmissionPolicyBindingSpec.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha1ValidatingAdmissionPolicyBindingSpec**](V1alpha1ValidatingAdmissionPolicyBindingSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingList.md index dc822e3b70..0ae842b819 100644 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingList.md +++ b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingList.md @@ -3,14 +3,15 @@ # V1alpha1ValidatingAdmissionPolicyBindingList ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1ValidatingAdmissionPolicyBinding>**](V1alpha1ValidatingAdmissionPolicyBinding.md) | List of PolicyBinding. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha1ValidatingAdmissionPolicyBinding>**](V1alpha1ValidatingAdmissionPolicyBinding.md) | List of PolicyBinding. | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md index e74870a02e..6b77ac416f 100644 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md +++ b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md @@ -3,14 +3,15 @@ # V1alpha1ValidatingAdmissionPolicyBindingSpec ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchResources** | [**V1alpha1MatchResources**](V1alpha1MatchResources.md) | | [optional] -**paramRef** | [**V1alpha1ParamRef**](V1alpha1ParamRef.md) | | [optional] -**policyName** | **String** | PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | [optional] -**validationActions** | **List<String>** | validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchResources** | [**V1alpha1MatchResources**](V1alpha1MatchResources.md) | | [optional] | +|**paramRef** | [**V1alpha1ParamRef**](V1alpha1ParamRef.md) | | [optional] | +|**policyName** | **String** | PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | [optional] | +|**validationActions** | **List<String>** | validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. | [optional] | diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyList.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyList.md index 1c799cc393..05db4fb968 100644 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyList.md +++ b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyList.md @@ -3,14 +3,15 @@ # V1alpha1ValidatingAdmissionPolicyList ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1ValidatingAdmissionPolicy>**](V1alpha1ValidatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha1ValidatingAdmissionPolicy>**](V1alpha1ValidatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicySpec.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicySpec.md index 86445850f1..8762d1c928 100644 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicySpec.md +++ b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicySpec.md @@ -3,6 +3,7 @@ # V1alpha1ValidatingAdmissionPolicySpec ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyStatus.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyStatus.md index 6fb53c505e..057e3e8b09 100644 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyStatus.md +++ b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyStatus.md @@ -3,13 +3,14 @@ # V1alpha1ValidatingAdmissionPolicyStatus ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1Condition>**](V1Condition.md) | The conditions represent the latest available observations of a policy's current state. | [optional] -**observedGeneration** | **Long** | The generation observed by the controller. | [optional] -**typeChecking** | [**V1alpha1TypeChecking**](V1alpha1TypeChecking.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | The conditions represent the latest available observations of a policy's current state. | [optional] | +|**observedGeneration** | **Long** | The generation observed by the controller. | [optional] | +|**typeChecking** | [**V1alpha1TypeChecking**](V1alpha1TypeChecking.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha1Validation.md b/kubernetes/docs/V1alpha1Validation.md index 8c218791b7..ad42e94677 100644 --- a/kubernetes/docs/V1alpha1Validation.md +++ b/kubernetes/docs/V1alpha1Validation.md @@ -3,6 +3,7 @@ # V1alpha1Validation Validation specifies the CEL expression which is used to apply the validation. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1alpha2AllocationResult.md b/kubernetes/docs/V1alpha2AllocationResult.md index 10ea5f23cd..f731d9907f 100644 --- a/kubernetes/docs/V1alpha2AllocationResult.md +++ b/kubernetes/docs/V1alpha2AllocationResult.md @@ -3,13 +3,14 @@ # V1alpha2AllocationResult AllocationResult contains attributes of an allocated resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableOnNodes** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] -**resourceHandles** | [**List<V1alpha2ResourceHandle>**](V1alpha2ResourceHandle.md) | 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. | [optional] -**shareable** | **Boolean** | Shareable determines whether the resource supports more than one consumer at a time. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**availableOnNodes** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**resourceHandles** | [**List<V1alpha2ResourceHandle>**](V1alpha2ResourceHandle.md) | 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. | [optional] | +|**shareable** | **Boolean** | Shareable determines whether the resource supports more than one consumer at a time. | [optional] | diff --git a/kubernetes/docs/V1alpha2PodSchedulingContext.md b/kubernetes/docs/V1alpha2PodSchedulingContext.md index 4231f8d014..d3aae46b38 100644 --- a/kubernetes/docs/V1alpha2PodSchedulingContext.md +++ b/kubernetes/docs/V1alpha2PodSchedulingContext.md @@ -3,15 +3,16 @@ # V1alpha2PodSchedulingContext 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2PodSchedulingContextSpec**](V1alpha2PodSchedulingContextSpec.md) | | -**status** | [**V1alpha2PodSchedulingContextStatus**](V1alpha2PodSchedulingContextStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha2PodSchedulingContextSpec**](V1alpha2PodSchedulingContextSpec.md) | | | +|**status** | [**V1alpha2PodSchedulingContextStatus**](V1alpha2PodSchedulingContextStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2PodSchedulingContextList.md b/kubernetes/docs/V1alpha2PodSchedulingContextList.md index 405caa0c5a..8ac4d056a5 100644 --- a/kubernetes/docs/V1alpha2PodSchedulingContextList.md +++ b/kubernetes/docs/V1alpha2PodSchedulingContextList.md @@ -3,14 +3,15 @@ # V1alpha2PodSchedulingContextList PodSchedulingContextList is a collection of Pod scheduling objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha2PodSchedulingContext>**](V1alpha2PodSchedulingContext.md) | Items is the list of PodSchedulingContext objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha2PodSchedulingContext>**](V1alpha2PodSchedulingContext.md) | Items is the list of PodSchedulingContext objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2PodSchedulingContextSpec.md b/kubernetes/docs/V1alpha2PodSchedulingContextSpec.md index bb3817e2af..9e8caefe57 100644 --- a/kubernetes/docs/V1alpha2PodSchedulingContextSpec.md +++ b/kubernetes/docs/V1alpha2PodSchedulingContextSpec.md @@ -3,12 +3,13 @@ # V1alpha2PodSchedulingContextSpec PodSchedulingContextSpec describes where resources for the Pod are needed. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**potentialNodes** | **List<String>** | 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. | [optional] -**selectedNode** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**potentialNodes** | **List<String>** | 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. | [optional] | +|**selectedNode** | **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. | [optional] | diff --git a/kubernetes/docs/V1alpha2PodSchedulingContextStatus.md b/kubernetes/docs/V1alpha2PodSchedulingContextStatus.md index e73282f5fd..5b663055f2 100644 --- a/kubernetes/docs/V1alpha2PodSchedulingContextStatus.md +++ b/kubernetes/docs/V1alpha2PodSchedulingContextStatus.md @@ -3,11 +3,12 @@ # V1alpha2PodSchedulingContextStatus PodSchedulingContextStatus describes where resources for the Pod can be allocated. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resourceClaims** | [**List<V1alpha2ResourceClaimSchedulingStatus>**](V1alpha2ResourceClaimSchedulingStatus.md) | ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resourceClaims** | [**List<V1alpha2ResourceClaimSchedulingStatus>**](V1alpha2ResourceClaimSchedulingStatus.md) | ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode. | [optional] | diff --git a/kubernetes/docs/V1alpha2ResourceClaim.md b/kubernetes/docs/V1alpha2ResourceClaim.md index 70aa4e3a40..1026b5123c 100644 --- a/kubernetes/docs/V1alpha2ResourceClaim.md +++ b/kubernetes/docs/V1alpha2ResourceClaim.md @@ -3,15 +3,16 @@ # V1alpha2ResourceClaim 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. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2ResourceClaimSpec**](V1alpha2ResourceClaimSpec.md) | | -**status** | [**V1alpha2ResourceClaimStatus**](V1alpha2ResourceClaimStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha2ResourceClaimSpec**](V1alpha2ResourceClaimSpec.md) | | | +|**status** | [**V1alpha2ResourceClaimStatus**](V1alpha2ResourceClaimStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2ResourceClaimConsumerReference.md b/kubernetes/docs/V1alpha2ResourceClaimConsumerReference.md index 5d0868503d..91132277f3 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimConsumerReference.md +++ b/kubernetes/docs/V1alpha2ResourceClaimConsumerReference.md @@ -3,14 +3,15 @@ # V1alpha2ResourceClaimConsumerReference 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] -**name** | **String** | Name is the name of resource being referenced. | -**resource** | **String** | Resource is the type of resource being referenced, for example \"pods\". | -**uid** | **String** | UID identifies exactly one incarnation of the resource. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] | +|**name** | **String** | Name is the name of resource being referenced. | | +|**resource** | **String** | Resource is the type of resource being referenced, for example \"pods\". | | +|**uid** | **String** | UID identifies exactly one incarnation of the resource. | | diff --git a/kubernetes/docs/V1alpha2ResourceClaimList.md b/kubernetes/docs/V1alpha2ResourceClaimList.md index 6796e36fca..2179d8a915 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimList.md +++ b/kubernetes/docs/V1alpha2ResourceClaimList.md @@ -3,14 +3,15 @@ # V1alpha2ResourceClaimList ResourceClaimList is a collection of claims. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha2ResourceClaim>**](V1alpha2ResourceClaim.md) | Items is the list of resource claims. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha2ResourceClaim>**](V1alpha2ResourceClaim.md) | Items is the list of resource claims. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md b/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md index 16881c09bd..de7638a38c 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md +++ b/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md @@ -3,13 +3,14 @@ # V1alpha2ResourceClaimParametersReference 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] -**kind** | **String** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\". | -**name** | **String** | Name is the name of resource being referenced. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] | +|**kind** | **String** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\". | | +|**name** | **String** | Name is the name of resource being referenced. | | diff --git a/kubernetes/docs/V1alpha2ResourceClaimSchedulingStatus.md b/kubernetes/docs/V1alpha2ResourceClaimSchedulingStatus.md index c61adfcaec..53fa5b7abf 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimSchedulingStatus.md +++ b/kubernetes/docs/V1alpha2ResourceClaimSchedulingStatus.md @@ -3,12 +3,13 @@ # V1alpha2ResourceClaimSchedulingStatus ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name matches the pod.spec.resourceClaims[*].Name field. | [optional] -**unsuitableNodes** | **List<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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name matches the pod.spec.resourceClaims[*].Name field. | [optional] | +|**unsuitableNodes** | **List<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. | [optional] | diff --git a/kubernetes/docs/V1alpha2ResourceClaimSpec.md b/kubernetes/docs/V1alpha2ResourceClaimSpec.md index 1f71aeebe1..89a080f7f1 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimSpec.md +++ b/kubernetes/docs/V1alpha2ResourceClaimSpec.md @@ -3,13 +3,14 @@ # V1alpha2ResourceClaimSpec ResourceClaimSpec defines how a resource is to be allocated. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allocationMode** | **String** | Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default. | [optional] -**parametersRef** | [**V1alpha2ResourceClaimParametersReference**](V1alpha2ResourceClaimParametersReference.md) | | [optional] -**resourceClassName** | **String** | ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationMode** | **String** | Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default. | [optional] | +|**parametersRef** | [**V1alpha2ResourceClaimParametersReference**](V1alpha2ResourceClaimParametersReference.md) | | [optional] | +|**resourceClassName** | **String** | ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. | | diff --git a/kubernetes/docs/V1alpha2ResourceClaimStatus.md b/kubernetes/docs/V1alpha2ResourceClaimStatus.md index 0ffd599020..cc3e56f2eb 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimStatus.md +++ b/kubernetes/docs/V1alpha2ResourceClaimStatus.md @@ -3,14 +3,15 @@ # V1alpha2ResourceClaimStatus ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allocation** | [**V1alpha2AllocationResult**](V1alpha2AllocationResult.md) | | [optional] -**deallocationRequested** | **Boolean** | 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. | [optional] -**driverName** | **String** | DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. | [optional] -**reservedFor** | [**List<V1alpha2ResourceClaimConsumerReference>**](V1alpha2ResourceClaimConsumerReference.md) | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocation** | [**V1alpha2AllocationResult**](V1alpha2AllocationResult.md) | | [optional] | +|**deallocationRequested** | **Boolean** | 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. | [optional] | +|**driverName** | **String** | DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. | [optional] | +|**reservedFor** | [**List<V1alpha2ResourceClaimConsumerReference>**](V1alpha2ResourceClaimConsumerReference.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1alpha2ResourceClaimTemplate.md b/kubernetes/docs/V1alpha2ResourceClaimTemplate.md index 962459cf66..7e7ddaa6c2 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplate.md +++ b/kubernetes/docs/V1alpha2ResourceClaimTemplate.md @@ -3,14 +3,15 @@ # V1alpha2ResourceClaimTemplate ResourceClaimTemplate is used to produce ResourceClaim objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2ResourceClaimTemplateSpec**](V1alpha2ResourceClaimTemplateSpec.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha2ResourceClaimTemplateSpec**](V1alpha2ResourceClaimTemplateSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2ResourceClaimTemplateList.md b/kubernetes/docs/V1alpha2ResourceClaimTemplateList.md index 33977e2089..c0049adaa4 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplateList.md +++ b/kubernetes/docs/V1alpha2ResourceClaimTemplateList.md @@ -3,14 +3,15 @@ # V1alpha2ResourceClaimTemplateList ResourceClaimTemplateList is a collection of claim templates. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha2ResourceClaimTemplate>**](V1alpha2ResourceClaimTemplate.md) | Items is the list of resource claim templates. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha2ResourceClaimTemplate>**](V1alpha2ResourceClaimTemplate.md) | Items is the list of resource claim templates. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2ResourceClaimTemplateSpec.md b/kubernetes/docs/V1alpha2ResourceClaimTemplateSpec.md index ef3ef0065e..981b580270 100644 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplateSpec.md +++ b/kubernetes/docs/V1alpha2ResourceClaimTemplateSpec.md @@ -3,12 +3,13 @@ # V1alpha2ResourceClaimTemplateSpec ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2ResourceClaimSpec**](V1alpha2ResourceClaimSpec.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha2ResourceClaimSpec**](V1alpha2ResourceClaimSpec.md) | | | diff --git a/kubernetes/docs/V1alpha2ResourceClass.md b/kubernetes/docs/V1alpha2ResourceClass.md index f674cb2853..b622d0a1cb 100644 --- a/kubernetes/docs/V1alpha2ResourceClass.md +++ b/kubernetes/docs/V1alpha2ResourceClass.md @@ -3,16 +3,17 @@ # V1alpha2ResourceClass ResourceClass is used by administrators to influence how resources are allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**driverName** | **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). | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**parametersRef** | [**V1alpha2ResourceClassParametersReference**](V1alpha2ResourceClassParametersReference.md) | | [optional] -**suitableNodes** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**driverName** | **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). | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**parametersRef** | [**V1alpha2ResourceClassParametersReference**](V1alpha2ResourceClassParametersReference.md) | | [optional] | +|**suitableNodes** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2ResourceClassList.md b/kubernetes/docs/V1alpha2ResourceClassList.md index 107ac4d33a..a9cb253ac8 100644 --- a/kubernetes/docs/V1alpha2ResourceClassList.md +++ b/kubernetes/docs/V1alpha2ResourceClassList.md @@ -3,14 +3,15 @@ # V1alpha2ResourceClassList ResourceClassList is a collection of classes. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha2ResourceClass>**](V1alpha2ResourceClass.md) | Items is the list of resource classes. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1alpha2ResourceClass>**](V1alpha2ResourceClass.md) | Items is the list of resource classes. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2ResourceClassParametersReference.md b/kubernetes/docs/V1alpha2ResourceClassParametersReference.md index 9e5bfe0471..444de94d76 100644 --- a/kubernetes/docs/V1alpha2ResourceClassParametersReference.md +++ b/kubernetes/docs/V1alpha2ResourceClassParametersReference.md @@ -3,14 +3,15 @@ # V1alpha2ResourceClassParametersReference ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] -**kind** | **String** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. | -**name** | **String** | Name is the name of resource being referenced. | -**namespace** | **String** | Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] | +|**kind** | **String** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. | | +|**name** | **String** | Name is the name of resource being referenced. | | +|**namespace** | **String** | Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. | [optional] | diff --git a/kubernetes/docs/V1alpha2ResourceHandle.md b/kubernetes/docs/V1alpha2ResourceHandle.md index 5dbf2c220d..a2dd5beb3e 100644 --- a/kubernetes/docs/V1alpha2ResourceHandle.md +++ b/kubernetes/docs/V1alpha2ResourceHandle.md @@ -3,12 +3,13 @@ # V1alpha2ResourceHandle ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **String** | 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. | [optional] -**driverName** | **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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **String** | 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. | [optional] | +|**driverName** | **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. | [optional] | diff --git a/kubernetes/docs/V1beta1SelfSubjectReview.md b/kubernetes/docs/V1beta1SelfSubjectReview.md index 4cd793c894..4af7af23d2 100644 --- a/kubernetes/docs/V1beta1SelfSubjectReview.md +++ b/kubernetes/docs/V1beta1SelfSubjectReview.md @@ -3,14 +3,15 @@ # V1beta1SelfSubjectReview 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**status** | [**V1beta1SelfSubjectReviewStatus**](V1beta1SelfSubjectReviewStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**status** | [**V1beta1SelfSubjectReviewStatus**](V1beta1SelfSubjectReviewStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md b/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md index 381754ee06..07510a58b8 100644 --- a/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md +++ b/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md @@ -3,11 +3,12 @@ # V1beta1SelfSubjectReviewStatus SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userInfo** | [**V1UserInfo**](V1UserInfo.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userInfo** | [**V1UserInfo**](V1UserInfo.md) | | [optional] | diff --git a/kubernetes/docs/V1beta2FlowDistinguisherMethod.md b/kubernetes/docs/V1beta2FlowDistinguisherMethod.md index 205699f5ff..40b79e4033 100644 --- a/kubernetes/docs/V1beta2FlowDistinguisherMethod.md +++ b/kubernetes/docs/V1beta2FlowDistinguisherMethod.md @@ -3,11 +3,12 @@ # V1beta2FlowDistinguisherMethod FlowDistinguisherMethod specifies the method of a flow distinguisher. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | | diff --git a/kubernetes/docs/V1beta2FlowSchema.md b/kubernetes/docs/V1beta2FlowSchema.md index 30e409d141..d503f6c811 100644 --- a/kubernetes/docs/V1beta2FlowSchema.md +++ b/kubernetes/docs/V1beta2FlowSchema.md @@ -3,15 +3,16 @@ # V1beta2FlowSchema 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta2FlowSchemaSpec**](V1beta2FlowSchemaSpec.md) | | [optional] -**status** | [**V1beta2FlowSchemaStatus**](V1beta2FlowSchemaStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta2FlowSchemaSpec**](V1beta2FlowSchemaSpec.md) | | [optional] | +|**status** | [**V1beta2FlowSchemaStatus**](V1beta2FlowSchemaStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta2FlowSchemaCondition.md b/kubernetes/docs/V1beta2FlowSchemaCondition.md index 0e090e7eb5..3e32712dfb 100644 --- a/kubernetes/docs/V1beta2FlowSchemaCondition.md +++ b/kubernetes/docs/V1beta2FlowSchemaCondition.md @@ -3,15 +3,16 @@ # V1beta2FlowSchemaCondition FlowSchemaCondition describes conditions for a FlowSchema. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] -**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **String** | `type` is the type of the condition. Required. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] | +|**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] | +|**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] | +|**type** | **String** | `type` is the type of the condition. Required. | [optional] | diff --git a/kubernetes/docs/V1beta2FlowSchemaList.md b/kubernetes/docs/V1beta2FlowSchemaList.md index 1e6c04328f..2d46593537 100644 --- a/kubernetes/docs/V1beta2FlowSchemaList.md +++ b/kubernetes/docs/V1beta2FlowSchemaList.md @@ -3,14 +3,15 @@ # V1beta2FlowSchemaList FlowSchemaList is a list of FlowSchema objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta2FlowSchema>**](V1beta2FlowSchema.md) | `items` is a list of FlowSchemas. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta2FlowSchema>**](V1beta2FlowSchema.md) | `items` is a list of FlowSchemas. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta2FlowSchemaSpec.md b/kubernetes/docs/V1beta2FlowSchemaSpec.md index ca8b38c646..209cbb4608 100644 --- a/kubernetes/docs/V1beta2FlowSchemaSpec.md +++ b/kubernetes/docs/V1beta2FlowSchemaSpec.md @@ -3,14 +3,15 @@ # V1beta2FlowSchemaSpec FlowSchemaSpec describes how the FlowSchema's specification looks like. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**distinguisherMethod** | [**V1beta2FlowDistinguisherMethod**](V1beta2FlowDistinguisherMethod.md) | | [optional] -**matchingPrecedence** | **Integer** | `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. | [optional] -**priorityLevelConfiguration** | [**V1beta2PriorityLevelConfigurationReference**](V1beta2PriorityLevelConfigurationReference.md) | | -**rules** | [**List<V1beta2PolicyRulesWithSubjects>**](V1beta2PolicyRulesWithSubjects.md) | `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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**distinguisherMethod** | [**V1beta2FlowDistinguisherMethod**](V1beta2FlowDistinguisherMethod.md) | | [optional] | +|**matchingPrecedence** | **Integer** | `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. | [optional] | +|**priorityLevelConfiguration** | [**V1beta2PriorityLevelConfigurationReference**](V1beta2PriorityLevelConfigurationReference.md) | | | +|**rules** | [**List<V1beta2PolicyRulesWithSubjects>**](V1beta2PolicyRulesWithSubjects.md) | `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. | [optional] | diff --git a/kubernetes/docs/V1beta2FlowSchemaStatus.md b/kubernetes/docs/V1beta2FlowSchemaStatus.md index 65a4023280..18754424be 100644 --- a/kubernetes/docs/V1beta2FlowSchemaStatus.md +++ b/kubernetes/docs/V1beta2FlowSchemaStatus.md @@ -3,11 +3,12 @@ # V1beta2FlowSchemaStatus FlowSchemaStatus represents the current state of a FlowSchema. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1beta2FlowSchemaCondition>**](V1beta2FlowSchemaCondition.md) | `conditions` is a list of the current states of FlowSchema. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1beta2FlowSchemaCondition>**](V1beta2FlowSchemaCondition.md) | `conditions` is a list of the current states of FlowSchema. | [optional] | diff --git a/kubernetes/docs/V1beta2GroupSubject.md b/kubernetes/docs/V1beta2GroupSubject.md index 5d2e02aa55..61336f2395 100644 --- a/kubernetes/docs/V1beta2GroupSubject.md +++ b/kubernetes/docs/V1beta2GroupSubject.md @@ -3,11 +3,12 @@ # V1beta2GroupSubject GroupSubject holds detailed information for group-kind subject. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 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. | | diff --git a/kubernetes/docs/V1beta2LimitResponse.md b/kubernetes/docs/V1beta2LimitResponse.md index de69307a98..08c3704edf 100644 --- a/kubernetes/docs/V1beta2LimitResponse.md +++ b/kubernetes/docs/V1beta2LimitResponse.md @@ -3,12 +3,13 @@ # V1beta2LimitResponse LimitResponse defines how to handle requests that can not be executed right now. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**queuing** | [**V1beta2QueuingConfiguration**](V1beta2QueuingConfiguration.md) | | [optional] -**type** | **String** | `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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**queuing** | [**V1beta2QueuingConfiguration**](V1beta2QueuingConfiguration.md) | | [optional] | +|**type** | **String** | `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. | | diff --git a/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md index 65cf6facda..adac90e32c 100644 --- a/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md +++ b/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md @@ -3,14 +3,15 @@ # V1beta2LimitedPriorityLevelConfiguration 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? + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assuredConcurrencyShares** | **Integer** | `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. | [optional] -**borrowingLimitPercent** | **Integer** | `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. | [optional] -**lendablePercent** | **Integer** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional] -**limitResponse** | [**V1beta2LimitResponse**](V1beta2LimitResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**assuredConcurrencyShares** | **Integer** | `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. | [optional] | +|**borrowingLimitPercent** | **Integer** | `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. | [optional] | +|**lendablePercent** | **Integer** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional] | +|**limitResponse** | [**V1beta2LimitResponse**](V1beta2LimitResponse.md) | | [optional] | diff --git a/kubernetes/docs/V1beta2NonResourcePolicyRule.md b/kubernetes/docs/V1beta2NonResourcePolicyRule.md index 2020082bc9..5bfa6f15f6 100644 --- a/kubernetes/docs/V1beta2NonResourcePolicyRule.md +++ b/kubernetes/docs/V1beta2NonResourcePolicyRule.md @@ -3,12 +3,13 @@ # V1beta2NonResourcePolicyRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceURLs** | **List<String>** | `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. | -**verbs** | **List<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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nonResourceURLs** | **List<String>** | `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. | | +|**verbs** | **List<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. | | diff --git a/kubernetes/docs/V1beta2PolicyRulesWithSubjects.md b/kubernetes/docs/V1beta2PolicyRulesWithSubjects.md index b04dfba80d..8c8fae3cc6 100644 --- a/kubernetes/docs/V1beta2PolicyRulesWithSubjects.md +++ b/kubernetes/docs/V1beta2PolicyRulesWithSubjects.md @@ -3,13 +3,14 @@ # V1beta2PolicyRulesWithSubjects 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceRules** | [**List<V1beta2NonResourcePolicyRule>**](V1beta2NonResourcePolicyRule.md) | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] -**resourceRules** | [**List<V1beta2ResourcePolicyRule>**](V1beta2ResourcePolicyRule.md) | `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. | [optional] -**subjects** | [**List<V1beta2Subject>**](V1beta2Subject.md) | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nonResourceRules** | [**List<V1beta2NonResourcePolicyRule>**](V1beta2NonResourcePolicyRule.md) | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] | +|**resourceRules** | [**List<V1beta2ResourcePolicyRule>**](V1beta2ResourcePolicyRule.md) | `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. | [optional] | +|**subjects** | [**List<V1beta2Subject>**](V1beta2Subject.md) | 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. | | diff --git a/kubernetes/docs/V1beta2PriorityLevelConfiguration.md b/kubernetes/docs/V1beta2PriorityLevelConfiguration.md index caf309c559..bc808d1893 100644 --- a/kubernetes/docs/V1beta2PriorityLevelConfiguration.md +++ b/kubernetes/docs/V1beta2PriorityLevelConfiguration.md @@ -3,15 +3,16 @@ # V1beta2PriorityLevelConfiguration PriorityLevelConfiguration represents the configuration of a priority level. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta2PriorityLevelConfigurationSpec**](V1beta2PriorityLevelConfigurationSpec.md) | | [optional] -**status** | [**V1beta2PriorityLevelConfigurationStatus**](V1beta2PriorityLevelConfigurationStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta2PriorityLevelConfigurationSpec**](V1beta2PriorityLevelConfigurationSpec.md) | | [optional] | +|**status** | [**V1beta2PriorityLevelConfigurationStatus**](V1beta2PriorityLevelConfigurationStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationCondition.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationCondition.md index 21b1fa620d..8312492df9 100644 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationCondition.md +++ b/kubernetes/docs/V1beta2PriorityLevelConfigurationCondition.md @@ -3,15 +3,16 @@ # V1beta2PriorityLevelConfigurationCondition PriorityLevelConfigurationCondition defines the condition of priority level. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] -**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **String** | `type` is the type of the condition. Required. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] | +|**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] | +|**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] | +|**type** | **String** | `type` is the type of the condition. Required. | [optional] | diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationList.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationList.md index ab02f763dc..d3a439bd34 100644 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationList.md +++ b/kubernetes/docs/V1beta2PriorityLevelConfigurationList.md @@ -3,14 +3,15 @@ # V1beta2PriorityLevelConfigurationList PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta2PriorityLevelConfiguration>**](V1beta2PriorityLevelConfiguration.md) | `items` is a list of request-priorities. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta2PriorityLevelConfiguration>**](V1beta2PriorityLevelConfiguration.md) | `items` is a list of request-priorities. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationReference.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationReference.md index c02be0e6f8..2371187c95 100644 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationReference.md +++ b/kubernetes/docs/V1beta2PriorityLevelConfigurationReference.md @@ -3,11 +3,12 @@ # V1beta2PriorityLevelConfigurationReference PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of the priority level configuration being referenced Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | `name` is the name of the priority level configuration being referenced Required. | | diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationSpec.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationSpec.md index 511f5d368c..3b82925fbd 100644 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationSpec.md +++ b/kubernetes/docs/V1beta2PriorityLevelConfigurationSpec.md @@ -3,6 +3,7 @@ # V1beta2PriorityLevelConfigurationSpec PriorityLevelConfigurationSpec specifies the configuration of a priority level. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationStatus.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationStatus.md index 4181a7c641..123185f367 100644 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationStatus.md +++ b/kubernetes/docs/V1beta2PriorityLevelConfigurationStatus.md @@ -3,11 +3,12 @@ # V1beta2PriorityLevelConfigurationStatus PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1beta2PriorityLevelConfigurationCondition>**](V1beta2PriorityLevelConfigurationCondition.md) | `conditions` is the current state of \"request-priority\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1beta2PriorityLevelConfigurationCondition>**](V1beta2PriorityLevelConfigurationCondition.md) | `conditions` is the current state of \"request-priority\". | [optional] | diff --git a/kubernetes/docs/V1beta2QueuingConfiguration.md b/kubernetes/docs/V1beta2QueuingConfiguration.md index c1e96a7508..0aff61ebc3 100644 --- a/kubernetes/docs/V1beta2QueuingConfiguration.md +++ b/kubernetes/docs/V1beta2QueuingConfiguration.md @@ -3,13 +3,14 @@ # V1beta2QueuingConfiguration QueuingConfiguration holds the configuration parameters for queuing + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**handSize** | **Integer** | `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. | [optional] -**queueLengthLimit** | **Integer** | `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. | [optional] -**queues** | **Integer** | `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**handSize** | **Integer** | `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. | [optional] | +|**queueLengthLimit** | **Integer** | `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. | [optional] | +|**queues** | **Integer** | `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. | [optional] | diff --git a/kubernetes/docs/V1beta2ResourcePolicyRule.md b/kubernetes/docs/V1beta2ResourcePolicyRule.md index 45902af642..00da023298 100644 --- a/kubernetes/docs/V1beta2ResourcePolicyRule.md +++ b/kubernetes/docs/V1beta2ResourcePolicyRule.md @@ -3,15 +3,16 @@ # V1beta2ResourcePolicyRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | `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. | -**clusterScope** | **Boolean** | `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. | [optional] -**namespaces** | **List<String>** | `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. | [optional] -**resources** | **List<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. | -**verbs** | **List<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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroups** | **List<String>** | `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. | | +|**clusterScope** | **Boolean** | `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. | [optional] | +|**namespaces** | **List<String>** | `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. | [optional] | +|**resources** | **List<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. | | +|**verbs** | **List<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. | | diff --git a/kubernetes/docs/V1beta2ServiceAccountSubject.md b/kubernetes/docs/V1beta2ServiceAccountSubject.md index 76bf5eb21e..4c6f8fdfb3 100644 --- a/kubernetes/docs/V1beta2ServiceAccountSubject.md +++ b/kubernetes/docs/V1beta2ServiceAccountSubject.md @@ -3,12 +3,13 @@ # V1beta2ServiceAccountSubject ServiceAccountSubject holds detailed information for service-account-kind subject. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | -**namespace** | **String** | `namespace` is the namespace of matching ServiceAccount objects. Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | | +|**namespace** | **String** | `namespace` is the namespace of matching ServiceAccount objects. Required. | | diff --git a/kubernetes/docs/V1beta2Subject.md b/kubernetes/docs/V1beta2Subject.md index 151a009b00..0aed6bf072 100644 --- a/kubernetes/docs/V1beta2Subject.md +++ b/kubernetes/docs/V1beta2Subject.md @@ -3,14 +3,15 @@ # V1beta2Subject 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | [**V1beta2GroupSubject**](V1beta2GroupSubject.md) | | [optional] -**kind** | **String** | `kind` indicates which one of the other fields is non-empty. Required | -**serviceAccount** | [**V1beta2ServiceAccountSubject**](V1beta2ServiceAccountSubject.md) | | [optional] -**user** | [**V1beta2UserSubject**](V1beta2UserSubject.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | [**V1beta2GroupSubject**](V1beta2GroupSubject.md) | | [optional] | +|**kind** | **String** | `kind` indicates which one of the other fields is non-empty. Required | | +|**serviceAccount** | [**V1beta2ServiceAccountSubject**](V1beta2ServiceAccountSubject.md) | | [optional] | +|**user** | [**V1beta2UserSubject**](V1beta2UserSubject.md) | | [optional] | diff --git a/kubernetes/docs/V1beta2UserSubject.md b/kubernetes/docs/V1beta2UserSubject.md index d96e90f934..d6a592902a 100644 --- a/kubernetes/docs/V1beta2UserSubject.md +++ b/kubernetes/docs/V1beta2UserSubject.md @@ -3,11 +3,12 @@ # V1beta2UserSubject UserSubject holds detailed information for user-kind subject. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the username that matches, or \"*\" to match all usernames. Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | `name` is the username that matches, or \"*\" to match all usernames. Required. | | diff --git a/kubernetes/docs/V1beta3FlowDistinguisherMethod.md b/kubernetes/docs/V1beta3FlowDistinguisherMethod.md index 32f218253a..1c17577520 100644 --- a/kubernetes/docs/V1beta3FlowDistinguisherMethod.md +++ b/kubernetes/docs/V1beta3FlowDistinguisherMethod.md @@ -3,11 +3,12 @@ # V1beta3FlowDistinguisherMethod FlowDistinguisherMethod specifies the method of a flow distinguisher. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | | diff --git a/kubernetes/docs/V1beta3FlowSchema.md b/kubernetes/docs/V1beta3FlowSchema.md index 7c217c67ce..65c3f35498 100644 --- a/kubernetes/docs/V1beta3FlowSchema.md +++ b/kubernetes/docs/V1beta3FlowSchema.md @@ -3,15 +3,16 @@ # V1beta3FlowSchema 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta3FlowSchemaSpec**](V1beta3FlowSchemaSpec.md) | | [optional] -**status** | [**V1beta3FlowSchemaStatus**](V1beta3FlowSchemaStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta3FlowSchemaSpec**](V1beta3FlowSchemaSpec.md) | | [optional] | +|**status** | [**V1beta3FlowSchemaStatus**](V1beta3FlowSchemaStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta3FlowSchemaCondition.md b/kubernetes/docs/V1beta3FlowSchemaCondition.md index da42b09283..a1931e43f5 100644 --- a/kubernetes/docs/V1beta3FlowSchemaCondition.md +++ b/kubernetes/docs/V1beta3FlowSchemaCondition.md @@ -3,15 +3,16 @@ # V1beta3FlowSchemaCondition FlowSchemaCondition describes conditions for a FlowSchema. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] -**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **String** | `type` is the type of the condition. Required. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] | +|**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] | +|**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] | +|**type** | **String** | `type` is the type of the condition. Required. | [optional] | diff --git a/kubernetes/docs/V1beta3FlowSchemaList.md b/kubernetes/docs/V1beta3FlowSchemaList.md index 23e3b5cb28..9abcff7554 100644 --- a/kubernetes/docs/V1beta3FlowSchemaList.md +++ b/kubernetes/docs/V1beta3FlowSchemaList.md @@ -3,14 +3,15 @@ # V1beta3FlowSchemaList FlowSchemaList is a list of FlowSchema objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta3FlowSchema>**](V1beta3FlowSchema.md) | `items` is a list of FlowSchemas. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta3FlowSchema>**](V1beta3FlowSchema.md) | `items` is a list of FlowSchemas. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta3FlowSchemaSpec.md b/kubernetes/docs/V1beta3FlowSchemaSpec.md index 9f71e63b0d..fd7066851e 100644 --- a/kubernetes/docs/V1beta3FlowSchemaSpec.md +++ b/kubernetes/docs/V1beta3FlowSchemaSpec.md @@ -3,14 +3,15 @@ # V1beta3FlowSchemaSpec FlowSchemaSpec describes how the FlowSchema's specification looks like. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**distinguisherMethod** | [**V1beta3FlowDistinguisherMethod**](V1beta3FlowDistinguisherMethod.md) | | [optional] -**matchingPrecedence** | **Integer** | `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. | [optional] -**priorityLevelConfiguration** | [**V1beta3PriorityLevelConfigurationReference**](V1beta3PriorityLevelConfigurationReference.md) | | -**rules** | [**List<V1beta3PolicyRulesWithSubjects>**](V1beta3PolicyRulesWithSubjects.md) | `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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**distinguisherMethod** | [**V1beta3FlowDistinguisherMethod**](V1beta3FlowDistinguisherMethod.md) | | [optional] | +|**matchingPrecedence** | **Integer** | `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. | [optional] | +|**priorityLevelConfiguration** | [**V1beta3PriorityLevelConfigurationReference**](V1beta3PriorityLevelConfigurationReference.md) | | | +|**rules** | [**List<V1beta3PolicyRulesWithSubjects>**](V1beta3PolicyRulesWithSubjects.md) | `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. | [optional] | diff --git a/kubernetes/docs/V1beta3FlowSchemaStatus.md b/kubernetes/docs/V1beta3FlowSchemaStatus.md index 160839c4de..26e7a7c3af 100644 --- a/kubernetes/docs/V1beta3FlowSchemaStatus.md +++ b/kubernetes/docs/V1beta3FlowSchemaStatus.md @@ -3,11 +3,12 @@ # V1beta3FlowSchemaStatus FlowSchemaStatus represents the current state of a FlowSchema. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1beta3FlowSchemaCondition>**](V1beta3FlowSchemaCondition.md) | `conditions` is a list of the current states of FlowSchema. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1beta3FlowSchemaCondition>**](V1beta3FlowSchemaCondition.md) | `conditions` is a list of the current states of FlowSchema. | [optional] | diff --git a/kubernetes/docs/V1beta3GroupSubject.md b/kubernetes/docs/V1beta3GroupSubject.md index 110269c09e..785c89d1e6 100644 --- a/kubernetes/docs/V1beta3GroupSubject.md +++ b/kubernetes/docs/V1beta3GroupSubject.md @@ -3,11 +3,12 @@ # V1beta3GroupSubject GroupSubject holds detailed information for group-kind subject. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 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. | | diff --git a/kubernetes/docs/V1beta3LimitResponse.md b/kubernetes/docs/V1beta3LimitResponse.md index 9014fabfb5..944b1bb27d 100644 --- a/kubernetes/docs/V1beta3LimitResponse.md +++ b/kubernetes/docs/V1beta3LimitResponse.md @@ -3,12 +3,13 @@ # V1beta3LimitResponse LimitResponse defines how to handle requests that can not be executed right now. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**queuing** | [**V1beta3QueuingConfiguration**](V1beta3QueuingConfiguration.md) | | [optional] -**type** | **String** | `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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**queuing** | [**V1beta3QueuingConfiguration**](V1beta3QueuingConfiguration.md) | | [optional] | +|**type** | **String** | `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. | | diff --git a/kubernetes/docs/V1beta3LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1beta3LimitedPriorityLevelConfiguration.md index b6871594d2..26600f5192 100644 --- a/kubernetes/docs/V1beta3LimitedPriorityLevelConfiguration.md +++ b/kubernetes/docs/V1beta3LimitedPriorityLevelConfiguration.md @@ -3,6 +3,7 @@ # V1beta3LimitedPriorityLevelConfiguration 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? + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1beta3NonResourcePolicyRule.md b/kubernetes/docs/V1beta3NonResourcePolicyRule.md index 4ad0b4dc3c..a0fbb6164e 100644 --- a/kubernetes/docs/V1beta3NonResourcePolicyRule.md +++ b/kubernetes/docs/V1beta3NonResourcePolicyRule.md @@ -3,12 +3,13 @@ # V1beta3NonResourcePolicyRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceURLs** | **List<String>** | `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. | -**verbs** | **List<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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nonResourceURLs** | **List<String>** | `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. | | +|**verbs** | **List<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. | | diff --git a/kubernetes/docs/V1beta3PolicyRulesWithSubjects.md b/kubernetes/docs/V1beta3PolicyRulesWithSubjects.md index 36ee2b3897..ffa9f8d5ae 100644 --- a/kubernetes/docs/V1beta3PolicyRulesWithSubjects.md +++ b/kubernetes/docs/V1beta3PolicyRulesWithSubjects.md @@ -3,13 +3,14 @@ # V1beta3PolicyRulesWithSubjects 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceRules** | [**List<V1beta3NonResourcePolicyRule>**](V1beta3NonResourcePolicyRule.md) | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] -**resourceRules** | [**List<V1beta3ResourcePolicyRule>**](V1beta3ResourcePolicyRule.md) | `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. | [optional] -**subjects** | [**List<V1beta3Subject>**](V1beta3Subject.md) | 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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nonResourceRules** | [**List<V1beta3NonResourcePolicyRule>**](V1beta3NonResourcePolicyRule.md) | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] | +|**resourceRules** | [**List<V1beta3ResourcePolicyRule>**](V1beta3ResourcePolicyRule.md) | `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. | [optional] | +|**subjects** | [**List<V1beta3Subject>**](V1beta3Subject.md) | 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. | | diff --git a/kubernetes/docs/V1beta3PriorityLevelConfiguration.md b/kubernetes/docs/V1beta3PriorityLevelConfiguration.md index b63bbde489..f4afa4d3c7 100644 --- a/kubernetes/docs/V1beta3PriorityLevelConfiguration.md +++ b/kubernetes/docs/V1beta3PriorityLevelConfiguration.md @@ -3,15 +3,16 @@ # V1beta3PriorityLevelConfiguration PriorityLevelConfiguration represents the configuration of a priority level. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta3PriorityLevelConfigurationSpec**](V1beta3PriorityLevelConfigurationSpec.md) | | [optional] -**status** | [**V1beta3PriorityLevelConfigurationStatus**](V1beta3PriorityLevelConfigurationStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta3PriorityLevelConfigurationSpec**](V1beta3PriorityLevelConfigurationSpec.md) | | [optional] | +|**status** | [**V1beta3PriorityLevelConfigurationStatus**](V1beta3PriorityLevelConfigurationStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationCondition.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationCondition.md index e2ca995104..c61bd1b846 100644 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationCondition.md +++ b/kubernetes/docs/V1beta3PriorityLevelConfigurationCondition.md @@ -3,15 +3,16 @@ # V1beta3PriorityLevelConfigurationCondition PriorityLevelConfigurationCondition defines the condition of priority level. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] -**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **String** | `type` is the type of the condition. Required. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] | +|**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] | +|**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] | +|**type** | **String** | `type` is the type of the condition. Required. | [optional] | diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationList.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationList.md index b2bb6e9032..a3d063d16f 100644 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationList.md +++ b/kubernetes/docs/V1beta3PriorityLevelConfigurationList.md @@ -3,14 +3,15 @@ # V1beta3PriorityLevelConfigurationList PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta3PriorityLevelConfiguration>**](V1beta3PriorityLevelConfiguration.md) | `items` is a list of request-priorities. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V1beta3PriorityLevelConfiguration>**](V1beta3PriorityLevelConfiguration.md) | `items` is a list of request-priorities. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationReference.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationReference.md index 5ac4aeffcb..41113adca3 100644 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationReference.md +++ b/kubernetes/docs/V1beta3PriorityLevelConfigurationReference.md @@ -3,11 +3,12 @@ # V1beta3PriorityLevelConfigurationReference PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of the priority level configuration being referenced Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | `name` is the name of the priority level configuration being referenced Required. | | diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationSpec.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationSpec.md index 33cd658731..34c56abf52 100644 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationSpec.md +++ b/kubernetes/docs/V1beta3PriorityLevelConfigurationSpec.md @@ -3,6 +3,7 @@ # V1beta3PriorityLevelConfigurationSpec PriorityLevelConfigurationSpec specifies the configuration of a priority level. + ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationStatus.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationStatus.md index 7b05ca1fec..b00fdece67 100644 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationStatus.md +++ b/kubernetes/docs/V1beta3PriorityLevelConfigurationStatus.md @@ -3,11 +3,12 @@ # V1beta3PriorityLevelConfigurationStatus PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1beta3PriorityLevelConfigurationCondition>**](V1beta3PriorityLevelConfigurationCondition.md) | `conditions` is the current state of \"request-priority\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1beta3PriorityLevelConfigurationCondition>**](V1beta3PriorityLevelConfigurationCondition.md) | `conditions` is the current state of \"request-priority\". | [optional] | diff --git a/kubernetes/docs/V1beta3QueuingConfiguration.md b/kubernetes/docs/V1beta3QueuingConfiguration.md index cbfbd0b557..f783dc286b 100644 --- a/kubernetes/docs/V1beta3QueuingConfiguration.md +++ b/kubernetes/docs/V1beta3QueuingConfiguration.md @@ -3,13 +3,14 @@ # V1beta3QueuingConfiguration QueuingConfiguration holds the configuration parameters for queuing + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**handSize** | **Integer** | `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. | [optional] -**queueLengthLimit** | **Integer** | `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. | [optional] -**queues** | **Integer** | `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**handSize** | **Integer** | `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. | [optional] | +|**queueLengthLimit** | **Integer** | `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. | [optional] | +|**queues** | **Integer** | `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. | [optional] | diff --git a/kubernetes/docs/V1beta3ResourcePolicyRule.md b/kubernetes/docs/V1beta3ResourcePolicyRule.md index e593bce08c..dd5863a685 100644 --- a/kubernetes/docs/V1beta3ResourcePolicyRule.md +++ b/kubernetes/docs/V1beta3ResourcePolicyRule.md @@ -3,15 +3,16 @@ # V1beta3ResourcePolicyRule 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | `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. | -**clusterScope** | **Boolean** | `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. | [optional] -**namespaces** | **List<String>** | `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. | [optional] -**resources** | **List<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. | -**verbs** | **List<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. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroups** | **List<String>** | `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. | | +|**clusterScope** | **Boolean** | `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. | [optional] | +|**namespaces** | **List<String>** | `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. | [optional] | +|**resources** | **List<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. | | +|**verbs** | **List<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. | | diff --git a/kubernetes/docs/V1beta3ServiceAccountSubject.md b/kubernetes/docs/V1beta3ServiceAccountSubject.md index 82bc71d1b3..47a854ab06 100644 --- a/kubernetes/docs/V1beta3ServiceAccountSubject.md +++ b/kubernetes/docs/V1beta3ServiceAccountSubject.md @@ -3,12 +3,13 @@ # V1beta3ServiceAccountSubject ServiceAccountSubject holds detailed information for service-account-kind subject. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | -**namespace** | **String** | `namespace` is the namespace of matching ServiceAccount objects. Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | | +|**namespace** | **String** | `namespace` is the namespace of matching ServiceAccount objects. Required. | | diff --git a/kubernetes/docs/V1beta3Subject.md b/kubernetes/docs/V1beta3Subject.md index c90959bf53..ae6c7f473b 100644 --- a/kubernetes/docs/V1beta3Subject.md +++ b/kubernetes/docs/V1beta3Subject.md @@ -3,14 +3,15 @@ # V1beta3Subject 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | [**V1beta3GroupSubject**](V1beta3GroupSubject.md) | | [optional] -**kind** | **String** | `kind` indicates which one of the other fields is non-empty. Required | -**serviceAccount** | [**V1beta3ServiceAccountSubject**](V1beta3ServiceAccountSubject.md) | | [optional] -**user** | [**V1beta3UserSubject**](V1beta3UserSubject.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | [**V1beta3GroupSubject**](V1beta3GroupSubject.md) | | [optional] | +|**kind** | **String** | `kind` indicates which one of the other fields is non-empty. Required | | +|**serviceAccount** | [**V1beta3ServiceAccountSubject**](V1beta3ServiceAccountSubject.md) | | [optional] | +|**user** | [**V1beta3UserSubject**](V1beta3UserSubject.md) | | [optional] | diff --git a/kubernetes/docs/V1beta3UserSubject.md b/kubernetes/docs/V1beta3UserSubject.md index e80939ef03..fcba6218a3 100644 --- a/kubernetes/docs/V1beta3UserSubject.md +++ b/kubernetes/docs/V1beta3UserSubject.md @@ -3,11 +3,12 @@ # V1beta3UserSubject UserSubject holds detailed information for user-kind subject. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the username that matches, or \"*\" to match all usernames. Required. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | `name` is the username that matches, or \"*\" to match all usernames. Required. | | diff --git a/kubernetes/docs/V2ContainerResourceMetricSource.md b/kubernetes/docs/V2ContainerResourceMetricSource.md index 01ba0dd504..5f3787f551 100644 --- a/kubernetes/docs/V2ContainerResourceMetricSource.md +++ b/kubernetes/docs/V2ContainerResourceMetricSource.md @@ -3,13 +3,14 @@ # V2ContainerResourceMetricSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container** | **String** | container is the name of the container in the pods of the scaling target | -**name** | **String** | name is the name of the resource in question. | -**target** | [**V2MetricTarget**](V2MetricTarget.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**container** | **String** | container is the name of the container in the pods of the scaling target | | +|**name** | **String** | name is the name of the resource in question. | | +|**target** | [**V2MetricTarget**](V2MetricTarget.md) | | | diff --git a/kubernetes/docs/V2ContainerResourceMetricStatus.md b/kubernetes/docs/V2ContainerResourceMetricStatus.md index 3db2dca368..2981badf3c 100644 --- a/kubernetes/docs/V2ContainerResourceMetricStatus.md +++ b/kubernetes/docs/V2ContainerResourceMetricStatus.md @@ -3,13 +3,14 @@ # V2ContainerResourceMetricStatus 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container** | **String** | container is the name of the container in the pods of the scaling target | -**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | -**name** | **String** | name is the name of the resource in question. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**container** | **String** | container is the name of the container in the pods of the scaling target | | +|**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | | +|**name** | **String** | name is the name of the resource in question. | | diff --git a/kubernetes/docs/V2CrossVersionObjectReference.md b/kubernetes/docs/V2CrossVersionObjectReference.md index 4225900996..00a864e355 100644 --- a/kubernetes/docs/V2CrossVersionObjectReference.md +++ b/kubernetes/docs/V2CrossVersionObjectReference.md @@ -3,13 +3,14 @@ # V2CrossVersionObjectReference CrossVersionObjectReference contains enough information to let you identify the referred resource. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | apiVersion is the API version of the referent | [optional] -**kind** | **String** | kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | -**name** | **String** | name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | apiVersion is the API version of the referent | [optional] | +|**kind** | **String** | kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | | +|**name** | **String** | name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | | diff --git a/kubernetes/docs/V2ExternalMetricSource.md b/kubernetes/docs/V2ExternalMetricSource.md index dacda79dc4..81a85390a5 100644 --- a/kubernetes/docs/V2ExternalMetricSource.md +++ b/kubernetes/docs/V2ExternalMetricSource.md @@ -3,12 +3,13 @@ # V2ExternalMetricSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | -**target** | [**V2MetricTarget**](V2MetricTarget.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | | +|**target** | [**V2MetricTarget**](V2MetricTarget.md) | | | diff --git a/kubernetes/docs/V2ExternalMetricStatus.md b/kubernetes/docs/V2ExternalMetricStatus.md index 27b1de8246..cde2cbe2b9 100644 --- a/kubernetes/docs/V2ExternalMetricStatus.md +++ b/kubernetes/docs/V2ExternalMetricStatus.md @@ -3,12 +3,13 @@ # V2ExternalMetricStatus ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | -**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | | +|**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | | diff --git a/kubernetes/docs/V2HPAScalingPolicy.md b/kubernetes/docs/V2HPAScalingPolicy.md index 4183e0e266..9a2e553252 100644 --- a/kubernetes/docs/V2HPAScalingPolicy.md +++ b/kubernetes/docs/V2HPAScalingPolicy.md @@ -3,13 +3,14 @@ # V2HPAScalingPolicy HPAScalingPolicy is a single policy which must hold true for a specified past interval. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**periodSeconds** | **Integer** | 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** | **String** | type is used to specify the scaling policy. | -**value** | **Integer** | value contains the amount of change which is permitted by the policy. It must be greater than zero | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**periodSeconds** | **Integer** | 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** | **String** | type is used to specify the scaling policy. | | +|**value** | **Integer** | value contains the amount of change which is permitted by the policy. It must be greater than zero | | diff --git a/kubernetes/docs/V2HPAScalingRules.md b/kubernetes/docs/V2HPAScalingRules.md index 82950a5c43..6115459481 100644 --- a/kubernetes/docs/V2HPAScalingRules.md +++ b/kubernetes/docs/V2HPAScalingRules.md @@ -3,13 +3,14 @@ # V2HPAScalingRules 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policies** | [**List<V2HPAScalingPolicy>**](V2HPAScalingPolicy.md) | 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 | [optional] -**selectPolicy** | **String** | selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. | [optional] -**stabilizationWindowSeconds** | **Integer** | stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**policies** | [**List<V2HPAScalingPolicy>**](V2HPAScalingPolicy.md) | 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 | [optional] | +|**selectPolicy** | **String** | selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. | [optional] | +|**stabilizationWindowSeconds** | **Integer** | stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). | [optional] | diff --git a/kubernetes/docs/V2HorizontalPodAutoscaler.md b/kubernetes/docs/V2HorizontalPodAutoscaler.md index dead897f6a..14897f73aa 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V2HorizontalPodAutoscaler.md @@ -3,15 +3,16 @@ # V2HorizontalPodAutoscaler 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V2HorizontalPodAutoscalerSpec**](V2HorizontalPodAutoscalerSpec.md) | | [optional] -**status** | [**V2HorizontalPodAutoscalerStatus**](V2HorizontalPodAutoscalerStatus.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V2HorizontalPodAutoscalerSpec**](V2HorizontalPodAutoscalerSpec.md) | | [optional] | +|**status** | [**V2HorizontalPodAutoscalerStatus**](V2HorizontalPodAutoscalerStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V2HorizontalPodAutoscalerBehavior.md b/kubernetes/docs/V2HorizontalPodAutoscalerBehavior.md index 01f6b8f10c..e7900f3210 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscalerBehavior.md +++ b/kubernetes/docs/V2HorizontalPodAutoscalerBehavior.md @@ -3,12 +3,13 @@ # V2HorizontalPodAutoscalerBehavior HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scaleDown** | [**V2HPAScalingRules**](V2HPAScalingRules.md) | | [optional] -**scaleUp** | [**V2HPAScalingRules**](V2HPAScalingRules.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**scaleDown** | [**V2HPAScalingRules**](V2HPAScalingRules.md) | | [optional] | +|**scaleUp** | [**V2HPAScalingRules**](V2HPAScalingRules.md) | | [optional] | diff --git a/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md index 1bfa48772a..60b58c88c5 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md @@ -3,15 +3,16 @@ # V2HorizontalPodAutoscalerCondition HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] -**message** | **String** | message is a human-readable explanation containing details about the transition | [optional] -**reason** | **String** | reason is the reason for the condition's last transition. | [optional] -**status** | **String** | status is the status of the condition (True, False, Unknown) | -**type** | **String** | type describes the current condition | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] | +|**message** | **String** | message is a human-readable explanation containing details about the transition | [optional] | +|**reason** | **String** | reason is the reason for the condition's last transition. | [optional] | +|**status** | **String** | status is the status of the condition (True, False, Unknown) | | +|**type** | **String** | type describes the current condition | | diff --git a/kubernetes/docs/V2HorizontalPodAutoscalerList.md b/kubernetes/docs/V2HorizontalPodAutoscalerList.md index 01e1fbc282..97565463d1 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V2HorizontalPodAutoscalerList.md @@ -3,14 +3,15 @@ # V2HorizontalPodAutoscalerList HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V2HorizontalPodAutoscaler>**](V2HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] | +|**items** | [**List<V2HorizontalPodAutoscaler>**](V2HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | | +|**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V2HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2HorizontalPodAutoscalerSpec.md index e0f128fef1..8ccf2c5456 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V2HorizontalPodAutoscalerSpec.md @@ -3,15 +3,16 @@ # V2HorizontalPodAutoscalerSpec HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**behavior** | [**V2HorizontalPodAutoscalerBehavior**](V2HorizontalPodAutoscalerBehavior.md) | | [optional] -**maxReplicas** | **Integer** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | -**metrics** | [**List<V2MetricSpec>**](V2MetricSpec.md) | 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. | [optional] -**minReplicas** | **Integer** | 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. | [optional] -**scaleTargetRef** | [**V2CrossVersionObjectReference**](V2CrossVersionObjectReference.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**behavior** | [**V2HorizontalPodAutoscalerBehavior**](V2HorizontalPodAutoscalerBehavior.md) | | [optional] | +|**maxReplicas** | **Integer** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | | +|**metrics** | [**List<V2MetricSpec>**](V2MetricSpec.md) | 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. | [optional] | +|**minReplicas** | **Integer** | 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. | [optional] | +|**scaleTargetRef** | [**V2CrossVersionObjectReference**](V2CrossVersionObjectReference.md) | | | diff --git a/kubernetes/docs/V2HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2HorizontalPodAutoscalerStatus.md index 83c0c5f542..b4253500db 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V2HorizontalPodAutoscalerStatus.md @@ -3,16 +3,17 @@ # V2HorizontalPodAutoscalerStatus HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V2HorizontalPodAutoscalerCondition>**](V2HorizontalPodAutoscalerCondition.md) | conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. | [optional] -**currentMetrics** | [**List<V2MetricStatus>**](V2MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | [optional] -**currentReplicas** | **Integer** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | [optional] -**desiredReplicas** | **Integer** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | -**lastScaleTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] -**observedGeneration** | **Long** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V2HorizontalPodAutoscalerCondition>**](V2HorizontalPodAutoscalerCondition.md) | conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. | [optional] | +|**currentMetrics** | [**List<V2MetricStatus>**](V2MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | [optional] | +|**currentReplicas** | **Integer** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | [optional] | +|**desiredReplicas** | **Integer** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | | +|**lastScaleTime** | **OffsetDateTime** | 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. | [optional] | +|**observedGeneration** | **Long** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] | diff --git a/kubernetes/docs/V2MetricIdentifier.md b/kubernetes/docs/V2MetricIdentifier.md index 854c30f19f..c4d64ec692 100644 --- a/kubernetes/docs/V2MetricIdentifier.md +++ b/kubernetes/docs/V2MetricIdentifier.md @@ -3,12 +3,13 @@ # V2MetricIdentifier MetricIdentifier defines the name and optionally selector for a metric + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name is the name of the given metric | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name is the name of the given metric | | +|**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | diff --git a/kubernetes/docs/V2MetricSpec.md b/kubernetes/docs/V2MetricSpec.md index b34f339940..8a3c215866 100644 --- a/kubernetes/docs/V2MetricSpec.md +++ b/kubernetes/docs/V2MetricSpec.md @@ -3,16 +3,17 @@ # V2MetricSpec MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerResource** | [**V2ContainerResourceMetricSource**](V2ContainerResourceMetricSource.md) | | [optional] -**external** | [**V2ExternalMetricSource**](V2ExternalMetricSource.md) | | [optional] -**_object** | [**V2ObjectMetricSource**](V2ObjectMetricSource.md) | | [optional] -**pods** | [**V2PodsMetricSource**](V2PodsMetricSource.md) | | [optional] -**resource** | [**V2ResourceMetricSource**](V2ResourceMetricSource.md) | | [optional] -**type** | **String** | 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 | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containerResource** | [**V2ContainerResourceMetricSource**](V2ContainerResourceMetricSource.md) | | [optional] | +|**external** | [**V2ExternalMetricSource**](V2ExternalMetricSource.md) | | [optional] | +|**_object** | [**V2ObjectMetricSource**](V2ObjectMetricSource.md) | | [optional] | +|**pods** | [**V2PodsMetricSource**](V2PodsMetricSource.md) | | [optional] | +|**resource** | [**V2ResourceMetricSource**](V2ResourceMetricSource.md) | | [optional] | +|**type** | **String** | 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 | | diff --git a/kubernetes/docs/V2MetricStatus.md b/kubernetes/docs/V2MetricStatus.md index c3589d1ec8..4c790927b2 100644 --- a/kubernetes/docs/V2MetricStatus.md +++ b/kubernetes/docs/V2MetricStatus.md @@ -3,16 +3,17 @@ # V2MetricStatus MetricStatus describes the last-read state of a single metric. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerResource** | [**V2ContainerResourceMetricStatus**](V2ContainerResourceMetricStatus.md) | | [optional] -**external** | [**V2ExternalMetricStatus**](V2ExternalMetricStatus.md) | | [optional] -**_object** | [**V2ObjectMetricStatus**](V2ObjectMetricStatus.md) | | [optional] -**pods** | [**V2PodsMetricStatus**](V2PodsMetricStatus.md) | | [optional] -**resource** | [**V2ResourceMetricStatus**](V2ResourceMetricStatus.md) | | [optional] -**type** | **String** | 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 | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containerResource** | [**V2ContainerResourceMetricStatus**](V2ContainerResourceMetricStatus.md) | | [optional] | +|**external** | [**V2ExternalMetricStatus**](V2ExternalMetricStatus.md) | | [optional] | +|**_object** | [**V2ObjectMetricStatus**](V2ObjectMetricStatus.md) | | [optional] | +|**pods** | [**V2PodsMetricStatus**](V2PodsMetricStatus.md) | | [optional] | +|**resource** | [**V2ResourceMetricStatus**](V2ResourceMetricStatus.md) | | [optional] | +|**type** | **String** | 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 | | diff --git a/kubernetes/docs/V2MetricTarget.md b/kubernetes/docs/V2MetricTarget.md index cc49f96838..de9e9e3901 100644 --- a/kubernetes/docs/V2MetricTarget.md +++ b/kubernetes/docs/V2MetricTarget.md @@ -3,14 +3,15 @@ # V2MetricTarget MetricTarget defines the target value, average value, or average utilization of a specific metric + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**averageUtilization** | **Integer** | 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 | [optional] -**averageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] -**type** | **String** | type represents whether the metric type is Utilization, Value, or AverageValue | -**value** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**averageUtilization** | **Integer** | 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 | [optional] | +|**averageValue** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +|**type** | **String** | type represents whether the metric type is Utilization, Value, or AverageValue | | +|**value** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | diff --git a/kubernetes/docs/V2MetricValueStatus.md b/kubernetes/docs/V2MetricValueStatus.md index 283fb30b6a..06c70ec26e 100644 --- a/kubernetes/docs/V2MetricValueStatus.md +++ b/kubernetes/docs/V2MetricValueStatus.md @@ -3,13 +3,14 @@ # V2MetricValueStatus MetricValueStatus holds the current value for a metric + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**averageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**averageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] -**value** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**averageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] | +|**averageValue** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +|**value** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | diff --git a/kubernetes/docs/V2ObjectMetricSource.md b/kubernetes/docs/V2ObjectMetricSource.md index 71e3215bef..925d528929 100644 --- a/kubernetes/docs/V2ObjectMetricSource.md +++ b/kubernetes/docs/V2ObjectMetricSource.md @@ -3,13 +3,14 @@ # V2ObjectMetricSource ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**describedObject** | [**V2CrossVersionObjectReference**](V2CrossVersionObjectReference.md) | | -**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | -**target** | [**V2MetricTarget**](V2MetricTarget.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**describedObject** | [**V2CrossVersionObjectReference**](V2CrossVersionObjectReference.md) | | | +|**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | | +|**target** | [**V2MetricTarget**](V2MetricTarget.md) | | | diff --git a/kubernetes/docs/V2ObjectMetricStatus.md b/kubernetes/docs/V2ObjectMetricStatus.md index aa51ddc58f..4d9bfeca8a 100644 --- a/kubernetes/docs/V2ObjectMetricStatus.md +++ b/kubernetes/docs/V2ObjectMetricStatus.md @@ -3,13 +3,14 @@ # V2ObjectMetricStatus ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | -**describedObject** | [**V2CrossVersionObjectReference**](V2CrossVersionObjectReference.md) | | -**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | | +|**describedObject** | [**V2CrossVersionObjectReference**](V2CrossVersionObjectReference.md) | | | +|**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | | diff --git a/kubernetes/docs/V2PodsMetricSource.md b/kubernetes/docs/V2PodsMetricSource.md index 6825619e06..5ad7d60a74 100644 --- a/kubernetes/docs/V2PodsMetricSource.md +++ b/kubernetes/docs/V2PodsMetricSource.md @@ -3,12 +3,13 @@ # V2PodsMetricSource 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | -**target** | [**V2MetricTarget**](V2MetricTarget.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | | +|**target** | [**V2MetricTarget**](V2MetricTarget.md) | | | diff --git a/kubernetes/docs/V2PodsMetricStatus.md b/kubernetes/docs/V2PodsMetricStatus.md index cb0c717f62..640c017c23 100644 --- a/kubernetes/docs/V2PodsMetricStatus.md +++ b/kubernetes/docs/V2PodsMetricStatus.md @@ -3,12 +3,13 @@ # V2PodsMetricStatus PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | -**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | | +|**metric** | [**V2MetricIdentifier**](V2MetricIdentifier.md) | | | diff --git a/kubernetes/docs/V2ResourceMetricSource.md b/kubernetes/docs/V2ResourceMetricSource.md index 27f29cbd08..4975dd312b 100644 --- a/kubernetes/docs/V2ResourceMetricSource.md +++ b/kubernetes/docs/V2ResourceMetricSource.md @@ -3,12 +3,13 @@ # V2ResourceMetricSource 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 | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name is the name of the resource in question. | -**target** | [**V2MetricTarget**](V2MetricTarget.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name is the name of the resource in question. | | +|**target** | [**V2MetricTarget**](V2MetricTarget.md) | | | diff --git a/kubernetes/docs/V2ResourceMetricStatus.md b/kubernetes/docs/V2ResourceMetricStatus.md index 4b268ac39d..9ff526dbaf 100644 --- a/kubernetes/docs/V2ResourceMetricStatus.md +++ b/kubernetes/docs/V2ResourceMetricStatus.md @@ -3,12 +3,13 @@ # V2ResourceMetricStatus 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 -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | -**name** | **String** | name is the name of the resource in question. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**current** | [**V2MetricValueStatus**](V2MetricValueStatus.md) | | | +|**name** | **String** | name is the name of the resource in question. | | diff --git a/kubernetes/docs/VersionApi.md b/kubernetes/docs/VersionApi.md index c2930deef1..07a1d750ba 100644 --- a/kubernetes/docs/VersionApi.md +++ b/kubernetes/docs/VersionApi.md @@ -2,12 +2,12 @@ All URIs are relative to *http://localhost* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCode**](VersionApi.md#getCode) | **GET** /version/ | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getCode**](VersionApi.md#getCode) | **GET** /version/ | | - + # **getCode** > VersionInfo getCode() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/docs/VersionInfo.md b/kubernetes/docs/VersionInfo.md index e4401fa97b..dc1d0666ed 100644 --- a/kubernetes/docs/VersionInfo.md +++ b/kubernetes/docs/VersionInfo.md @@ -3,19 +3,20 @@ # VersionInfo Info contains versioning information. how we'll want to distribute that information. + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**buildDate** | **String** | | -**compiler** | **String** | | -**gitCommit** | **String** | | -**gitTreeState** | **String** | | -**gitVersion** | **String** | | -**goVersion** | **String** | | -**major** | **String** | | -**minor** | **String** | | -**platform** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**buildDate** | **String** | | | +|**compiler** | **String** | | | +|**gitCommit** | **String** | | | +|**gitTreeState** | **String** | | | +|**gitVersion** | **String** | | | +|**goVersion** | **String** | | | +|**major** | **String** | | | +|**minor** | **String** | | | +|**platform** | **String** | | | diff --git a/kubernetes/docs/WellKnownApi.md b/kubernetes/docs/WellKnownApi.md index 81527104ec..54cb1d5498 100644 --- a/kubernetes/docs/WellKnownApi.md +++ b/kubernetes/docs/WellKnownApi.md @@ -7,7 +7,7 @@ Method | HTTP request | Description [**getServiceAccountIssuerOpenIDConfiguration**](WellKnownApi.md#getServiceAccountIssuerOpenIDConfiguration) | **GET** /.well-known/openid-configuration | - + # **getServiceAccountIssuerOpenIDConfiguration** > String getServiceAccountIssuerOpenIDConfiguration() @@ -70,6 +70,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | +| **200** | OK | - | +| **401** | Unauthorized | - | diff --git a/kubernetes/src/main/AndroidManifest.xml b/kubernetes/src/main/AndroidManifest.xml index 75ebeaadbc..fbf56b3be9 100644 --- a/kubernetes/src/main/AndroidManifest.xml +++ b/kubernetes/src/main/AndroidManifest.xml @@ -1,3 +1,3 @@ - + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java index 00e8d96140..5aa1781db0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java @@ -51,10 +51,10 @@ public interface ApiCallback { void onUploadProgress(long bytesWritten, long contentLength, boolean done); /** - * This is called when the API downlond processing. + * This is called when the API download processing. * * @param bytesRead bytes Read - * @param contentLength content lenngth of the response + * @param contentLength content length of the response * @param done Read end */ void onDownloadProgress(long bytesRead, long contentLength, boolean done); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java index 130cc2499d..5867b77eaa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -17,6 +17,7 @@ import okhttp3.internal.tls.OkHostnameVerifier; import okhttp3.logging.HttpLoggingInterceptor; import okhttp3.logging.HttpLoggingInterceptor.Level; +import okio.Buffer; import okio.BufferedSink; import okio.Okio; @@ -29,6 +30,8 @@ import java.net.URI; import java.net.URLConnection; import java.net.URLEncoder; +import java.nio.file.Files; +import java.nio.file.Paths; import java.security.GeneralSecurityException; import java.security.KeyStore; import java.security.SecureRandom; @@ -51,9 +54,21 @@ import io.kubernetes.client.openapi.auth.HttpBearerAuth; import io.kubernetes.client.openapi.auth.ApiKeyAuth; +/** + *

ApiClient class.

+ */ public class ApiClient { private String basePath = "http://localhost"; + protected List servers = new ArrayList(Arrays.asList( + new ServerConfiguration( + "", + "No description provided", + new HashMap() + ) + )); + protected Integer serverIndex = 0; + protected Map serverVariables = null; private boolean debugging = false; private Map defaultHeaderMap = new HashMap(); private Map defaultCookieMap = new HashMap(); @@ -75,7 +90,7 @@ public class ApiClient { private HttpLoggingInterceptor loggingInterceptor; - /* + /** * Basic constructor for ApiClient */ public ApiClient() { @@ -88,6 +103,22 @@ public ApiClient() { authentications = Collections.unmodifiableMap(authentications); } + /** + * Basic constructor with custom OkHttpClient + * + * @param client a {@link okhttp3.OkHttpClient} object + */ + public ApiClient(OkHttpClient client) { + init(); + + httpClient = client; + + // Setup authentications (key: authentication name, value: authentication). + authentications.put("BearerToken", new ApiKeyAuth("header", "authorization")); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + private void initHttpClient() { initHttpClient(Collections.emptyList()); } @@ -130,6 +161,34 @@ public String getBasePath() { */ public ApiClient setBasePath(String basePath) { this.basePath = basePath; + this.serverIndex = null; + return this; + } + + public List getServers() { + return servers; + } + + public ApiClient setServers(List servers) { + this.servers = servers; + return this; + } + + public Integer getServerIndex() { + return serverIndex; + } + + public ApiClient setServerIndex(Integer serverIndex) { + this.serverIndex = serverIndex; + return this; + } + + public Map getServerVariables() { + return serverVariables; + } + + public ApiClient setServerVariables(Map serverVariables) { + this.serverVariables = serverVariables; return this; } @@ -147,7 +206,7 @@ public OkHttpClient getHttpClient() { * * @param newHttpClient An instance of OkHttpClient * @return Api Client - * @throws NullPointerException when newHttpClient is null + * @throws java.lang.NullPointerException when newHttpClient is null */ public ApiClient setHttpClient(OkHttpClient newHttpClient) { this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); @@ -219,6 +278,11 @@ public ApiClient setSslCaCert(InputStream sslCaCert) { return this; } + /** + *

Getter for the field keyManagers.

+ * + * @return an array of {@link javax.net.ssl.KeyManager} objects + */ public KeyManager[] getKeyManagers() { return keyManagers; } @@ -236,32 +300,67 @@ public ApiClient setKeyManagers(KeyManager[] managers) { return this; } + /** + *

Getter for the field dateFormat.

+ * + * @return a {@link java.text.DateFormat} object + */ public DateFormat getDateFormat() { return dateFormat; } + /** + *

Setter for the field dateFormat.

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link io.kubernetes.client.openapi.ApiClient} object + */ public ApiClient setDateFormat(DateFormat dateFormat) { - this.json.setDateFormat(dateFormat); + JSON.setDateFormat(dateFormat); return this; } + /** + *

Set SqlDateFormat.

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link io.kubernetes.client.openapi.ApiClient} object + */ public ApiClient setSqlDateFormat(DateFormat dateFormat) { - this.json.setSqlDateFormat(dateFormat); + JSON.setSqlDateFormat(dateFormat); return this; } + /** + *

Set OffsetDateTimeFormat.

+ * + * @param dateFormat a {@link java.time.format.DateTimeFormatter} object + * @return a {@link io.kubernetes.client.openapi.ApiClient} object + */ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - this.json.setOffsetDateTimeFormat(dateFormat); + JSON.setOffsetDateTimeFormat(dateFormat); return this; } + /** + *

Set LocalDateFormat.

+ * + * @param dateFormat a {@link java.time.format.DateTimeFormatter} object + * @return a {@link io.kubernetes.client.openapi.ApiClient} object + */ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { - this.json.setLocalDateFormat(dateFormat); + JSON.setLocalDateFormat(dateFormat); return this; } + /** + *

Set LenientOnJson.

+ * + * @param lenientOnJson a boolean + * @return a {@link io.kubernetes.client.openapi.ApiClient} object + */ public ApiClient setLenientOnJson(boolean lenientOnJson) { - this.json.setLenientOnJson(lenientOnJson); + JSON.setLenientOnJson(lenientOnJson); return this; } @@ -284,6 +383,7 @@ public Authentication getAuthentication(String authName) { return authentications.get(authName); } + /** * Helper method to set username for the first HTTP basic authentication. * @@ -353,6 +453,18 @@ public void setAccessToken(String accessToken) { throw new RuntimeException("No OAuth2 authentication configured!"); } + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String region, String service) { + throw new RuntimeException("No AWS4 authentication configured!"); + } + /** * Set the User-Agent header's value (by adding to the default header map). * @@ -410,7 +522,9 @@ public ApiClient setDebugging(boolean debugging) { loggingInterceptor.setLevel(Level.BODY); httpClient = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); } else { - httpClient.interceptors().remove(loggingInterceptor); + final OkHttpClient.Builder builder = httpClient.newBuilder(); + builder.interceptors().remove(loggingInterceptor); + httpClient = builder.build(); loggingInterceptor = null; } } @@ -421,9 +535,9 @@ public ApiClient setDebugging(boolean debugging) { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * - * @see createTempFile + * @see createTempFile * @return Temporary folder path */ public String getTempFolderPath() { @@ -453,7 +567,7 @@ public int getConnectTimeout() { /** * Sets the connect timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * {@link java.lang.Integer#MAX_VALUE}. * * @param connectionTimeout connection timeout in milliseconds * @return Api client @@ -475,7 +589,7 @@ public int getReadTimeout() { /** * Sets the read timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * {@link java.lang.Integer#MAX_VALUE}. * * @param readTimeout read timeout in milliseconds * @return Api client @@ -497,7 +611,7 @@ public int getWriteTimeout() { /** * Sets the write timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * {@link java.lang.Integer#MAX_VALUE}. * * @param writeTimeout connection timeout in milliseconds * @return Api client @@ -519,7 +633,7 @@ public String parameterToString(Object param) { return ""; } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { //Serialize to json string and remove the " enclosing characters - String jsonStr = json.serialize(param); + String jsonStr = JSON.serialize(param); return jsonStr.substring(1, jsonStr.length() - 1); } else if (param instanceof Collection) { StringBuilder b = new StringBuilder(); @@ -527,7 +641,7 @@ public String parameterToString(Object param) { if (b.length() > 0) { b.append(","); } - b.append(String.valueOf(o)); + b.append(o); } return b.toString(); } else { @@ -695,17 +809,23 @@ public String selectHeaderAccept(String[] accepts) { * * @param contentTypes The Content-Type array to select from * @return The Content-Type header to use. If the given array is empty, - * or matches "any", JSON will be used. + * returns null. If it matches "any", JSON will be used. */ public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0 || contentTypes[0].equals("*/*")) { + if (contentTypes.length == 0) { + return null; + } + + if (contentTypes[0].equals("*/*")) { return "application/json"; } + for (String contentType : contentTypes) { if (isJsonMime(contentType)) { return contentType; } } + return contentTypes[0]; } @@ -731,7 +851,7 @@ public String escapeString(String str) { * @param response HTTP response * @param returnType The type of the Java object * @return The deserialized Java object - * @throws ApiException If fail to deserialize response body, i.e. cannot read response body + * @throws io.kubernetes.client.openapi.ApiException If fail to deserialize response body, i.e. cannot read response body * or the Content-Type of the response is not supported. */ @SuppressWarnings("unchecked") @@ -772,7 +892,7 @@ public T deserialize(Response response, Type returnType) throws ApiException contentType = "application/json"; } if (isJsonMime(contentType)) { - return json.deserialize(respBody, returnType); + return JSON.deserialize(respBody, returnType); } else if (returnType.equals(String.class)) { // Expecting string, return the raw response body. return (T) respBody; @@ -792,23 +912,27 @@ public T deserialize(Response response, Type returnType) throws ApiException * @param obj The Java object * @param contentType The request Content-Type * @return The serialized request body - * @throws ApiException If fail to serialize the given object + * @throws io.kubernetes.client.openapi.ApiException If fail to serialize the given object */ public RequestBody serialize(Object obj, String contentType) throws ApiException { if (obj instanceof byte[]) { // Binary (byte array) body parameter support. - return RequestBody.create(MediaType.parse(contentType), (byte[]) obj); + return RequestBody.create((byte[]) obj, MediaType.parse(contentType)); } else if (obj instanceof File) { // File body parameter support. - return RequestBody.create(MediaType.parse(contentType), (File) obj); + return RequestBody.create((File) obj, MediaType.parse(contentType)); + } else if ("text/plain".equals(contentType) && obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); } else if (isJsonMime(contentType)) { String content; if (obj != null) { - content = json.serialize(obj); + content = JSON.serialize(obj); } else { content = null; } - return RequestBody.create(MediaType.parse(contentType), content); + return RequestBody.create(content, MediaType.parse(contentType)); + } else if (obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); } else { throw new ApiException("Content type \"" + contentType + "\" is not supported"); } @@ -818,7 +942,7 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException * Download file from the given response. * * @param response An instance of the Response object - * @throws ApiException If fail to read file content from response and write to disk + * @throws io.kubernetes.client.openapi.ApiException If fail to read file content from response and write to disk * @return Downloaded file */ public File downloadFileFromResponse(Response response) throws ApiException { @@ -838,7 +962,7 @@ public File downloadFileFromResponse(Response response) throws ApiException { * * @param response An instance of the Response object * @return Prepared file for the download - * @throws IOException If fail to prepare file for download + * @throws java.io.IOException If fail to prepare file for download */ public File prepareDownloadFile(Response response) throws IOException { String filename = null; @@ -865,15 +989,15 @@ public File prepareDownloadFile(Response response) throws IOException { prefix = filename.substring(0, pos) + "-"; suffix = filename.substring(pos); } - // File.createTempFile requires the prefix to be at least three characters long + // Files.createTempFile requires the prefix to be at least three characters long if (prefix.length() < 3) prefix = "download-"; } if (tempFolderPath == null) - return File.createTempFile(prefix, suffix); + return Files.createTempFile(prefix, suffix).toFile(); else - return File.createTempFile(prefix, suffix, new File(tempFolderPath)); + return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); } /** @@ -882,7 +1006,7 @@ public File prepareDownloadFile(Response response) throws IOException { * @param Type * @param call An instance of the Call object * @return ApiResponse<T> - * @throws ApiException If fail to execute the call + * @throws io.kubernetes.client.openapi.ApiException If fail to execute the call */ public ApiResponse execute(Call call) throws ApiException { return execute(call, null); @@ -897,7 +1021,7 @@ public ApiResponse execute(Call call) throws ApiException { * @return ApiResponse object containing response status, headers and * data, which is a Java object deserialized from response body and would be null * when returnType is null. - * @throws ApiException If fail to execute the call + * @throws io.kubernetes.client.openapi.ApiException If fail to execute the call */ public ApiResponse execute(Call call, Type returnType) throws ApiException { try { @@ -945,6 +1069,9 @@ public void onResponse(Call call, Response response) throws IOException { } catch (ApiException e) { callback.onFailure(e, response.code(), response.headers().toMultimap()); return; + } catch (Exception e) { + callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap()); + return; } callback.onSuccess(result, response.code(), response.headers().toMultimap()); } @@ -958,7 +1085,7 @@ public void onResponse(Call call, Response response) throws IOException { * @param response Response * @param returnType Return type * @return Type - * @throws ApiException If the response has an unsuccessful status code or + * @throws io.kubernetes.client.openapi.ApiException If the response has an unsuccessful status code or * fail to deserialize the response body */ public T handleResponse(Response response, Type returnType) throws ApiException { @@ -993,6 +1120,7 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept /** * Build HTTP call with the given options. * + * @param baseUrl The base URL * @param path The sub-path of the HTTP URL * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" * @param queryParams The query parameters @@ -1004,10 +1132,10 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP call - * @throws ApiException If fail to serialize the request body object + * @throws io.kubernetes.client.openapi.ApiException If fail to serialize the request body object */ - public Call buildCall(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - Request request = buildRequest(path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); + public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); return httpClient.newCall(request); } @@ -1015,6 +1143,7 @@ public Call buildCall(String path, String method, List queryParams, List

queryParams, List

queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - updateParamsForAuth(authNames, queryParams, headerParams, cookieParams); - - final String url = buildUrl(path, queryParams, collectionQueryParams); - final Request.Builder reqBuilder = new Request.Builder().url(url); - processHeaderParams(headerParams, reqBuilder); - processCookieParams(cookieParams, reqBuilder); + public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams + List allQueryParams = new ArrayList(queryParams); + allQueryParams.addAll(collectionQueryParams); - String contentType = (String) headerParams.get("Content-Type"); - // ensuring a default content type - if (contentType == null) { - contentType = "application/json"; - } + final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); + // prepare HTTP request body RequestBody reqBody; + String contentType = headerParams.get("Content-Type"); + if (!HttpMethod.permitsRequestBody(method)) { reqBody = null; } else if ("application/x-www-form-urlencoded".equals(contentType)) { @@ -1055,12 +1180,19 @@ public Request buildRequest(String path, String method, List queryParams, reqBody = null; } else { // use an empty request body (for POST, PUT and PATCH) - reqBody = RequestBody.create(MediaType.parse(contentType), ""); + reqBody = RequestBody.create("", contentType == null ? null : MediaType.parse(contentType)); } } else { reqBody = serialize(body, contentType); } + // update parameters with authentication settings + updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + + final Request.Builder reqBuilder = new Request.Builder().url(url); + processHeaderParams(headerParams, reqBuilder); + processCookieParams(cookieParams, reqBuilder); + // Associate callback with request (if not null) so interceptor can // access it when creating ProgressResponseBody reqBuilder.tag(callback); @@ -1080,14 +1212,30 @@ public Request buildRequest(String path, String method, List queryParams, /** * Build full URL by concatenating base path, the given sub path and query parameters. * + * @param baseUrl The base URL * @param path The sub path * @param queryParams The query parameters * @param collectionQueryParams The collection query parameters * @return The full URL */ - public String buildUrl(String path, List queryParams, List collectionQueryParams) { + public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) { final StringBuilder url = new StringBuilder(); - url.append(basePath).append(path); + if (baseUrl != null) { + url.append(baseUrl).append(path); + } else { + String baseURL; + if (serverIndex != null) { + if (serverIndex < 0 || serverIndex >= servers.size()) { + throw new ArrayIndexOutOfBoundsException(String.format( + "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() + )); + } + baseURL = servers.get(serverIndex).URL(serverVariables); + } else { + baseURL = basePath; + } + url.append(baseURL).append(path); + } if (queryParams != null && !queryParams.isEmpty()) { // support (constant) query string in `path`, e.g. "/posts?draft=1" @@ -1167,14 +1315,19 @@ public void processCookieParams(Map cookieParams, Request.Builde * @param queryParams List of query parameters * @param headerParams Map of header parameters * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws io.kubernetes.client.openapi.ApiException If fails to update the parameters */ - public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams) { + public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, + Map cookieParams, String payload, String method, URI uri) throws ApiException { for (String authName : authNames) { Authentication auth = authentications.get(authName); if (auth == null) { throw new RuntimeException("Authentication undefined: " + authName); } - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); } } @@ -1204,12 +1357,18 @@ public RequestBody buildRequestBodyMultipart(Map formParams) { for (Entry param : formParams.entrySet()) { if (param.getValue() instanceof File) { File file = (File) param.getValue(); - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\""); - MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); - mpBuilder.addPart(partHeaders, RequestBody.create(mediaType, file)); + addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); + } else if (param.getValue() instanceof List) { + List list = (List) param.getValue(); + for (Object item: list) { + if (item instanceof File) { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); + } else { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); + } + } } else { - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\""); - mpBuilder.addPart(partHeaders, RequestBody.create(null, parameterToString(param.getValue()))); + addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); } } return mpBuilder.build(); @@ -1230,6 +1389,44 @@ public String guessContentTypeFromFile(File file) { } } + /** + * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param file The file to add to the Header + */ + private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); + MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); + mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); + } + + /** + * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param obj The complex object to add to the Header + */ + private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { + RequestBody requestBody; + if (obj instanceof String) { + requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); + } else { + String content; + if (obj != null) { + content = JSON.serialize(obj); + } else { + content = null; + } + requestBody = RequestBody.create(content, MediaType.parse("application/json")); + } + + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); + mpBuilder.addPart(partHeaders, requestBody); + } + /** * Get network interceptor to add it to the httpClient to track download progress for * async requests. @@ -1297,7 +1494,7 @@ public boolean verify(String hostname, SSLSession session) { KeyStore caKeyStore = newEmptyKeyStore(password); int index = 0; for (Certificate certificate : certificates) { - String certificateAlias = "ca" + Integer.toString(index++); + String certificateAlias = "ca" + (index++); caKeyStore.setCertificateEntry(certificateAlias, certificate); } trustManagerFactory.init(caKeyStore); @@ -1326,4 +1523,26 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti throw new AssertionError(e); } } + + /** + * Convert the HTTP request body to a string. + * + * @param requestBody The HTTP request object + * @return The string representation of the HTTP request body + * @throws io.kubernetes.client.openapi.ApiException If fail to serialize the request body object into a string + */ + private String requestBodyToString(RequestBody requestBody) throws ApiException { + if (requestBody != null) { + try { + final Buffer buffer = new Buffer(); + requestBody.writeTo(buffer); + return buffer.readUtf8(); + } catch (final IOException e) { + throw new ApiException(e); + } + } + + // empty http request body + return ""; + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java index 25846be158..77238c3b0f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -21,16 +21,38 @@ public class ApiException extends Exception { private Map> responseHeaders = null; private String responseBody = null; + /** + *

Constructor for ApiException.

+ */ public ApiException() {} + /** + *

Constructor for ApiException.

+ * + * @param throwable a {@link java.lang.Throwable} object + */ public ApiException(Throwable throwable) { super(throwable); } + /** + *

Constructor for ApiException.

+ * + * @param message the error message + */ public ApiException(String message) { super(message); } + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { super(message, throwable); this.code = code; @@ -38,23 +60,60 @@ public ApiException(String message, Throwable throwable, int code, MapConstructor for ApiException.

+ * + * @param message the error message + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ public ApiException(String message, int code, Map> responseHeaders, String responseBody) { this(message, (Throwable) null, code, responseHeaders, responseBody); } + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + */ public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { this(message, throwable, code, responseHeaders, null); } + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ public ApiException(int code, Map> responseHeaders, String responseBody) { - this((String) null, (Throwable) null, code, responseHeaders, responseBody); + this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody); } + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param message a {@link java.lang.String} object + */ public ApiException(int code, String message) { super(message); this.code = code; } + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param message the error message + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ public ApiException(int code, String message, Map> responseHeaders, String responseBody) { this(code, message); this.responseHeaders = responseHeaders; @@ -87,4 +146,14 @@ public Map> getResponseHeaders() { public String getResponseBody() { return responseBody; } + + /** + * Get the exception message including HTTP response data. + * + * @return The exception message + */ + public String getMessage() { + return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java index 18ff659d51..c7f62a4484 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java @@ -17,8 +17,6 @@ /** * API response returned by API call. - * - * @param The type of data that is deserialized from response body */ public class ApiResponse { final private int statusCode; @@ -26,6 +24,8 @@ public class ApiResponse { final private T data; /** + *

Constructor for ApiResponse.

+ * * @param statusCode The status code of HTTP response * @param headers The headers of HTTP response */ @@ -34,6 +34,8 @@ public ApiResponse(int statusCode, Map> headers) { } /** + *

Constructor for ApiResponse.

+ * * @param statusCode The status code of HTTP response * @param headers The headers of HTTP response * @param data The object deserialized from response bod @@ -44,14 +46,29 @@ public ApiResponse(int statusCode, Map> headers, T data) { this.data = data; } + /** + *

Get the status code.

+ * + * @return the status code + */ public int getStatusCode() { return statusCode; } + /** + *

Get the headers.

+ * + * @return a {@link java.util.Map} of headers + */ public Map> getHeaders() { return headers; } + /** + *

Get the data.

+ * + * @return the data + */ public T getData() { return data; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java index 77bb757f6e..1118d70765 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -14,6 +14,8 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") public class Configuration { + public static final String VERSION = "20.0.0-SNAPSHOT"; + private static ApiClient defaultApiClient = new ApiClient(); /** diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java index 5a9feaa43e..72abd47d19 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -1,5 +1,5 @@ /* -Copyright 2021 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -14,31 +14,45 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonElement; import io.gsonfire.GsonFireBuilder; -import io.kubernetes.client.gson.V1StatusPreProcessor; -import io.kubernetes.client.openapi.models.V1Status; +import io.gsonfire.TypeSelector; + +import okio.ByteString; + import java.io.IOException; import java.io.StringReader; import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; -import java.time.Instant; +import java.text.ParsePosition; import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; -import java.time.format.DateTimeFormatterBuilder; -import java.time.format.DateTimeParseException; -import java.time.temporal.ChronoField; import java.util.Date; +import java.util.Locale; import java.util.Map; -import okio.ByteString; +import java.util.HashMap; +/* + * A JSON utility class + * + * NOTE: in the future, this class may be converted to static, which may break + * backward-compatibility + */ public class JSON { + private static Gson gson; + private static boolean isLenientOnJson = false; + private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); + private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); + private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); + private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); private Gson gson; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java index d3367162d6..64da0c5b25 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -51,10 +51,6 @@ private boolean isValidString(String arg) { return false; } - if (arg.trim().isEmpty()) { - return false; - } - return true; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java index 7ae6af31e5..ffb42219f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java @@ -24,7 +24,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { @@ -51,10 +51,10 @@ public String URL(Map variables) { if (variables != null && variables.containsKey(name)) { value = variables.get(name); if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { - throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + "."); + throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); } } - url = url.replaceAll("\\{" + name + "\\}", value); + url = url.replace("{" + name + "}", value); } return url; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java index 8b7039fdb7..56732c80bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -57,4 +57,23 @@ public static String join(String[] array, String separator) { } return out.toString(); } + + /** + * Join a list of strings with the given separator. + * + * @param list The list of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(Collection list, String separator) { + Iterator iterator = list.iterator(); + StringBuilder out = new StringBuilder(); + if (iterator.hasNext()) { + out.append(iterator.next()); + } + while (iterator.hasNext()) { + out.append(separator).append(iterator.next()); + } + return out.toString(); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java index 50190aef3c..1b9e3e0d77 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AdmissionregistrationApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AdmissionregistrationApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java index 84a92a7fcf..e0681aa0e7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java @@ -40,9 +40,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AdmissionregistrationV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AdmissionregistrationV1Api() { this(Configuration.getDefaultApiClient()); @@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createMutatingWebhookConfiguration * @param body (required) @@ -80,6 +99,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -87,6 +119,10 @@ public okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookConf List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookConf localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,23 +153,22 @@ public okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookConf "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createMutatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = createMutatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createMutatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -234,6 +268,19 @@ public okhttp3.Call createMutatingWebhookConfigurationAsync(V1MutatingWebhookCon */ public okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -241,6 +288,10 @@ public okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhook List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -257,11 +308,10 @@ public okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhook localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -272,23 +322,22 @@ public okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhook "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -395,6 +444,19 @@ public okhttp3.Call createValidatingWebhookConfigurationAsync(V1ValidatingWebhoo */ public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -402,6 +464,10 @@ public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pret List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -454,11 +520,10 @@ public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -469,18 +534,17 @@ public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pret "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -608,6 +672,19 @@ public okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(String pre */ public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -615,6 +692,10 @@ public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pr List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -667,11 +748,10 @@ public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -682,18 +762,17 @@ public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pr "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -815,14 +894,31 @@ public okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(String p */ public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -843,11 +939,10 @@ public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -858,23 +953,22 @@ public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -978,14 +1072,31 @@ public okhttp3.Call deleteMutatingWebhookConfigurationAsync(String name, String */ public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1006,11 +1117,10 @@ public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1021,23 +1131,22 @@ public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1133,6 +1242,19 @@ public okhttp3.Call deleteValidatingWebhookConfigurationAsync(String name, Strin */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1143,8 +1265,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1152,21 +1277,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -1249,6 +1372,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1256,6 +1392,10 @@ public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1300,11 +1440,12 @@ public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1312,21 +1453,19 @@ public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1442,6 +1581,19 @@ public okhttp3.Call listMutatingWebhookConfigurationAsync(String pretty, Boolean */ public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1449,6 +1601,10 @@ public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolea List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1493,11 +1649,12 @@ public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolea localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1505,21 +1662,19 @@ public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolea } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listValidatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1632,14 +1787,31 @@ public okhttp3.Call listValidatingWebhookConfigurationAsync(String pretty, Boole */ public okhttp3.Call patchMutatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1660,11 +1832,10 @@ public okhttp3.Call patchMutatingWebhookConfigurationCall(String name, V1Patch b localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1675,15 +1846,16 @@ public okhttp3.Call patchMutatingWebhookConfigurationCall(String name, V1Patch b "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchMutatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchMutatingWebhookConfiguration(Async)"); @@ -1694,9 +1866,7 @@ private okhttp3.Call patchMutatingWebhookConfigurationValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchMutatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1800,14 +1970,31 @@ public okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch */ public okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1828,11 +2015,10 @@ public okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1843,15 +2029,16 @@ public okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingWebhookConfiguration(Async)"); @@ -1862,9 +2049,7 @@ private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling patchValidatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1962,23 +2147,39 @@ public okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, V1Patc */ public okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1986,26 +2187,24 @@ public okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pre } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readMutatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = readMutatingWebhookConfigurationCall(name, pretty, _callback); - return localVarCall; + return readMutatingWebhookConfigurationCall(name, pretty, _callback); } @@ -2085,23 +2284,39 @@ public okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String pr */ public okhttp3.Call readValidatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2109,26 +2324,24 @@ public okhttp3.Call readValidatingWebhookConfigurationCall(String name, String p } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = readValidatingWebhookConfigurationCall(name, pretty, _callback); - return localVarCall; + return readValidatingWebhookConfigurationCall(name, pretty, _callback); } @@ -2213,14 +2426,31 @@ public okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String */ public okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2237,11 +2467,10 @@ public okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1Mutat localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2252,15 +2481,16 @@ public okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1Mutat "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingWebhookConfiguration(Async)"); @@ -2271,9 +2501,7 @@ private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -2373,14 +2601,31 @@ public okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1Muta */ public okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2397,11 +2642,10 @@ public okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1Val localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2412,15 +2656,16 @@ public okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1Val "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingWebhookConfiguration(Async)"); @@ -2431,9 +2676,7 @@ private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingWebhookConfiguration(Async)"); } - - okhttp3.Call localVarCall = replaceValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java index 4ad04882df..e5115d9a46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java @@ -40,9 +40,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AdmissionregistrationV1alpha1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AdmissionregistrationV1alpha1Api() { this(Configuration.getDefaultApiClient()); @@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createValidatingAdmissionPolicy * @param body (required) @@ -80,6 +99,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -87,6 +119,10 @@ public okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmiss List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmiss localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,23 +153,22 @@ public okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmiss "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicy(Async)"); } - - okhttp3.Call localVarCall = createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -234,6 +268,19 @@ public okhttp3.Call createValidatingAdmissionPolicyAsync(V1alpha1ValidatingAdmis */ public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -241,6 +288,10 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1Validatin List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -257,11 +308,10 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1Validatin localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -272,23 +322,22 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1Validatin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicyBinding(Async)"); } - - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -395,6 +444,19 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1alpha1Validati */ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -402,6 +464,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -454,11 +520,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -469,18 +534,17 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -608,6 +672,19 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty */ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -615,6 +692,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -667,11 +748,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -682,18 +762,17 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -815,14 +894,31 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String */ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -843,11 +939,10 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -858,23 +953,22 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); } - - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -978,14 +1072,31 @@ public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pre */ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1006,11 +1117,10 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1021,23 +1131,22 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); } - - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1133,6 +1242,19 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, Str */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1143,8 +1265,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1152,21 +1277,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -1249,6 +1372,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1256,6 +1392,10 @@ public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean all List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1300,11 +1440,12 @@ public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean all localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1312,21 +1453,19 @@ public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean all } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1442,6 +1581,19 @@ public okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean al */ public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1449,6 +1601,10 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Bool List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1493,11 +1649,12 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Bool localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1505,21 +1662,19 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Bool } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1632,14 +1787,31 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boo */ public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1660,11 +1832,10 @@ public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1675,15 +1846,16 @@ public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicy(Async)"); @@ -1694,9 +1866,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicy(Async)"); } - - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1800,14 +1970,31 @@ public okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch bod */ public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1828,11 +2015,10 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pat localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1843,15 +2029,16 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pat "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyBinding(Async)"); @@ -1862,9 +2049,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyBinding(Async)"); } - - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1968,14 +2153,31 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Pa */ public okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1996,11 +2198,10 @@ public okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patc localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2011,15 +2212,16 @@ public okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patc "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyStatus(Async)"); @@ -2030,9 +2232,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyStatus(Async)"); } - - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2130,23 +2330,39 @@ public okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Pat */ public okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2154,26 +2370,24 @@ public okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicy(Async)"); } - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyCall(name, pretty, _callback); - return localVarCall; + return readValidatingAdmissionPolicyCall(name, pretty, _callback); } @@ -2253,23 +2467,39 @@ public okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String prett */ public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2277,26 +2507,24 @@ public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyBinding(Async)"); } - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); - return localVarCall; + return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); } @@ -2376,23 +2604,39 @@ public okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, Strin */ public okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2400,26 +2644,24 @@ public okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyStatus(Async)"); } - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); - return localVarCall; + return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); } @@ -2504,14 +2746,31 @@ public okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, String */ public okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2528,11 +2787,10 @@ public okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1alpha1Va localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2543,15 +2801,16 @@ public okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1alpha1Va "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicy(Async)"); @@ -2562,9 +2821,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicy(Async)"); } - - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -2664,14 +2921,31 @@ public okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1alpha1V */ public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2688,11 +2962,10 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1a localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2703,15 +2976,16 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1a "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyBinding(Async)"); @@ -2722,9 +2996,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyBinding(Async)"); } - - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -2824,14 +3096,31 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1 */ public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2848,11 +3137,10 @@ public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1al localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2863,15 +3151,16 @@ public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1al "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyStatus(Async)"); @@ -2882,9 +3171,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyStatus(Async)"); } - - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java index 6ada207d39..3df646701f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class ApiextensionsApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public ApiextensionsApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java index a0d967cf11..35caab96f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class ApiextensionsV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public ApiextensionsV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createCustomResourceDefinition * @param body (required) @@ -78,6 +97,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -85,6 +117,10 @@ public okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefinitio List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -101,11 +137,10 @@ public okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefinitio localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -116,23 +151,22 @@ public okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefinitio "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCustomResourceDefinition(Async)"); } - - okhttp3.Call localVarCall = createCustomResourceDefinitionCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createCustomResourceDefinitionCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -239,6 +273,19 @@ public okhttp3.Call createCustomResourceDefinitionAsync(V1CustomResourceDefiniti */ public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -246,6 +293,10 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -298,11 +349,10 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -313,18 +363,17 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -446,14 +495,31 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(String pretty, */ public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -474,11 +540,10 @@ public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -489,23 +554,22 @@ public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String prett "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCustomResourceDefinition(Async)"); } - - okhttp3.Call localVarCall = deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -601,6 +665,19 @@ public okhttp3.Call deleteCustomResourceDefinitionAsync(String name, String pret */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -611,8 +688,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,21 +700,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -717,6 +795,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -724,6 +815,10 @@ public okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean allo List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -768,11 +863,12 @@ public okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean allo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -780,21 +876,19 @@ public okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean allo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCustomResourceDefinitionValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -907,14 +1001,31 @@ public okhttp3.Call listCustomResourceDefinitionAsync(String pretty, Boolean all */ public okhttp3.Call patchCustomResourceDefinitionCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -935,11 +1046,10 @@ public okhttp3.Call patchCustomResourceDefinitionCall(String name, V1Patch body, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -950,15 +1060,16 @@ public okhttp3.Call patchCustomResourceDefinitionCall(String name, V1Patch body, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchCustomResourceDefinitionValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCustomResourceDefinition(Async)"); @@ -969,9 +1080,7 @@ private okhttp3.Call patchCustomResourceDefinitionValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling patchCustomResourceDefinition(Async)"); } - - okhttp3.Call localVarCall = patchCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1075,14 +1184,31 @@ public okhttp3.Call patchCustomResourceDefinitionAsync(String name, V1Patch body */ public okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1103,11 +1229,10 @@ public okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patch localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1118,15 +1243,16 @@ public okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patch "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCustomResourceDefinitionStatus(Async)"); @@ -1137,9 +1263,7 @@ private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling patchCustomResourceDefinitionStatus(Async)"); } - - okhttp3.Call localVarCall = patchCustomResourceDefinitionStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchCustomResourceDefinitionStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1237,23 +1361,39 @@ public okhttp3.Call patchCustomResourceDefinitionStatusAsync(String name, V1Patc */ public okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1261,26 +1401,24 @@ public okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCustomResourceDefinition(Async)"); } - - okhttp3.Call localVarCall = readCustomResourceDefinitionCall(name, pretty, _callback); - return localVarCall; + return readCustomResourceDefinitionCall(name, pretty, _callback); } @@ -1360,23 +1498,39 @@ public okhttp3.Call readCustomResourceDefinitionAsync(String name, String pretty */ public okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1384,26 +1538,24 @@ public okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String p } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCustomResourceDefinitionStatus(Async)"); } - - okhttp3.Call localVarCall = readCustomResourceDefinitionStatusCall(name, pretty, _callback); - return localVarCall; + return readCustomResourceDefinitionStatusCall(name, pretty, _callback); } @@ -1488,14 +1640,31 @@ public okhttp3.Call readCustomResourceDefinitionStatusAsync(String name, String */ public okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1512,11 +1681,10 @@ public okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomRes localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1527,15 +1695,16 @@ public okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomRes "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCustomResourceDefinition(Async)"); @@ -1546,9 +1715,7 @@ private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling replaceCustomResourceDefinition(Async)"); } - - okhttp3.Call localVarCall = replaceCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -1648,14 +1815,31 @@ public okhttp3.Call replaceCustomResourceDefinitionAsync(String name, V1CustomRe */ public okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1672,11 +1856,10 @@ public okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1Cus localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1687,15 +1870,16 @@ public okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1Cus "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCustomResourceDefinitionStatus(Async)"); @@ -1706,9 +1890,7 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling replaceCustomResourceDefinitionStatus(Async)"); } - - okhttp3.Call localVarCall = replaceCustomResourceDefinitionStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceCustomResourceDefinitionStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java index 9e731307e1..e5b2a0908c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class ApiregistrationApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public ApiregistrationApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java index e98c3cf2e3..dc3868bd78 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class ApiregistrationV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public ApiregistrationV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createAPIService * @param body (required) @@ -78,6 +97,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -85,6 +117,10 @@ public okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, Strin List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -101,11 +137,10 @@ public okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -116,23 +151,22 @@ public okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createAPIServiceValidateBeforeCall(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAPIService(Async)"); } - - okhttp3.Call localVarCall = createAPIServiceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createAPIServiceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -233,14 +267,31 @@ public okhttp3.Call createAPIServiceAsync(V1APIService body, String pretty, Stri */ public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -261,11 +312,10 @@ public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryR localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -276,23 +326,22 @@ public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryR "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAPIService(Async)"); } - - okhttp3.Call localVarCall = deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -402,6 +451,19 @@ public okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dry */ public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -409,6 +471,10 @@ public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _contin List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -461,11 +527,10 @@ public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _contin localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -476,18 +541,17 @@ public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _contin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -601,6 +665,19 @@ public okhttp3.Call deleteCollectionAPIServiceAsync(String pretty, String _conti */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -611,8 +688,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,21 +700,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -717,6 +795,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -724,6 +815,10 @@ public okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmark List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -768,11 +863,12 @@ public okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmark localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -780,21 +876,19 @@ public okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmark } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listAPIServiceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -907,14 +1001,31 @@ public okhttp3.Call listAPIServiceAsync(String pretty, Boolean allowWatchBookmar */ public okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -935,11 +1046,10 @@ public okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -950,15 +1060,16 @@ public okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String pretty "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchAPIService(Async)"); @@ -969,9 +1080,7 @@ private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body throw new ApiException("Missing the required parameter 'body' when calling patchAPIService(Async)"); } - - okhttp3.Call localVarCall = patchAPIServiceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchAPIServiceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1075,14 +1184,31 @@ public okhttp3.Call patchAPIServiceAsync(String name, V1Patch body, String prett */ public okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1103,11 +1229,10 @@ public okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1118,15 +1243,16 @@ public okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchAPIServiceStatus(Async)"); @@ -1137,9 +1263,7 @@ private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patc throw new ApiException("Missing the required parameter 'body' when calling patchAPIServiceStatus(Async)"); } - - okhttp3.Call localVarCall = patchAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1237,23 +1361,39 @@ public okhttp3.Call patchAPIServiceStatusAsync(String name, V1Patch body, String */ public okhttp3.Call readAPIServiceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1261,26 +1401,24 @@ public okhttp3.Call readAPIServiceCall(String name, String pretty, final ApiCall } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readAPIServiceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAPIService(Async)"); } - - okhttp3.Call localVarCall = readAPIServiceCall(name, pretty, _callback); - return localVarCall; + return readAPIServiceCall(name, pretty, _callback); } @@ -1360,23 +1498,39 @@ public okhttp3.Call readAPIServiceAsync(String name, String pretty, final ApiCal */ public okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1384,26 +1538,24 @@ public okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readAPIServiceStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAPIServiceStatus(Async)"); } - - okhttp3.Call localVarCall = readAPIServiceStatusCall(name, pretty, _callback); - return localVarCall; + return readAPIServiceStatusCall(name, pretty, _callback); } @@ -1488,14 +1640,31 @@ public okhttp3.Call readAPIServiceStatusAsync(String name, String pretty, final */ public okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1512,11 +1681,10 @@ public okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1527,15 +1695,16 @@ public okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceAPIService(Async)"); @@ -1546,9 +1715,7 @@ private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1APIServi throw new ApiException("Missing the required parameter 'body' when calling replaceAPIService(Async)"); } - - okhttp3.Call localVarCall = replaceAPIServiceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceAPIServiceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -1648,14 +1815,31 @@ public okhttp3.Call replaceAPIServiceAsync(String name, V1APIService body, Strin */ public okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1672,11 +1856,10 @@ public okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1687,15 +1870,16 @@ public okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceAPIServiceStatus(Async)"); @@ -1706,9 +1890,7 @@ private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1AP throw new ApiException("Missing the required parameter 'body' when calling replaceAPIServiceStatus(Async)"); } - - okhttp3.Call localVarCall = replaceAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java index ed7f76f4f9..20f695c735 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class ApisApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public ApisApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIVersions * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiEx Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIVersionsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIVersionsCall(_callback); - return localVarCall; + return getAPIVersionsCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java index 8ee1dc5607..57b7816cf9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AppsApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AppsApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java index 498ba1d9c5..18acf7d001 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java @@ -47,9 +47,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AppsV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AppsV1Api() { this(Configuration.getDefaultApiClient()); @@ -67,6 +70,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) @@ -88,14 +107,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -112,11 +148,10 @@ public okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1C localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -127,15 +162,16 @@ public okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1C "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedControllerRevision(Async)"); @@ -146,9 +182,7 @@ private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling createNamespacedControllerRevision(Async)"); } - - okhttp3.Call localVarCall = createNamespacedControllerRevisionCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedControllerRevisionCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -252,14 +286,31 @@ public okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V1 */ public okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -276,11 +327,10 @@ public okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -291,15 +341,16 @@ public okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedDaemonSet(Async)"); @@ -310,9 +361,7 @@ private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespac throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDaemonSet(Async)"); } - - okhttp3.Call localVarCall = createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -416,14 +465,31 @@ public okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1DaemonSet */ public okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -440,11 +506,10 @@ public okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deploymen localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -455,15 +520,16 @@ public okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deploymen "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedDeployment(Async)"); @@ -474,9 +540,7 @@ private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDeployment(Async)"); } - - okhttp3.Call localVarCall = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -580,14 +644,31 @@ public okhttp3.Call createNamespacedDeploymentAsync(String namespace, V1Deployme */ public okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -604,11 +685,10 @@ public okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaSe localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -619,15 +699,16 @@ public okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaSe "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedReplicaSet(Async)"); @@ -638,9 +719,7 @@ private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'body' when calling createNamespacedReplicaSet(Async)"); } - - okhttp3.Call localVarCall = createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -744,14 +823,31 @@ public okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1ReplicaS */ public okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -768,11 +864,10 @@ public okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1Stateful localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -783,15 +878,16 @@ public okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1Stateful "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedStatefulSet(Async)"); @@ -802,9 +898,7 @@ private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namesp throw new ApiException("Missing the required parameter 'body' when calling createNamespacedStatefulSet(Async)"); } - - okhttp3.Call localVarCall = createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -915,14 +1009,31 @@ public okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1Statefu */ public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -975,11 +1086,10 @@ public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -990,23 +1100,22 @@ public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedControllerRevision(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1138,14 +1247,31 @@ public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String nam */ public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1198,11 +1324,10 @@ public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1213,23 +1338,22 @@ public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDaemonSet(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1361,14 +1485,31 @@ public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, S */ public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1421,11 +1562,10 @@ public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1436,23 +1576,22 @@ public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1584,14 +1723,31 @@ public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, */ public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1644,11 +1800,10 @@ public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1659,23 +1814,22 @@ public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicaSet(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1807,14 +1961,31 @@ public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, */ public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1867,11 +2038,10 @@ public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1882,23 +2052,22 @@ public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedStatefulSet(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -2024,15 +2193,32 @@ public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, */ public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2053,11 +2239,10 @@ public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2068,15 +2253,16 @@ public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedControllerRevision(Async)"); @@ -2087,9 +2273,7 @@ private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedControllerRevision(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2197,15 +2381,32 @@ public okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String */ public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2226,11 +2427,10 @@ public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2241,15 +2441,16 @@ public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedDaemonSet(Async)"); @@ -2260,9 +2461,7 @@ private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDaemonSet(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2370,15 +2569,32 @@ public okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace */ public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2399,11 +2615,10 @@ public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2414,15 +2629,16 @@ public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedDeployment(Async)"); @@ -2433,9 +2649,7 @@ private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDeployment(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2543,15 +2757,32 @@ public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespac */ public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2572,11 +2803,10 @@ public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2587,15 +2817,16 @@ public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedReplicaSet(Async)"); @@ -2606,9 +2837,7 @@ private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedReplicaSet(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2716,15 +2945,32 @@ public okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespac */ public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2745,11 +2991,10 @@ public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2760,15 +3005,16 @@ public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedStatefulSet(Async)"); @@ -2779,9 +3025,7 @@ private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedStatefulSet(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2880,6 +3124,19 @@ public okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namespa */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2890,8 +3147,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2899,21 +3159,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -2996,6 +3254,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3003,6 +3274,10 @@ public okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatc List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3047,11 +3322,12 @@ public okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatc localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3059,21 +3335,19 @@ public okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatc } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3189,6 +3463,19 @@ public okhttp3.Call listControllerRevisionForAllNamespacesAsync(Boolean allowWat */ public okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3196,6 +3483,10 @@ public okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmark List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3240,11 +3531,12 @@ public okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmark localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3252,23 +3544,21 @@ public okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmark } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + return listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - okhttp3.Call localVarCall = listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } + } /** * @@ -3382,6 +3672,19 @@ public okhttp3.Call listDaemonSetForAllNamespacesAsync(Boolean allowWatchBookmar */ public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3389,6 +3692,10 @@ public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmar List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3433,11 +3740,12 @@ public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmar localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3445,21 +3753,19 @@ public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmar } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3576,14 +3882,31 @@ public okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookma */ public okhttp3.Call listNamespacedControllerRevisionCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3628,11 +3951,12 @@ public okhttp3.Call listNamespacedControllerRevisionCall(String namespace, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3640,26 +3964,24 @@ public okhttp3.Call listNamespacedControllerRevisionCall(String namespace, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedControllerRevision(Async)"); } - - okhttp3.Call localVarCall = listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3779,14 +4101,31 @@ public okhttp3.Call listNamespacedControllerRevisionAsync(String namespace, Stri */ public okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3831,11 +4170,12 @@ public okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3843,26 +4183,24 @@ public okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDaemonSet(Async)"); } - - okhttp3.Call localVarCall = listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3982,14 +4320,31 @@ public okhttp3.Call listNamespacedDaemonSetAsync(String namespace, String pretty */ public okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4034,11 +4389,12 @@ public okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4046,26 +4402,24 @@ public okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDeployment(Async)"); } - - okhttp3.Call localVarCall = listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -4185,14 +4539,31 @@ public okhttp3.Call listNamespacedDeploymentAsync(String namespace, String prett */ public okhttp3.Call listNamespacedReplicaSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4237,11 +4608,12 @@ public okhttp3.Call listNamespacedReplicaSetCall(String namespace, String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4249,26 +4621,24 @@ public okhttp3.Call listNamespacedReplicaSetCall(String namespace, String pretty } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicaSet(Async)"); } - - okhttp3.Call localVarCall = listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -4388,14 +4758,31 @@ public okhttp3.Call listNamespacedReplicaSetAsync(String namespace, String prett */ public okhttp3.Call listNamespacedStatefulSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4440,11 +4827,12 @@ public okhttp3.Call listNamespacedStatefulSetCall(String namespace, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4452,26 +4840,24 @@ public okhttp3.Call listNamespacedStatefulSetCall(String namespace, String prett } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedStatefulSet(Async)"); } - - okhttp3.Call localVarCall = listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -4590,6 +4976,19 @@ public okhttp3.Call listNamespacedStatefulSetAsync(String namespace, String pret */ public okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -4597,6 +4996,10 @@ public okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmar List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -4641,11 +5044,12 @@ public okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmar localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4653,21 +5057,19 @@ public okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmar } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -4783,6 +5185,19 @@ public okhttp3.Call listReplicaSetForAllNamespacesAsync(Boolean allowWatchBookma */ public okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -4790,6 +5205,10 @@ public okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookma List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -4834,11 +5253,12 @@ public okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookma localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4846,21 +5266,19 @@ public okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookma } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -4974,15 +5392,32 @@ public okhttp3.Call listStatefulSetForAllNamespacesAsync(Boolean allowWatchBookm */ public okhttp3.Call patchNamespacedControllerRevisionCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5003,11 +5438,10 @@ public okhttp3.Call patchNamespacedControllerRevisionCall(String name, String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5018,15 +5452,16 @@ public okhttp3.Call patchNamespacedControllerRevisionCall(String name, String na "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedControllerRevision(Async)"); @@ -5042,9 +5477,7 @@ private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedControllerRevision(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -5152,15 +5585,32 @@ public okhttp3.Call patchNamespacedControllerRevisionAsync(String name, String n */ public okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5181,11 +5631,10 @@ public okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5196,15 +5645,16 @@ public okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDaemonSet(Async)"); @@ -5220,9 +5670,7 @@ private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDaemonSet(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -5330,15 +5778,32 @@ public okhttp3.Call patchNamespacedDaemonSetAsync(String name, String namespace, */ public okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5359,11 +5824,10 @@ public okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5374,15 +5838,16 @@ public okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDaemonSetStatus(Async)"); @@ -5398,9 +5863,7 @@ private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDaemonSetStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -5508,15 +5971,32 @@ public okhttp3.Call patchNamespacedDaemonSetStatusAsync(String name, String name */ public okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5537,11 +6017,10 @@ public okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5552,15 +6031,16 @@ public okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDeployment(Async)"); @@ -5576,9 +6056,7 @@ private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeployment(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -5686,15 +6164,32 @@ public okhttp3.Call patchNamespacedDeploymentAsync(String name, String namespace */ public okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5715,11 +6210,10 @@ public okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5730,15 +6224,16 @@ public okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDeploymentScale(Async)"); @@ -5754,9 +6249,7 @@ private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentScale(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -5864,15 +6357,32 @@ public okhttp3.Call patchNamespacedDeploymentScaleAsync(String name, String name */ public okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5893,11 +6403,10 @@ public okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5908,15 +6417,16 @@ public okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedDeploymentStatus(Async)"); @@ -5932,9 +6442,7 @@ private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -6042,15 +6550,32 @@ public okhttp3.Call patchNamespacedDeploymentStatusAsync(String name, String nam */ public okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6071,11 +6596,10 @@ public okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6086,15 +6610,16 @@ public okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicaSet(Async)"); @@ -6110,9 +6635,7 @@ private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSet(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -6220,15 +6743,32 @@ public okhttp3.Call patchNamespacedReplicaSetAsync(String name, String namespace */ public okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6249,11 +6789,10 @@ public okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6264,15 +6803,16 @@ public okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicaSetScale(Async)"); @@ -6288,9 +6828,7 @@ private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSetScale(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -6398,15 +6936,32 @@ public okhttp3.Call patchNamespacedReplicaSetScaleAsync(String name, String name */ public okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6427,11 +6982,10 @@ public okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6442,15 +6996,16 @@ public okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicaSetStatus(Async)"); @@ -6466,9 +7021,7 @@ private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSetStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -6576,15 +7129,32 @@ public okhttp3.Call patchNamespacedReplicaSetStatusAsync(String name, String nam */ public okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6605,11 +7175,10 @@ public okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6620,15 +7189,16 @@ public okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedStatefulSet(Async)"); @@ -6644,9 +7214,7 @@ private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSet(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -6754,15 +7322,32 @@ public okhttp3.Call patchNamespacedStatefulSetAsync(String name, String namespac */ public okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6783,11 +7368,10 @@ public okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6798,15 +7382,16 @@ public okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedStatefulSetScale(Async)"); @@ -6822,9 +7407,7 @@ private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSetScale(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -6932,15 +7515,32 @@ public okhttp3.Call patchNamespacedStatefulSetScaleAsync(String name, String nam */ public okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6961,11 +7561,10 @@ public okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String nam localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6976,15 +7575,16 @@ public okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String nam "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedStatefulSetStatus(Async)"); @@ -7000,9 +7600,7 @@ private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSetStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -7104,24 +7702,40 @@ public okhttp3.Call patchNamespacedStatefulSetStatusAsync(String name, String na */ public okhttp3.Call readNamespacedControllerRevisionCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7129,18 +7743,18 @@ public okhttp3.Call readNamespacedControllerRevisionCall(String name, String nam } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedControllerRevision(Async)"); @@ -7151,9 +7765,7 @@ private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedControllerRevision(Async)"); } - - okhttp3.Call localVarCall = readNamespacedControllerRevisionCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedControllerRevisionCall(name, namespace, pretty, _callback); } @@ -7237,24 +7849,40 @@ public okhttp3.Call readNamespacedControllerRevisionAsync(String name, String na */ public okhttp3.Call readNamespacedDaemonSetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7262,18 +7890,18 @@ public okhttp3.Call readNamespacedDaemonSetCall(String name, String namespace, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDaemonSet(Async)"); @@ -7284,9 +7912,7 @@ private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDaemonSet(Async)"); } - - okhttp3.Call localVarCall = readNamespacedDaemonSetCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedDaemonSetCall(name, namespace, pretty, _callback); } @@ -7370,24 +7996,40 @@ public okhttp3.Call readNamespacedDaemonSetAsync(String name, String namespace, */ public okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7395,18 +8037,18 @@ public okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String namesp } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDaemonSetStatus(Async)"); @@ -7417,9 +8059,7 @@ private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDaemonSetStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedDaemonSetStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedDaemonSetStatusCall(name, namespace, pretty, _callback); } @@ -7503,24 +8143,40 @@ public okhttp3.Call readNamespacedDaemonSetStatusAsync(String name, String names */ public okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7528,18 +8184,18 @@ public okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDeployment(Async)"); @@ -7550,9 +8206,7 @@ private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeployment(Async)"); } - - okhttp3.Call localVarCall = readNamespacedDeploymentCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedDeploymentCall(name, namespace, pretty, _callback); } @@ -7636,24 +8290,40 @@ public okhttp3.Call readNamespacedDeploymentAsync(String name, String namespace, */ public okhttp3.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7661,18 +8331,18 @@ public okhttp3.Call readNamespacedDeploymentScaleCall(String name, String namesp } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDeploymentScale(Async)"); @@ -7683,9 +8353,7 @@ private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentScale(Async)"); } - - okhttp3.Call localVarCall = readNamespacedDeploymentScaleCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedDeploymentScaleCall(name, namespace, pretty, _callback); } @@ -7769,24 +8437,40 @@ public okhttp3.Call readNamespacedDeploymentScaleAsync(String name, String names */ public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7794,18 +8478,18 @@ public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String names } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedDeploymentStatus(Async)"); @@ -7816,9 +8500,7 @@ private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedDeploymentStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedDeploymentStatusCall(name, namespace, pretty, _callback); } @@ -7902,24 +8584,40 @@ public okhttp3.Call readNamespacedDeploymentStatusAsync(String name, String name */ public okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7927,18 +8625,18 @@ public okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicaSet(Async)"); @@ -7949,9 +8647,7 @@ private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSet(Async)"); } - - okhttp3.Call localVarCall = readNamespacedReplicaSetCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedReplicaSetCall(name, namespace, pretty, _callback); } @@ -8035,24 +8731,40 @@ public okhttp3.Call readNamespacedReplicaSetAsync(String name, String namespace, */ public okhttp3.Call readNamespacedReplicaSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8060,18 +8772,18 @@ public okhttp3.Call readNamespacedReplicaSetScaleCall(String name, String namesp } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicaSetScale(Async)"); @@ -8082,9 +8794,7 @@ private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetScale(Async)"); } - - okhttp3.Call localVarCall = readNamespacedReplicaSetScaleCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedReplicaSetScaleCall(name, namespace, pretty, _callback); } @@ -8168,24 +8878,40 @@ public okhttp3.Call readNamespacedReplicaSetScaleAsync(String name, String names */ public okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8193,18 +8919,18 @@ public okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String names } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicaSetStatus(Async)"); @@ -8215,9 +8941,7 @@ private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedReplicaSetStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedReplicaSetStatusCall(name, namespace, pretty, _callback); } @@ -8301,24 +9025,40 @@ public okhttp3.Call readNamespacedReplicaSetStatusAsync(String name, String name */ public okhttp3.Call readNamespacedStatefulSetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8326,18 +9066,18 @@ public okhttp3.Call readNamespacedStatefulSetCall(String name, String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedStatefulSet(Async)"); @@ -8348,9 +9088,7 @@ private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSet(Async)"); } - - okhttp3.Call localVarCall = readNamespacedStatefulSetCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedStatefulSetCall(name, namespace, pretty, _callback); } @@ -8434,24 +9172,40 @@ public okhttp3.Call readNamespacedStatefulSetAsync(String name, String namespace */ public okhttp3.Call readNamespacedStatefulSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8459,18 +9213,18 @@ public okhttp3.Call readNamespacedStatefulSetScaleCall(String name, String names } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedStatefulSetScale(Async)"); @@ -8481,9 +9235,7 @@ private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetScale(Async)"); } - - okhttp3.Call localVarCall = readNamespacedStatefulSetScaleCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedStatefulSetScaleCall(name, namespace, pretty, _callback); } @@ -8567,24 +9319,40 @@ public okhttp3.Call readNamespacedStatefulSetScaleAsync(String name, String name */ public okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8592,18 +9360,18 @@ public okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String name } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedStatefulSetStatus(Async)"); @@ -8614,9 +9382,7 @@ private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedStatefulSetStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedStatefulSetStatusCall(name, namespace, pretty, _callback); } @@ -8705,15 +9471,32 @@ public okhttp3.Call readNamespacedStatefulSetStatusAsync(String name, String nam */ public okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -8730,11 +9513,10 @@ public okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8745,15 +9527,16 @@ public okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedControllerRevision(Async)"); @@ -8769,9 +9552,7 @@ private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedControllerRevision(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -8875,15 +9656,32 @@ public okhttp3.Call replaceNamespacedControllerRevisionAsync(String name, String */ public okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -8900,11 +9698,10 @@ public okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8915,15 +9712,16 @@ public okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDaemonSet(Async)"); @@ -8939,9 +9737,7 @@ private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDaemonSet(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9045,15 +9841,32 @@ public okhttp3.Call replaceNamespacedDaemonSetAsync(String name, String namespac */ public okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9070,11 +9883,10 @@ public okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String nam localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9085,15 +9897,16 @@ public okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String nam "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDaemonSetStatus(Async)"); @@ -9109,9 +9922,7 @@ private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDaemonSetStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9215,15 +10026,32 @@ public okhttp3.Call replaceNamespacedDaemonSetStatusAsync(String name, String na */ public okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9240,11 +10068,10 @@ public okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9255,15 +10082,16 @@ public okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDeployment(Async)"); @@ -9279,9 +10107,7 @@ private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeployment(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9385,15 +10211,32 @@ public okhttp3.Call replaceNamespacedDeploymentAsync(String name, String namespa */ public okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9410,11 +10253,10 @@ public okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String nam localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9425,15 +10267,16 @@ public okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String nam "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDeploymentScale(Async)"); @@ -9449,9 +10292,7 @@ private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentScale(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9555,15 +10396,32 @@ public okhttp3.Call replaceNamespacedDeploymentScaleAsync(String name, String na */ public okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9580,11 +10438,10 @@ public okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9595,15 +10452,16 @@ public okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String na "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedDeploymentStatus(Async)"); @@ -9619,9 +10477,7 @@ private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9725,15 +10581,32 @@ public okhttp3.Call replaceNamespacedDeploymentStatusAsync(String name, String n */ public okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9750,11 +10623,10 @@ public okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9765,15 +10637,16 @@ public okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicaSet(Async)"); @@ -9789,9 +10662,7 @@ private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSet(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9895,15 +10766,32 @@ public okhttp3.Call replaceNamespacedReplicaSetAsync(String name, String namespa */ public okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9920,11 +10808,10 @@ public okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String nam localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9935,15 +10822,16 @@ public okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String nam "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicaSetScale(Async)"); @@ -9959,9 +10847,7 @@ private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetScale(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -10065,15 +10951,32 @@ public okhttp3.Call replaceNamespacedReplicaSetScaleAsync(String name, String na */ public okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -10090,11 +10993,10 @@ public okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10105,15 +11007,16 @@ public okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String na "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicaSetStatus(Async)"); @@ -10129,9 +11032,7 @@ private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -10235,15 +11136,32 @@ public okhttp3.Call replaceNamespacedReplicaSetStatusAsync(String name, String n */ public okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -10260,11 +11178,10 @@ public okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10275,15 +11192,16 @@ public okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedStatefulSet(Async)"); @@ -10299,9 +11217,7 @@ private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSet(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -10405,15 +11321,32 @@ public okhttp3.Call replaceNamespacedStatefulSetAsync(String name, String namesp */ public okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -10430,11 +11363,10 @@ public okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10445,15 +11377,16 @@ public okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String na "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedStatefulSetScale(Async)"); @@ -10469,9 +11402,7 @@ private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetScale(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -10575,15 +11506,32 @@ public okhttp3.Call replaceNamespacedStatefulSetScaleAsync(String name, String n */ public okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -10600,11 +11548,10 @@ public okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10615,15 +11562,16 @@ public okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedStatefulSetStatus(Async)"); @@ -10639,9 +11587,7 @@ private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java index 5cd257b887..b050eb3917 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AuthenticationApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AuthenticationApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java index 7c824818bb..ccda599cb8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java @@ -35,9 +35,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AuthenticationV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AuthenticationV1Api() { this(Configuration.getDefaultApiClient()); @@ -55,6 +58,190 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createSelfSubjectReview + * @param body (required) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param pretty If 'true', then the output is pretty printed. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createSelfSubjectReviewCall(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/authentication.k8s.io/v1/selfsubjectreviews"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectReview(Async)"); + } + + return createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); + + } + + /** + * + * create a SelfSubjectReview + * @param body (required) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param pretty If 'true', then the output is pretty printed. (optional) + * @return V1SelfSubjectReview + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1SelfSubjectReview createSelfSubjectReview(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + ApiResponse localVarResp = createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty); + return localVarResp.getData(); + } + + /** + * + * create a SelfSubjectReview + * @param body (required) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param pretty If 'true', then the output is pretty printed. (optional) + * @return ApiResponse<V1SelfSubjectReview> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createSelfSubjectReviewWithHttpInfo(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { + okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a SelfSubjectReview + * @param body (required) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param pretty If 'true', then the output is pretty printed. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createSelfSubjectReviewAsync(V1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for createSelfSubjectReview * @param body (required) @@ -229,6 +416,19 @@ public okhttp3.Call createSelfSubjectReviewAsync(V1SelfSubjectReview body, Strin */ public okhttp3.Call createTokenReviewCall(V1TokenReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -236,6 +436,10 @@ public okhttp3.Call createTokenReviewCall(V1TokenReview body, String dryRun, Str List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -252,11 +456,10 @@ public okhttp3.Call createTokenReviewCall(V1TokenReview body, String dryRun, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -267,23 +470,22 @@ public okhttp3.Call createTokenReviewCall(V1TokenReview body, String dryRun, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createTokenReviewValidateBeforeCall(V1TokenReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createTokenReview(Async)"); } - - okhttp3.Call localVarCall = createTokenReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createTokenReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -376,6 +578,19 @@ public okhttp3.Call createTokenReviewAsync(V1TokenReview body, String dryRun, St */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -386,8 +601,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -395,21 +613,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java index 865de49245..b62430b7b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java @@ -34,9 +34,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AuthenticationV1alpha1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AuthenticationV1alpha1Api() { this(Configuration.getDefaultApiClient()); @@ -54,6 +57,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createSelfSubjectReview * @param body (required) @@ -74,6 +93,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createSelfSubjectReviewCall(V1alpha1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -81,6 +113,10 @@ public okhttp3.Call createSelfSubjectReviewCall(V1alpha1SelfSubjectReview body, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -97,11 +133,10 @@ public okhttp3.Call createSelfSubjectReviewCall(V1alpha1SelfSubjectReview body, localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -112,23 +147,22 @@ public okhttp3.Call createSelfSubjectReviewCall(V1alpha1SelfSubjectReview body, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1alpha1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectReview(Async)"); } - - okhttp3.Call localVarCall = createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -221,6 +255,19 @@ public okhttp3.Call createSelfSubjectReviewAsync(V1alpha1SelfSubjectReview body, */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -231,8 +278,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -240,21 +290,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java index 3be857a628..c529e9b5dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java @@ -34,9 +34,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AuthenticationV1beta1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AuthenticationV1beta1Api() { this(Configuration.getDefaultApiClient()); @@ -54,6 +57,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createSelfSubjectReview * @param body (required) @@ -74,6 +93,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createSelfSubjectReviewCall(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -81,6 +113,10 @@ public okhttp3.Call createSelfSubjectReviewCall(V1beta1SelfSubjectReview body, S List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -97,11 +133,10 @@ public okhttp3.Call createSelfSubjectReviewCall(V1beta1SelfSubjectReview body, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -112,23 +147,22 @@ public okhttp3.Call createSelfSubjectReviewCall(V1beta1SelfSubjectReview body, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectReview(Async)"); } - - okhttp3.Call localVarCall = createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -221,6 +255,19 @@ public okhttp3.Call createSelfSubjectReviewAsync(V1beta1SelfSubjectReview body, */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -231,8 +278,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -240,21 +290,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java index 7d75c15fec..d2c41051f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AuthorizationApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AuthorizationApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java index 79d9c74bf2..857f2554a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java @@ -37,9 +37,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AuthorizationV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AuthorizationV1Api() { this(Configuration.getDefaultApiClient()); @@ -57,6 +60,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedLocalSubjectAccessReview * @param namespace object name and auth scope, such as for teams and projects (required) @@ -78,14 +97,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -102,11 +138,10 @@ public okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -117,15 +152,16 @@ public okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLocalSubjectAccessReview(Async)"); @@ -136,9 +172,7 @@ private okhttp3.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLocalSubjectAccessReview(Async)"); } - - okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createNamespacedLocalSubjectAccessReviewCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -241,6 +275,19 @@ public okhttp3.Call createNamespacedLocalSubjectAccessReviewAsync(String namespa */ public okhttp3.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -248,6 +295,10 @@ public okhttp3.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -264,11 +315,10 @@ public okhttp3.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -279,23 +329,22 @@ public okhttp3.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSelfSubjectAccessReviewValidateBeforeCall(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectAccessReview(Async)"); } - - okhttp3.Call localVarCall = createSelfSubjectAccessReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createSelfSubjectAccessReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -395,6 +444,19 @@ public okhttp3.Call createSelfSubjectAccessReviewAsync(V1SelfSubjectAccessReview */ public okhttp3.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -402,6 +464,10 @@ public okhttp3.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview bo List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -418,11 +484,10 @@ public okhttp3.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview bo localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -433,23 +498,22 @@ public okhttp3.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview bo "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSelfSubjectRulesReviewValidateBeforeCall(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectRulesReview(Async)"); } - - okhttp3.Call localVarCall = createSelfSubjectRulesReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createSelfSubjectRulesReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -549,6 +613,19 @@ public okhttp3.Call createSelfSubjectRulesReviewAsync(V1SelfSubjectRulesReview b */ public okhttp3.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -556,6 +633,10 @@ public okhttp3.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, St List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -572,11 +653,10 @@ public okhttp3.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -587,23 +667,22 @@ public okhttp3.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSubjectAccessReviewValidateBeforeCall(V1SubjectAccessReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSubjectAccessReview(Async)"); } - - okhttp3.Call localVarCall = createSubjectAccessReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createSubjectAccessReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -696,6 +775,19 @@ public okhttp3.Call createSubjectAccessReviewAsync(V1SubjectAccessReview body, S */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -706,8 +798,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -715,21 +810,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java index cb55480e9c..671524a016 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AutoscalingApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AutoscalingApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java index 8f2cd84177..44abbb1a7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AutoscalingV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AutoscalingV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) @@ -79,14 +98,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,15 +153,16 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedHorizontalPodAutoscaler(Async)"); @@ -137,9 +173,7 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -250,14 +284,31 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespac */ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -310,11 +361,10 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -325,23 +375,22 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -467,15 +516,32 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(Strin */ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -496,11 +562,10 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -511,15 +576,16 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); @@ -530,9 +596,7 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -631,6 +695,19 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, St */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -641,8 +718,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -650,21 +730,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -747,6 +825,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -754,6 +845,10 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allo List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -798,11 +893,12 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -810,21 +906,19 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -941,14 +1035,31 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean all */ public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -993,11 +1104,12 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1005,26 +1117,24 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1141,15 +1251,32 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, */ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1170,11 +1297,10 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1185,15 +1311,16 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); @@ -1209,9 +1336,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1319,15 +1444,32 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, Str */ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1348,11 +1490,10 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1363,15 +1504,16 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -1387,9 +1529,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1491,24 +1631,40 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String nam */ public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1516,18 +1672,18 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscaler(Async)"); @@ -1538,9 +1694,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, _callback); } @@ -1624,24 +1778,40 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, Stri */ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1649,18 +1819,18 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -1671,9 +1841,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback); } @@ -1762,15 +1930,32 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name */ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1787,11 +1972,10 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1802,15 +1986,16 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); @@ -1826,9 +2011,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -1932,15 +2115,32 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, S */ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1957,11 +2157,10 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1972,15 +2171,16 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String na "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -1996,9 +2196,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBefor throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java index 79aca8448e..43520c210e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class AutoscalingV2Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public AutoscalingV2Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) @@ -79,14 +98,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,15 +153,16 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedHorizontalPodAutoscaler(Async)"); @@ -137,9 +173,7 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -250,14 +284,31 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespac */ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -310,11 +361,10 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -325,23 +375,22 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -467,15 +516,32 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(Strin */ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -496,11 +562,10 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -511,15 +576,16 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); @@ -530,9 +596,7 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -631,6 +695,19 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, St */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -641,8 +718,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -650,21 +730,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -747,6 +825,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -754,6 +845,10 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allo List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -798,11 +893,12 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -810,21 +906,19 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -941,14 +1035,31 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean all */ public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -993,11 +1104,12 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1005,26 +1117,24 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1141,15 +1251,32 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, */ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1170,11 +1297,10 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1185,15 +1311,16 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); @@ -1209,9 +1336,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1319,15 +1444,32 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, Str */ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1348,11 +1490,10 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1363,15 +1504,16 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -1387,9 +1529,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1491,24 +1631,40 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String nam */ public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1516,18 +1672,18 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscaler(Async)"); @@ -1538,9 +1694,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, _callback); } @@ -1624,24 +1778,40 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, Stri */ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1649,18 +1819,18 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -1671,9 +1841,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback); } @@ -1762,15 +1930,32 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name */ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1787,11 +1972,10 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1802,15 +1986,16 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); @@ -1826,9 +2011,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -1932,15 +2115,32 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, S */ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1957,11 +2157,10 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1972,15 +2171,16 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String na "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); @@ -1996,9 +2196,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBefor throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java index ed3407ee10..be8020d6c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class BatchApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public BatchApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java index 37b2753899..9bab91d3d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java @@ -40,9 +40,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class BatchV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public BatchV1Api() { this(Configuration.getDefaultApiClient()); @@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedCronJob * @param namespace object name and auth scope, such as for teams and projects (required) @@ -81,14 +100,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedCronJobCall(String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -105,11 +141,10 @@ public okhttp3.Call createNamespacedCronJobCall(String namespace, V1CronJob body localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -120,15 +155,16 @@ public okhttp3.Call createNamespacedCronJobCall(String namespace, V1CronJob body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedCronJobValidateBeforeCall(String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedCronJob(Async)"); @@ -139,9 +175,7 @@ private okhttp3.Call createNamespacedCronJobValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'body' when calling createNamespacedCronJob(Async)"); } - - okhttp3.Call localVarCall = createNamespacedCronJobCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedCronJobCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -245,14 +279,31 @@ public okhttp3.Call createNamespacedCronJobAsync(String namespace, V1CronJob bod */ public okhttp3.Call createNamespacedJobCall(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -269,11 +320,10 @@ public okhttp3.Call createNamespacedJobCall(String namespace, V1Job body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -284,15 +334,16 @@ public okhttp3.Call createNamespacedJobCall(String namespace, V1Job body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedJobValidateBeforeCall(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedJob(Async)"); @@ -303,9 +354,7 @@ private okhttp3.Call createNamespacedJobValidateBeforeCall(String namespace, V1J throw new ApiException("Missing the required parameter 'body' when calling createNamespacedJob(Async)"); } - - okhttp3.Call localVarCall = createNamespacedJobCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedJobCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -416,14 +465,31 @@ public okhttp3.Call createNamespacedJobAsync(String namespace, V1Job body, Strin */ public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -476,11 +542,10 @@ public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -491,23 +556,22 @@ public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCronJob(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -639,14 +703,31 @@ public okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, Str */ public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -699,11 +780,10 @@ public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -714,23 +794,22 @@ public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedJob(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -856,15 +935,32 @@ public okhttp3.Call deleteCollectionNamespacedJobAsync(String namespace, String */ public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -885,11 +981,10 @@ public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -900,15 +995,16 @@ public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCronJob(Async)"); @@ -919,9 +1015,7 @@ private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCronJob(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedCronJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedCronJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1029,15 +1123,32 @@ public okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, */ public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1058,11 +1169,10 @@ public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1073,15 +1183,16 @@ public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedJob(Async)"); @@ -1092,9 +1203,7 @@ private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String n throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedJob(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1193,6 +1302,19 @@ public okhttp3.Call deleteNamespacedJobAsync(String name, String namespace, Stri */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1203,8 +1325,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1212,21 +1337,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -1309,6 +1432,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1316,6 +1452,10 @@ public okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -1360,11 +1500,12 @@ public okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1372,21 +1513,19 @@ public okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCronJobForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1502,6 +1641,19 @@ public okhttp3.Call listCronJobForAllNamespacesAsync(Boolean allowWatchBookmarks */ public okhttp3.Call listJobForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1509,6 +1661,10 @@ public okhttp3.Call listJobForAllNamespacesCall(Boolean allowWatchBookmarks, Str List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -1553,11 +1709,12 @@ public okhttp3.Call listJobForAllNamespacesCall(Boolean allowWatchBookmarks, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1565,21 +1722,19 @@ public okhttp3.Call listJobForAllNamespacesCall(Boolean allowWatchBookmarks, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listJobForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1696,14 +1851,31 @@ public okhttp3.Call listJobForAllNamespacesAsync(Boolean allowWatchBookmarks, St */ public okhttp3.Call listNamespacedCronJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1748,11 +1920,12 @@ public okhttp3.Call listNamespacedCronJobCall(String namespace, String pretty, B localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1760,26 +1933,24 @@ public okhttp3.Call listNamespacedCronJobCall(String namespace, String pretty, B } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedCronJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCronJob(Async)"); } - - okhttp3.Call localVarCall = listNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1899,14 +2070,31 @@ public okhttp3.Call listNamespacedCronJobAsync(String namespace, String pretty, */ public okhttp3.Call listNamespacedJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1951,11 +2139,12 @@ public okhttp3.Call listNamespacedJobCall(String namespace, String pretty, Boole localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1963,26 +2152,24 @@ public okhttp3.Call listNamespacedJobCall(String namespace, String pretty, Boole } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedJob(Async)"); } - - okhttp3.Call localVarCall = listNamespacedJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2099,15 +2286,32 @@ public okhttp3.Call listNamespacedJobAsync(String namespace, String pretty, Bool */ public okhttp3.Call patchNamespacedCronJobCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2128,11 +2332,10 @@ public okhttp3.Call patchNamespacedCronJobCall(String name, String namespace, V1 localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2143,15 +2346,16 @@ public okhttp3.Call patchNamespacedCronJobCall(String name, String namespace, V1 "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedCronJobValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedCronJob(Async)"); @@ -2167,9 +2371,7 @@ private okhttp3.Call patchNamespacedCronJobValidateBeforeCall(String name, Strin throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCronJob(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2277,15 +2479,32 @@ public okhttp3.Call patchNamespacedCronJobAsync(String name, String namespace, V */ public okhttp3.Call patchNamespacedCronJobStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2306,11 +2525,10 @@ public okhttp3.Call patchNamespacedCronJobStatusCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2321,15 +2539,16 @@ public okhttp3.Call patchNamespacedCronJobStatusCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedCronJobStatus(Async)"); @@ -2345,9 +2564,7 @@ private okhttp3.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCronJobStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2455,15 +2672,32 @@ public okhttp3.Call patchNamespacedCronJobStatusAsync(String name, String namesp */ public okhttp3.Call patchNamespacedJobCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2484,11 +2718,10 @@ public okhttp3.Call patchNamespacedJobCall(String name, String namespace, V1Patc localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2499,15 +2732,16 @@ public okhttp3.Call patchNamespacedJobCall(String name, String namespace, V1Patc "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedJobValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedJob(Async)"); @@ -2523,9 +2757,7 @@ private okhttp3.Call patchNamespacedJobValidateBeforeCall(String name, String na throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedJob(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedJobCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedJobCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2633,15 +2865,32 @@ public okhttp3.Call patchNamespacedJobAsync(String name, String namespace, V1Pat */ public okhttp3.Call patchNamespacedJobStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2662,11 +2911,10 @@ public okhttp3.Call patchNamespacedJobStatusCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2677,15 +2925,16 @@ public okhttp3.Call patchNamespacedJobStatusCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedJobStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedJobStatus(Async)"); @@ -2701,9 +2950,7 @@ private okhttp3.Call patchNamespacedJobStatusValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedJobStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2805,24 +3052,40 @@ public okhttp3.Call patchNamespacedJobStatusAsync(String name, String namespace, */ public okhttp3.Call readNamespacedCronJobCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2830,18 +3093,18 @@ public okhttp3.Call readNamespacedCronJobCall(String name, String namespace, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedCronJob(Async)"); @@ -2852,9 +3115,7 @@ private okhttp3.Call readNamespacedCronJobValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCronJob(Async)"); } - - okhttp3.Call localVarCall = readNamespacedCronJobCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedCronJobCall(name, namespace, pretty, _callback); } @@ -2938,24 +3199,40 @@ public okhttp3.Call readNamespacedCronJobAsync(String name, String namespace, St */ public okhttp3.Call readNamespacedCronJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2963,18 +3240,18 @@ public okhttp3.Call readNamespacedCronJobStatusCall(String name, String namespac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedCronJobStatus(Async)"); @@ -2985,9 +3262,7 @@ private okhttp3.Call readNamespacedCronJobStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCronJobStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedCronJobStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedCronJobStatusCall(name, namespace, pretty, _callback); } @@ -3071,24 +3346,40 @@ public okhttp3.Call readNamespacedCronJobStatusAsync(String name, String namespa */ public okhttp3.Call readNamespacedJobCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3096,18 +3387,18 @@ public okhttp3.Call readNamespacedJobCall(String name, String namespace, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedJob(Async)"); @@ -3118,9 +3409,7 @@ private okhttp3.Call readNamespacedJobValidateBeforeCall(String name, String nam throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedJob(Async)"); } - - okhttp3.Call localVarCall = readNamespacedJobCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedJobCall(name, namespace, pretty, _callback); } @@ -3204,24 +3493,40 @@ public okhttp3.Call readNamespacedJobAsync(String name, String namespace, String */ public okhttp3.Call readNamespacedJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3229,18 +3534,18 @@ public okhttp3.Call readNamespacedJobStatusCall(String name, String namespace, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedJobStatus(Async)"); @@ -3251,9 +3556,7 @@ private okhttp3.Call readNamespacedJobStatusValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedJobStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedJobStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedJobStatusCall(name, namespace, pretty, _callback); } @@ -3342,15 +3645,32 @@ public okhttp3.Call readNamespacedJobStatusAsync(String name, String namespace, */ public okhttp3.Call replaceNamespacedCronJobCall(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3367,11 +3687,10 @@ public okhttp3.Call replaceNamespacedCronJobCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3382,15 +3701,16 @@ public okhttp3.Call replaceNamespacedCronJobCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedCronJob(Async)"); @@ -3406,9 +3726,7 @@ private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCronJob(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -3512,15 +3830,32 @@ public okhttp3.Call replaceNamespacedCronJobAsync(String name, String namespace, */ public okhttp3.Call replaceNamespacedCronJobStatusCall(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3537,11 +3872,10 @@ public okhttp3.Call replaceNamespacedCronJobStatusCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3552,15 +3886,16 @@ public okhttp3.Call replaceNamespacedCronJobStatusCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V1CronJob body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedCronJobStatus(Async)"); @@ -3576,9 +3911,7 @@ private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCronJobStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -3682,15 +4015,32 @@ public okhttp3.Call replaceNamespacedCronJobStatusAsync(String name, String name */ public okhttp3.Call replaceNamespacedJobCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3707,11 +4057,10 @@ public okhttp3.Call replaceNamespacedJobCall(String name, String namespace, V1Jo localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3722,15 +4071,16 @@ public okhttp3.Call replaceNamespacedJobCall(String name, String namespace, V1Jo "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedJobValidateBeforeCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedJob(Async)"); @@ -3746,9 +4096,7 @@ private okhttp3.Call replaceNamespacedJobValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedJob(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedJobCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedJobCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -3852,15 +4200,32 @@ public okhttp3.Call replaceNamespacedJobAsync(String name, String namespace, V1J */ public okhttp3.Call replaceNamespacedJobStatusCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3877,11 +4242,10 @@ public okhttp3.Call replaceNamespacedJobStatusCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3892,15 +4256,16 @@ public okhttp3.Call replaceNamespacedJobStatusCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedJobStatusValidateBeforeCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedJobStatus(Async)"); @@ -3916,9 +4281,7 @@ private okhttp3.Call replaceNamespacedJobStatusValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedJobStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java index b193ab507a..5e23668080 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class CertificatesApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public CertificatesApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java index 6ccbf67a02..80e793968c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class CertificatesV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public CertificatesV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createCertificateSigningRequest * @param body (required) @@ -78,6 +97,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createCertificateSigningRequestCall(V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -85,6 +117,10 @@ public okhttp3.Call createCertificateSigningRequestCall(V1CertificateSigningRequ List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -101,11 +137,10 @@ public okhttp3.Call createCertificateSigningRequestCall(V1CertificateSigningRequ localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -116,23 +151,22 @@ public okhttp3.Call createCertificateSigningRequestCall(V1CertificateSigningRequ "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createCertificateSigningRequestValidateBeforeCall(V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCertificateSigningRequest(Async)"); } - - okhttp3.Call localVarCall = createCertificateSigningRequestCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createCertificateSigningRequestCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -233,14 +267,31 @@ public okhttp3.Call createCertificateSigningRequestAsync(V1CertificateSigningReq */ public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -261,11 +312,10 @@ public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -276,23 +326,22 @@ public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pret "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCertificateSigningRequest(Async)"); } - - okhttp3.Call localVarCall = deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -402,6 +451,19 @@ public okhttp3.Call deleteCertificateSigningRequestAsync(String name, String pre */ public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -409,6 +471,10 @@ public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -461,11 +527,10 @@ public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -476,18 +541,17 @@ public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -601,6 +665,19 @@ public okhttp3.Call deleteCollectionCertificateSigningRequestAsync(String pretty */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -611,8 +688,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,21 +700,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -717,6 +795,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listCertificateSigningRequestCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -724,6 +815,10 @@ public okhttp3.Call listCertificateSigningRequestCall(String pretty, Boolean all List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -768,11 +863,12 @@ public okhttp3.Call listCertificateSigningRequestCall(String pretty, Boolean all localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -780,21 +876,19 @@ public okhttp3.Call listCertificateSigningRequestCall(String pretty, Boolean all } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCertificateSigningRequestValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -907,14 +1001,31 @@ public okhttp3.Call listCertificateSigningRequestAsync(String pretty, Boolean al */ public okhttp3.Call patchCertificateSigningRequestCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -935,11 +1046,10 @@ public okhttp3.Call patchCertificateSigningRequestCall(String name, V1Patch body localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -950,15 +1060,16 @@ public okhttp3.Call patchCertificateSigningRequestCall(String name, V1Patch body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchCertificateSigningRequestValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCertificateSigningRequest(Async)"); @@ -969,9 +1080,7 @@ private okhttp3.Call patchCertificateSigningRequestValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequest(Async)"); } - - okhttp3.Call localVarCall = patchCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1075,14 +1184,31 @@ public okhttp3.Call patchCertificateSigningRequestAsync(String name, V1Patch bod */ public okhttp3.Call patchCertificateSigningRequestApprovalCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1103,11 +1229,10 @@ public okhttp3.Call patchCertificateSigningRequestApprovalCall(String name, V1Pa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1118,15 +1243,16 @@ public okhttp3.Call patchCertificateSigningRequestApprovalCall(String name, V1Pa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchCertificateSigningRequestApprovalValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCertificateSigningRequestApproval(Async)"); @@ -1137,9 +1263,7 @@ private okhttp3.Call patchCertificateSigningRequestApprovalValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequestApproval(Async)"); } - - okhttp3.Call localVarCall = patchCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1243,14 +1367,31 @@ public okhttp3.Call patchCertificateSigningRequestApprovalAsync(String name, V1P */ public okhttp3.Call patchCertificateSigningRequestStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1271,11 +1412,10 @@ public okhttp3.Call patchCertificateSigningRequestStatusCall(String name, V1Patc localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1286,15 +1426,16 @@ public okhttp3.Call patchCertificateSigningRequestStatusCall(String name, V1Patc "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchCertificateSigningRequestStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCertificateSigningRequestStatus(Async)"); @@ -1305,9 +1446,7 @@ private okhttp3.Call patchCertificateSigningRequestStatusValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequestStatus(Async)"); } - - okhttp3.Call localVarCall = patchCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1405,23 +1544,39 @@ public okhttp3.Call patchCertificateSigningRequestStatusAsync(String name, V1Pat */ public okhttp3.Call readCertificateSigningRequestCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1429,26 +1584,24 @@ public okhttp3.Call readCertificateSigningRequestCall(String name, String pretty } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readCertificateSigningRequestValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequest(Async)"); } - - okhttp3.Call localVarCall = readCertificateSigningRequestCall(name, pretty, _callback); - return localVarCall; + return readCertificateSigningRequestCall(name, pretty, _callback); } @@ -1528,23 +1681,39 @@ public okhttp3.Call readCertificateSigningRequestAsync(String name, String prett */ public okhttp3.Call readCertificateSigningRequestApprovalCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1552,26 +1721,24 @@ public okhttp3.Call readCertificateSigningRequestApprovalCall(String name, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readCertificateSigningRequestApprovalValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequestApproval(Async)"); } - - okhttp3.Call localVarCall = readCertificateSigningRequestApprovalCall(name, pretty, _callback); - return localVarCall; + return readCertificateSigningRequestApprovalCall(name, pretty, _callback); } @@ -1651,23 +1818,39 @@ public okhttp3.Call readCertificateSigningRequestApprovalAsync(String name, Stri */ public okhttp3.Call readCertificateSigningRequestStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1675,26 +1858,24 @@ public okhttp3.Call readCertificateSigningRequestStatusCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readCertificateSigningRequestStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequestStatus(Async)"); } - - okhttp3.Call localVarCall = readCertificateSigningRequestStatusCall(name, pretty, _callback); - return localVarCall; + return readCertificateSigningRequestStatusCall(name, pretty, _callback); } @@ -1779,14 +1960,31 @@ public okhttp3.Call readCertificateSigningRequestStatusAsync(String name, String */ public okhttp3.Call replaceCertificateSigningRequestCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1803,11 +2001,10 @@ public okhttp3.Call replaceCertificateSigningRequestCall(String name, V1Certific localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1818,15 +2015,16 @@ public okhttp3.Call replaceCertificateSigningRequestCall(String name, V1Certific "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceCertificateSigningRequestValidateBeforeCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequest(Async)"); @@ -1837,9 +2035,7 @@ private okhttp3.Call replaceCertificateSigningRequestValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequest(Async)"); } - - okhttp3.Call localVarCall = replaceCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -1939,14 +2135,31 @@ public okhttp3.Call replaceCertificateSigningRequestAsync(String name, V1Certifi */ public okhttp3.Call replaceCertificateSigningRequestApprovalCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1963,11 +2176,10 @@ public okhttp3.Call replaceCertificateSigningRequestApprovalCall(String name, V1 localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1978,15 +2190,16 @@ public okhttp3.Call replaceCertificateSigningRequestApprovalCall(String name, V1 "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceCertificateSigningRequestApprovalValidateBeforeCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequestApproval(Async)"); @@ -1997,9 +2210,7 @@ private okhttp3.Call replaceCertificateSigningRequestApprovalValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequestApproval(Async)"); } - - okhttp3.Call localVarCall = replaceCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -2099,14 +2310,31 @@ public okhttp3.Call replaceCertificateSigningRequestApprovalAsync(String name, V */ public okhttp3.Call replaceCertificateSigningRequestStatusCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2123,11 +2351,10 @@ public okhttp3.Call replaceCertificateSigningRequestStatusCall(String name, V1Ce localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2138,15 +2365,16 @@ public okhttp3.Call replaceCertificateSigningRequestStatusCall(String name, V1Ce "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceCertificateSigningRequestStatusValidateBeforeCall(String name, V1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequestStatus(Async)"); @@ -2157,9 +2385,7 @@ private okhttp3.Call replaceCertificateSigningRequestStatusValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequestStatus(Async)"); } - - okhttp3.Call localVarCall = replaceCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java index 8a2b9fe745..98f5b16acb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class CertificatesV1alpha1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public CertificatesV1alpha1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createClusterTrustBundle * @param body (required) @@ -78,6 +97,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createClusterTrustBundleCall(V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -85,6 +117,10 @@ public okhttp3.Call createClusterTrustBundleCall(V1alpha1ClusterTrustBundle body List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -101,11 +137,10 @@ public okhttp3.Call createClusterTrustBundleCall(V1alpha1ClusterTrustBundle body localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -116,23 +151,22 @@ public okhttp3.Call createClusterTrustBundleCall(V1alpha1ClusterTrustBundle body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createClusterTrustBundleValidateBeforeCall(V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterTrustBundle(Async)"); } - - okhttp3.Call localVarCall = createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -233,14 +267,31 @@ public okhttp3.Call createClusterTrustBundleAsync(V1alpha1ClusterTrustBundle bod */ public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -261,11 +312,10 @@ public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -276,23 +326,22 @@ public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterTrustBundle(Async)"); } - - okhttp3.Call localVarCall = deleteClusterTrustBundleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteClusterTrustBundleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -402,6 +451,19 @@ public okhttp3.Call deleteClusterTrustBundleAsync(String name, String pretty, St */ public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -409,6 +471,10 @@ public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -461,11 +527,10 @@ public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -476,18 +541,17 @@ public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -601,6 +665,19 @@ public okhttp3.Call deleteCollectionClusterTrustBundleAsync(String pretty, Strin */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -611,8 +688,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,21 +700,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -717,6 +795,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -724,6 +815,10 @@ public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatch List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -768,11 +863,12 @@ public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatch localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -780,21 +876,19 @@ public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatch } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listClusterTrustBundleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -907,14 +1001,31 @@ public okhttp3.Call listClusterTrustBundleAsync(String pretty, Boolean allowWatc */ public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -935,11 +1046,10 @@ public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -950,15 +1060,16 @@ public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchClusterTrustBundleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchClusterTrustBundle(Async)"); @@ -969,9 +1080,7 @@ private okhttp3.Call patchClusterTrustBundleValidateBeforeCall(String name, V1Pa throw new ApiException("Missing the required parameter 'body' when calling patchClusterTrustBundle(Async)"); } - - okhttp3.Call localVarCall = patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1069,23 +1178,39 @@ public okhttp3.Call patchClusterTrustBundleAsync(String name, V1Patch body, Stri */ public okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1093,26 +1218,24 @@ public okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readClusterTrustBundleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterTrustBundle(Async)"); } - - okhttp3.Call localVarCall = readClusterTrustBundleCall(name, pretty, _callback); - return localVarCall; + return readClusterTrustBundleCall(name, pretty, _callback); } @@ -1197,14 +1320,31 @@ public okhttp3.Call readClusterTrustBundleAsync(String name, String pretty, fina */ public okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1221,11 +1361,10 @@ public okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterTr localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1236,15 +1375,16 @@ public okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterTr "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceClusterTrustBundle(Async)"); @@ -1255,9 +1395,7 @@ private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1 throw new ApiException("Missing the required parameter 'body' when calling replaceClusterTrustBundle(Async)"); } - - okhttp3.Call localVarCall = replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java index ae4e26bf4d..5cf1cf0f66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class CoordinationApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public CoordinationApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java index e25126f786..e266f6710e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class CoordinationV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public CoordinationV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedLease * @param namespace object name and auth scope, such as for teams and projects (required) @@ -79,14 +98,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedLeaseCall(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createNamespacedLeaseCall(String namespace, V1Lease body, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,15 +153,16 @@ public okhttp3.Call createNamespacedLeaseCall(String namespace, V1Lease body, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedLeaseValidateBeforeCall(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLease(Async)"); @@ -137,9 +173,7 @@ private okhttp3.Call createNamespacedLeaseValidateBeforeCall(String namespace, V throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLease(Async)"); } - - okhttp3.Call localVarCall = createNamespacedLeaseCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedLeaseCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -250,14 +284,31 @@ public okhttp3.Call createNamespacedLeaseAsync(String namespace, V1Lease body, S */ public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -310,11 +361,10 @@ public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -325,23 +375,22 @@ public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLease(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -467,15 +516,32 @@ public okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, Strin */ public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -496,11 +562,10 @@ public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -511,15 +576,16 @@ public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedLease(Async)"); @@ -530,9 +596,7 @@ private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLease(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedLeaseCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedLeaseCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -631,6 +695,19 @@ public okhttp3.Call deleteNamespacedLeaseAsync(String name, String namespace, St */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -641,8 +718,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -650,21 +730,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -747,6 +825,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -754,6 +845,10 @@ public okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, S List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -798,11 +893,12 @@ public okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -810,21 +906,19 @@ public okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listLeaseForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -941,14 +1035,31 @@ public okhttp3.Call listLeaseForAllNamespacesAsync(Boolean allowWatchBookmarks, */ public okhttp3.Call listNamespacedLeaseCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -993,11 +1104,12 @@ public okhttp3.Call listNamespacedLeaseCall(String namespace, String pretty, Boo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1005,26 +1117,24 @@ public okhttp3.Call listNamespacedLeaseCall(String namespace, String pretty, Boo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedLeaseValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLease(Async)"); } - - okhttp3.Call localVarCall = listNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1141,15 +1251,32 @@ public okhttp3.Call listNamespacedLeaseAsync(String namespace, String pretty, Bo */ public okhttp3.Call patchNamespacedLeaseCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1170,11 +1297,10 @@ public okhttp3.Call patchNamespacedLeaseCall(String name, String namespace, V1Pa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1185,15 +1311,16 @@ public okhttp3.Call patchNamespacedLeaseCall(String name, String namespace, V1Pa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedLease(Async)"); @@ -1209,9 +1336,7 @@ private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLease(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1313,24 +1438,40 @@ public okhttp3.Call patchNamespacedLeaseAsync(String name, String namespace, V1P */ public okhttp3.Call readNamespacedLeaseCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1338,18 +1479,18 @@ public okhttp3.Call readNamespacedLeaseCall(String name, String namespace, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedLease(Async)"); @@ -1360,9 +1501,7 @@ private okhttp3.Call readNamespacedLeaseValidateBeforeCall(String name, String n throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLease(Async)"); } - - okhttp3.Call localVarCall = readNamespacedLeaseCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedLeaseCall(name, namespace, pretty, _callback); } @@ -1451,15 +1590,32 @@ public okhttp3.Call readNamespacedLeaseAsync(String name, String namespace, Stri */ public okhttp3.Call replaceNamespacedLeaseCall(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1476,11 +1632,10 @@ public okhttp3.Call replaceNamespacedLeaseCall(String name, String namespace, V1 localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1491,15 +1646,16 @@ public okhttp3.Call replaceNamespacedLeaseCall(String name, String namespace, V1 "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedLease(Async)"); @@ -1515,9 +1671,7 @@ private okhttp3.Call replaceNamespacedLeaseValidateBeforeCall(String name, Strin throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLease(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java index 0767f0a8e7..046d026960 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class CoreApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public CoreApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIVersions * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiEx Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIVersionsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIVersionsCall(_callback); - return localVarCall; + return getAPIVersionsCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java index c802918001..ceba5310ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java @@ -72,9 +72,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class CoreV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public CoreV1Api() { this(Configuration.getDefaultApiClient()); @@ -92,6 +95,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for connectDeleteNamespacedPodProxy * @param name name of the PodProxyOptions (required) @@ -108,22 +127,36 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call connectDeleteNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -133,18 +166,18 @@ public okhttp3.Call connectDeleteNamespacedPodProxyCall(String name, String name } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxy(Async)"); @@ -155,9 +188,7 @@ private okhttp3.Call connectDeleteNamespacedPodProxyValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedPodProxy(Async)"); } - - okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectDeleteNamespacedPodProxyCall(name, namespace, path, _callback); } @@ -242,23 +273,37 @@ public okhttp3.Call connectDeleteNamespacedPodProxyAsync(String name, String nam */ public okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -268,18 +313,18 @@ public okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(String name, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxyWithPath(Async)"); @@ -295,9 +340,7 @@ private okhttp3.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(S throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNamespacedPodProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -384,22 +427,36 @@ public okhttp3.Call connectDeleteNamespacedPodProxyWithPathAsync(String name, St */ public okhttp3.Call connectDeleteNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -409,18 +466,18 @@ public okhttp3.Call connectDeleteNamespacedServiceProxyCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxy(Async)"); @@ -431,9 +488,7 @@ private okhttp3.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedServiceProxy(Async)"); } - - okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectDeleteNamespacedServiceProxyCall(name, namespace, path, _callback); } @@ -518,23 +573,37 @@ public okhttp3.Call connectDeleteNamespacedServiceProxyAsync(String name, String */ public okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -544,18 +613,18 @@ public okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(String name, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxyWithPath(Async)"); @@ -571,9 +640,7 @@ private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCa throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNamespacedServiceProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -659,21 +726,35 @@ public okhttp3.Call connectDeleteNamespacedServiceProxyWithPathAsync(String name */ public okhttp3.Call connectDeleteNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -683,26 +764,24 @@ public okhttp3.Call connectDeleteNodeProxyCall(String name, String path, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxy(Async)"); } - - okhttp3.Call localVarCall = connectDeleteNodeProxyCall(name, path, _callback); - return localVarCall; + return connectDeleteNodeProxyCall(name, path, _callback); } @@ -783,22 +862,36 @@ public okhttp3.Call connectDeleteNodeProxyAsync(String name, String path, final */ public okhttp3.Call connectDeleteNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -808,18 +901,18 @@ public okhttp3.Call connectDeleteNodeProxyWithPathCall(String name, String path, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectDeleteNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxyWithPath(Async)"); @@ -830,9 +923,7 @@ private okhttp3.Call connectDeleteNodeProxyWithPathValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNodeProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathCall(name, path, path2, _callback); - return localVarCall; + return connectDeleteNodeProxyWithPathCall(name, path, path2, _callback); } @@ -920,15 +1011,32 @@ public okhttp3.Call connectDeleteNodeProxyWithPathAsync(String name, String path */ public okhttp3.Call connectGetNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/attach" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (container != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); } @@ -949,9 +1057,6 @@ public okhttp3.Call connectGetNamespacedPodAttachCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -961,18 +1066,18 @@ public okhttp3.Call connectGetNamespacedPodAttachCall(String name, String namesp } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodAttach(Async)"); @@ -983,9 +1088,7 @@ private okhttp3.Call connectGetNamespacedPodAttachValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodAttach(Async)"); } - - okhttp3.Call localVarCall = connectGetNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); - return localVarCall; + return connectGetNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); } @@ -1086,15 +1189,32 @@ public okhttp3.Call connectGetNamespacedPodAttachAsync(String name, String names */ public okhttp3.Call connectGetNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/exec" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (command != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("command", command)); } @@ -1119,9 +1239,6 @@ public okhttp3.Call connectGetNamespacedPodExecCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -1131,18 +1248,18 @@ public okhttp3.Call connectGetNamespacedPodExecCall(String name, String namespac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodExec(Async)"); @@ -1153,9 +1270,7 @@ private okhttp3.Call connectGetNamespacedPodExecValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodExec(Async)"); } - - okhttp3.Call localVarCall = connectGetNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); - return localVarCall; + return connectGetNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); } @@ -1254,22 +1369,36 @@ public okhttp3.Call connectGetNamespacedPodExecAsync(String name, String namespa */ public okhttp3.Call connectGetNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/portforward" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (ports != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("ports", ports)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -1279,18 +1408,18 @@ public okhttp3.Call connectGetNamespacedPodPortforwardCall(String name, String n } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodPortforward(Async)"); @@ -1301,9 +1430,7 @@ private okhttp3.Call connectGetNamespacedPodPortforwardValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodPortforward(Async)"); } - - okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardCall(name, namespace, ports, _callback); - return localVarCall; + return connectGetNamespacedPodPortforwardCall(name, namespace, ports, _callback); } @@ -1387,22 +1514,36 @@ public okhttp3.Call connectGetNamespacedPodPortforwardAsync(String name, String */ public okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -1412,18 +1553,18 @@ public okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namespa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodProxy(Async)"); @@ -1434,9 +1575,7 @@ private okhttp3.Call connectGetNamespacedPodProxyValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodProxy(Async)"); } - - okhttp3.Call localVarCall = connectGetNamespacedPodProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectGetNamespacedPodProxyCall(name, namespace, path, _callback); } @@ -1521,23 +1660,37 @@ public okhttp3.Call connectGetNamespacedPodProxyAsync(String name, String namesp */ public okhttp3.Call connectGetNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -1547,18 +1700,18 @@ public okhttp3.Call connectGetNamespacedPodProxyWithPathCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedPodProxyWithPath(Async)"); @@ -1574,9 +1727,7 @@ private okhttp3.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'path' when calling connectGetNamespacedPodProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -1663,22 +1814,36 @@ public okhttp3.Call connectGetNamespacedPodProxyWithPathAsync(String name, Strin */ public okhttp3.Call connectGetNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -1688,18 +1853,18 @@ public okhttp3.Call connectGetNamespacedServiceProxyCall(String name, String nam } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxy(Async)"); @@ -1710,9 +1875,7 @@ private okhttp3.Call connectGetNamespacedServiceProxyValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedServiceProxy(Async)"); } - - okhttp3.Call localVarCall = connectGetNamespacedServiceProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectGetNamespacedServiceProxyCall(name, namespace, path, _callback); } @@ -1797,23 +1960,37 @@ public okhttp3.Call connectGetNamespacedServiceProxyAsync(String name, String na */ public okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -1823,18 +2000,18 @@ public okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxyWithPath(Async)"); @@ -1850,9 +2027,7 @@ private okhttp3.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall( throw new ApiException("Missing the required parameter 'path' when calling connectGetNamespacedServiceProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -1938,21 +2113,35 @@ public okhttp3.Call connectGetNamespacedServiceProxyWithPathAsync(String name, S */ public okhttp3.Call connectGetNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -1962,26 +2151,24 @@ public okhttp3.Call connectGetNodeProxyCall(String name, String path, final ApiC } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxy(Async)"); } - - okhttp3.Call localVarCall = connectGetNodeProxyCall(name, path, _callback); - return localVarCall; + return connectGetNodeProxyCall(name, path, _callback); } @@ -2062,22 +2249,36 @@ public okhttp3.Call connectGetNodeProxyAsync(String name, String path, final Api */ public okhttp3.Call connectGetNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -2087,18 +2288,18 @@ public okhttp3.Call connectGetNodeProxyWithPathCall(String name, String path, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectGetNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxyWithPath(Async)"); @@ -2109,9 +2310,7 @@ private okhttp3.Call connectGetNodeProxyWithPathValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'path' when calling connectGetNodeProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectGetNodeProxyWithPathCall(name, path, path2, _callback); - return localVarCall; + return connectGetNodeProxyWithPathCall(name, path, path2, _callback); } @@ -2195,22 +2394,36 @@ public okhttp3.Call connectGetNodeProxyWithPathAsync(String name, String path, S */ public okhttp3.Call connectHeadNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -2220,18 +2433,18 @@ public okhttp3.Call connectHeadNamespacedPodProxyCall(String name, String namesp } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNamespacedPodProxy(Async)"); @@ -2242,9 +2455,7 @@ private okhttp3.Call connectHeadNamespacedPodProxyValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling connectHeadNamespacedPodProxy(Async)"); } - - okhttp3.Call localVarCall = connectHeadNamespacedPodProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectHeadNamespacedPodProxyCall(name, namespace, path, _callback); } @@ -2329,23 +2540,37 @@ public okhttp3.Call connectHeadNamespacedPodProxyAsync(String name, String names */ public okhttp3.Call connectHeadNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -2355,18 +2580,18 @@ public okhttp3.Call connectHeadNamespacedPodProxyWithPathCall(String name, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNamespacedPodProxyWithPath(Async)"); @@ -2382,9 +2607,7 @@ private okhttp3.Call connectHeadNamespacedPodProxyWithPathValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'path' when calling connectHeadNamespacedPodProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectHeadNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectHeadNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -2471,22 +2694,36 @@ public okhttp3.Call connectHeadNamespacedPodProxyWithPathAsync(String name, Stri */ public okhttp3.Call connectHeadNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -2496,18 +2733,18 @@ public okhttp3.Call connectHeadNamespacedServiceProxyCall(String name, String na } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNamespacedServiceProxy(Async)"); @@ -2518,9 +2755,7 @@ private okhttp3.Call connectHeadNamespacedServiceProxyValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling connectHeadNamespacedServiceProxy(Async)"); } - - okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectHeadNamespacedServiceProxyCall(name, namespace, path, _callback); } @@ -2605,23 +2840,37 @@ public okhttp3.Call connectHeadNamespacedServiceProxyAsync(String name, String n */ public okhttp3.Call connectHeadNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -2631,18 +2880,18 @@ public okhttp3.Call connectHeadNamespacedServiceProxyWithPathCall(String name, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNamespacedServiceProxyWithPath(Async)"); @@ -2658,9 +2907,7 @@ private okhttp3.Call connectHeadNamespacedServiceProxyWithPathValidateBeforeCall throw new ApiException("Missing the required parameter 'path' when calling connectHeadNamespacedServiceProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectHeadNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -2746,21 +2993,35 @@ public okhttp3.Call connectHeadNamespacedServiceProxyWithPathAsync(String name, */ public okhttp3.Call connectHeadNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -2770,26 +3031,24 @@ public okhttp3.Call connectHeadNodeProxyCall(String name, String path, final Api } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNodeProxy(Async)"); } - - okhttp3.Call localVarCall = connectHeadNodeProxyCall(name, path, _callback); - return localVarCall; + return connectHeadNodeProxyCall(name, path, _callback); } @@ -2870,22 +3129,36 @@ public okhttp3.Call connectHeadNodeProxyAsync(String name, String path, final Ap */ public okhttp3.Call connectHeadNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -2895,18 +3168,18 @@ public okhttp3.Call connectHeadNodeProxyWithPathCall(String name, String path, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectHeadNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNodeProxyWithPath(Async)"); @@ -2917,9 +3190,7 @@ private okhttp3.Call connectHeadNodeProxyWithPathValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'path' when calling connectHeadNodeProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectHeadNodeProxyWithPathCall(name, path, path2, _callback); - return localVarCall; + return connectHeadNodeProxyWithPathCall(name, path, path2, _callback); } @@ -3003,22 +3274,36 @@ public okhttp3.Call connectHeadNodeProxyWithPathAsync(String name, String path, */ public okhttp3.Call connectOptionsNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -3028,18 +3313,18 @@ public okhttp3.Call connectOptionsNamespacedPodProxyCall(String name, String nam } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNamespacedPodProxy(Async)"); @@ -3050,9 +3335,7 @@ private okhttp3.Call connectOptionsNamespacedPodProxyValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling connectOptionsNamespacedPodProxy(Async)"); } - - okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectOptionsNamespacedPodProxyCall(name, namespace, path, _callback); } @@ -3137,23 +3420,37 @@ public okhttp3.Call connectOptionsNamespacedPodProxyAsync(String name, String na */ public okhttp3.Call connectOptionsNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -3163,18 +3460,18 @@ public okhttp3.Call connectOptionsNamespacedPodProxyWithPathCall(String name, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNamespacedPodProxyWithPath(Async)"); @@ -3190,9 +3487,7 @@ private okhttp3.Call connectOptionsNamespacedPodProxyWithPathValidateBeforeCall( throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNamespacedPodProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectOptionsNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -3279,22 +3574,36 @@ public okhttp3.Call connectOptionsNamespacedPodProxyWithPathAsync(String name, S */ public okhttp3.Call connectOptionsNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -3304,18 +3613,18 @@ public okhttp3.Call connectOptionsNamespacedServiceProxyCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNamespacedServiceProxy(Async)"); @@ -3326,9 +3635,7 @@ private okhttp3.Call connectOptionsNamespacedServiceProxyValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling connectOptionsNamespacedServiceProxy(Async)"); } - - okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectOptionsNamespacedServiceProxyCall(name, namespace, path, _callback); } @@ -3413,23 +3720,37 @@ public okhttp3.Call connectOptionsNamespacedServiceProxyAsync(String name, Strin */ public okhttp3.Call connectOptionsNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -3439,18 +3760,18 @@ public okhttp3.Call connectOptionsNamespacedServiceProxyWithPathCall(String name } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNamespacedServiceProxyWithPath(Async)"); @@ -3466,9 +3787,7 @@ private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathValidateBeforeC throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNamespacedServiceProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectOptionsNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -3554,21 +3873,35 @@ public okhttp3.Call connectOptionsNamespacedServiceProxyWithPathAsync(String nam */ public okhttp3.Call connectOptionsNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -3578,26 +3911,24 @@ public okhttp3.Call connectOptionsNodeProxyCall(String name, String path, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNodeProxy(Async)"); } - - okhttp3.Call localVarCall = connectOptionsNodeProxyCall(name, path, _callback); - return localVarCall; + return connectOptionsNodeProxyCall(name, path, _callback); } @@ -3678,22 +4009,36 @@ public okhttp3.Call connectOptionsNodeProxyAsync(String name, String path, final */ public okhttp3.Call connectOptionsNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -3703,18 +4048,18 @@ public okhttp3.Call connectOptionsNodeProxyWithPathCall(String name, String path } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectOptionsNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNodeProxyWithPath(Async)"); @@ -3725,9 +4070,7 @@ private okhttp3.Call connectOptionsNodeProxyWithPathValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNodeProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectOptionsNodeProxyWithPathCall(name, path, path2, _callback); - return localVarCall; + return connectOptionsNodeProxyWithPathCall(name, path, path2, _callback); } @@ -3811,22 +4154,36 @@ public okhttp3.Call connectOptionsNodeProxyWithPathAsync(String name, String pat */ public okhttp3.Call connectPatchNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -3836,18 +4193,18 @@ public okhttp3.Call connectPatchNamespacedPodProxyCall(String name, String names } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNamespacedPodProxy(Async)"); @@ -3858,9 +4215,7 @@ private okhttp3.Call connectPatchNamespacedPodProxyValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling connectPatchNamespacedPodProxy(Async)"); } - - okhttp3.Call localVarCall = connectPatchNamespacedPodProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectPatchNamespacedPodProxyCall(name, namespace, path, _callback); } @@ -3945,23 +4300,37 @@ public okhttp3.Call connectPatchNamespacedPodProxyAsync(String name, String name */ public okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -3971,18 +4340,18 @@ public okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(String name, Stri } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNamespacedPodProxyWithPath(Async)"); @@ -3998,9 +4367,7 @@ private okhttp3.Call connectPatchNamespacedPodProxyWithPathValidateBeforeCall(St throw new ApiException("Missing the required parameter 'path' when calling connectPatchNamespacedPodProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPatchNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectPatchNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -4087,22 +4454,36 @@ public okhttp3.Call connectPatchNamespacedPodProxyWithPathAsync(String name, Str */ public okhttp3.Call connectPatchNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -4112,18 +4493,18 @@ public okhttp3.Call connectPatchNamespacedServiceProxyCall(String name, String n } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNamespacedServiceProxy(Async)"); @@ -4134,9 +4515,7 @@ private okhttp3.Call connectPatchNamespacedServiceProxyValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling connectPatchNamespacedServiceProxy(Async)"); } - - okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectPatchNamespacedServiceProxyCall(name, namespace, path, _callback); } @@ -4221,23 +4600,37 @@ public okhttp3.Call connectPatchNamespacedServiceProxyAsync(String name, String */ public okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -4247,18 +4640,18 @@ public okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(String name, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNamespacedServiceProxyWithPath(Async)"); @@ -4274,9 +4667,7 @@ private okhttp3.Call connectPatchNamespacedServiceProxyWithPathValidateBeforeCal throw new ApiException("Missing the required parameter 'path' when calling connectPatchNamespacedServiceProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectPatchNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -4362,21 +4753,35 @@ public okhttp3.Call connectPatchNamespacedServiceProxyWithPathAsync(String name, */ public okhttp3.Call connectPatchNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -4386,26 +4791,24 @@ public okhttp3.Call connectPatchNodeProxyCall(String name, String path, final Ap } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNodeProxy(Async)"); } - - okhttp3.Call localVarCall = connectPatchNodeProxyCall(name, path, _callback); - return localVarCall; + return connectPatchNodeProxyCall(name, path, _callback); } @@ -4486,22 +4889,36 @@ public okhttp3.Call connectPatchNodeProxyAsync(String name, String path, final A */ public okhttp3.Call connectPatchNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -4511,18 +4928,18 @@ public okhttp3.Call connectPatchNodeProxyWithPathCall(String name, String path, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPatchNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNodeProxyWithPath(Async)"); @@ -4533,9 +4950,7 @@ private okhttp3.Call connectPatchNodeProxyWithPathValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'path' when calling connectPatchNodeProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPatchNodeProxyWithPathCall(name, path, path2, _callback); - return localVarCall; + return connectPatchNodeProxyWithPathCall(name, path, path2, _callback); } @@ -4623,15 +5038,32 @@ public okhttp3.Call connectPatchNodeProxyWithPathAsync(String name, String path, */ public okhttp3.Call connectPostNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/attach" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (container != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); } @@ -4652,9 +5084,6 @@ public okhttp3.Call connectPostNamespacedPodAttachCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -4664,18 +5093,18 @@ public okhttp3.Call connectPostNamespacedPodAttachCall(String name, String names } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodAttach(Async)"); @@ -4686,9 +5115,7 @@ private okhttp3.Call connectPostNamespacedPodAttachValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodAttach(Async)"); } - - okhttp3.Call localVarCall = connectPostNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); - return localVarCall; + return connectPostNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); } @@ -4789,15 +5216,32 @@ public okhttp3.Call connectPostNamespacedPodAttachAsync(String name, String name */ public okhttp3.Call connectPostNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/exec" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (command != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("command", command)); } @@ -4822,9 +5266,6 @@ public okhttp3.Call connectPostNamespacedPodExecCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -4834,18 +5275,18 @@ public okhttp3.Call connectPostNamespacedPodExecCall(String name, String namespa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodExec(Async)"); @@ -4856,9 +5297,7 @@ private okhttp3.Call connectPostNamespacedPodExecValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodExec(Async)"); } - - okhttp3.Call localVarCall = connectPostNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); - return localVarCall; + return connectPostNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); } @@ -4957,22 +5396,36 @@ public okhttp3.Call connectPostNamespacedPodExecAsync(String name, String namesp */ public okhttp3.Call connectPostNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/portforward" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (ports != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("ports", ports)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -4982,18 +5435,18 @@ public okhttp3.Call connectPostNamespacedPodPortforwardCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodPortforward(Async)"); @@ -5004,9 +5457,7 @@ private okhttp3.Call connectPostNamespacedPodPortforwardValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodPortforward(Async)"); } - - okhttp3.Call localVarCall = connectPostNamespacedPodPortforwardCall(name, namespace, ports, _callback); - return localVarCall; + return connectPostNamespacedPodPortforwardCall(name, namespace, ports, _callback); } @@ -5090,22 +5541,36 @@ public okhttp3.Call connectPostNamespacedPodPortforwardAsync(String name, String */ public okhttp3.Call connectPostNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -5115,18 +5580,18 @@ public okhttp3.Call connectPostNamespacedPodProxyCall(String name, String namesp } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodProxy(Async)"); @@ -5137,9 +5602,7 @@ private okhttp3.Call connectPostNamespacedPodProxyValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodProxy(Async)"); } - - okhttp3.Call localVarCall = connectPostNamespacedPodProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectPostNamespacedPodProxyCall(name, namespace, path, _callback); } @@ -5224,23 +5687,37 @@ public okhttp3.Call connectPostNamespacedPodProxyAsync(String name, String names */ public okhttp3.Call connectPostNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -5250,18 +5727,18 @@ public okhttp3.Call connectPostNamespacedPodProxyWithPathCall(String name, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedPodProxyWithPath(Async)"); @@ -5277,9 +5754,7 @@ private okhttp3.Call connectPostNamespacedPodProxyWithPathValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'path' when calling connectPostNamespacedPodProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPostNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectPostNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -5366,22 +5841,36 @@ public okhttp3.Call connectPostNamespacedPodProxyWithPathAsync(String name, Stri */ public okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -5391,18 +5880,18 @@ public okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String na } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedServiceProxy(Async)"); @@ -5413,9 +5902,7 @@ private okhttp3.Call connectPostNamespacedServiceProxyValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedServiceProxy(Async)"); } - - okhttp3.Call localVarCall = connectPostNamespacedServiceProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectPostNamespacedServiceProxyCall(name, namespace, path, _callback); } @@ -5500,23 +5987,37 @@ public okhttp3.Call connectPostNamespacedServiceProxyAsync(String name, String n */ public okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -5526,18 +6027,18 @@ public okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNamespacedServiceProxyWithPath(Async)"); @@ -5553,9 +6054,7 @@ private okhttp3.Call connectPostNamespacedServiceProxyWithPathValidateBeforeCall throw new ApiException("Missing the required parameter 'path' when calling connectPostNamespacedServiceProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPostNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectPostNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -5641,21 +6140,35 @@ public okhttp3.Call connectPostNamespacedServiceProxyWithPathAsync(String name, */ public okhttp3.Call connectPostNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -5665,26 +6178,24 @@ public okhttp3.Call connectPostNodeProxyCall(String name, String path, final Api } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNodeProxy(Async)"); } - - okhttp3.Call localVarCall = connectPostNodeProxyCall(name, path, _callback); - return localVarCall; + return connectPostNodeProxyCall(name, path, _callback); } @@ -5765,22 +6276,36 @@ public okhttp3.Call connectPostNodeProxyAsync(String name, String path, final Ap */ public okhttp3.Call connectPostNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -5790,18 +6315,18 @@ public okhttp3.Call connectPostNodeProxyWithPathCall(String name, String path, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPostNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNodeProxyWithPath(Async)"); @@ -5812,9 +6337,7 @@ private okhttp3.Call connectPostNodeProxyWithPathValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'path' when calling connectPostNodeProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPostNodeProxyWithPathCall(name, path, path2, _callback); - return localVarCall; + return connectPostNodeProxyWithPathCall(name, path, path2, _callback); } @@ -5898,22 +6421,36 @@ public okhttp3.Call connectPostNodeProxyWithPathAsync(String name, String path, */ public okhttp3.Call connectPutNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -5923,18 +6460,18 @@ public okhttp3.Call connectPutNamespacedPodProxyCall(String name, String namespa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNamespacedPodProxy(Async)"); @@ -5945,9 +6482,7 @@ private okhttp3.Call connectPutNamespacedPodProxyValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling connectPutNamespacedPodProxy(Async)"); } - - okhttp3.Call localVarCall = connectPutNamespacedPodProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectPutNamespacedPodProxyCall(name, namespace, path, _callback); } @@ -6032,23 +6567,37 @@ public okhttp3.Call connectPutNamespacedPodProxyAsync(String name, String namesp */ public okhttp3.Call connectPutNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -6058,18 +6607,18 @@ public okhttp3.Call connectPutNamespacedPodProxyWithPathCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNamespacedPodProxyWithPath(Async)"); @@ -6085,9 +6634,7 @@ private okhttp3.Call connectPutNamespacedPodProxyWithPathValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'path' when calling connectPutNamespacedPodProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPutNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectPutNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -6174,22 +6721,36 @@ public okhttp3.Call connectPutNamespacedPodProxyWithPathAsync(String name, Strin */ public okhttp3.Call connectPutNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -6199,18 +6760,18 @@ public okhttp3.Call connectPutNamespacedServiceProxyCall(String name, String nam } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNamespacedServiceProxy(Async)"); @@ -6221,9 +6782,7 @@ private okhttp3.Call connectPutNamespacedServiceProxyValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling connectPutNamespacedServiceProxy(Async)"); } - - okhttp3.Call localVarCall = connectPutNamespacedServiceProxyCall(name, namespace, path, _callback); - return localVarCall; + return connectPutNamespacedServiceProxyCall(name, namespace, path, _callback); } @@ -6308,23 +6867,37 @@ public okhttp3.Call connectPutNamespacedServiceProxyAsync(String name, String na */ public okhttp3.Call connectPutNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -6334,18 +6907,18 @@ public okhttp3.Call connectPutNamespacedServiceProxyWithPathCall(String name, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNamespacedServiceProxyWithPath(Async)"); @@ -6361,9 +6934,7 @@ private okhttp3.Call connectPutNamespacedServiceProxyWithPathValidateBeforeCall( throw new ApiException("Missing the required parameter 'path' when calling connectPutNamespacedServiceProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPutNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); - return localVarCall; + return connectPutNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); } @@ -6449,21 +7020,35 @@ public okhttp3.Call connectPutNamespacedServiceProxyWithPathAsync(String name, S */ public okhttp3.Call connectPutNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -6473,26 +7058,24 @@ public okhttp3.Call connectPutNodeProxyCall(String name, String path, final ApiC } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNodeProxy(Async)"); } - - okhttp3.Call localVarCall = connectPutNodeProxyCall(name, path, _callback); - return localVarCall; + return connectPutNodeProxyCall(name, path, _callback); } @@ -6573,22 +7156,36 @@ public okhttp3.Call connectPutNodeProxyAsync(String name, String path, final Api */ public okhttp3.Call connectPutNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "path" + "}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (path2 != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; @@ -6598,18 +7195,18 @@ public okhttp3.Call connectPutNodeProxyWithPathCall(String name, String path, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call connectPutNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNodeProxyWithPath(Async)"); @@ -6620,9 +7217,7 @@ private okhttp3.Call connectPutNodeProxyWithPathValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'path' when calling connectPutNodeProxyWithPath(Async)"); } - - okhttp3.Call localVarCall = connectPutNodeProxyWithPathCall(name, path, path2, _callback); - return localVarCall; + return connectPutNodeProxyWithPathCall(name, path, path2, _callback); } @@ -6710,6 +7305,19 @@ public okhttp3.Call connectPutNodeProxyWithPathAsync(String name, String path, S */ public okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -6717,6 +7325,10 @@ public okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6733,11 +7345,10 @@ public okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6748,23 +7359,22 @@ public okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespaceValidateBeforeCall(V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespace(Async)"); } - - okhttp3.Call localVarCall = createNamespaceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespaceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -6865,14 +7475,31 @@ public okhttp3.Call createNamespaceAsync(V1Namespace body, String pretty, String */ public okhttp3.Call createNamespacedBindingCall(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/bindings" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -6889,11 +7516,10 @@ public okhttp3.Call createNamespacedBindingCall(String namespace, V1Binding body localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6904,15 +7530,16 @@ public okhttp3.Call createNamespacedBindingCall(String namespace, V1Binding body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedBindingValidateBeforeCall(String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedBinding(Async)"); @@ -6923,9 +7550,7 @@ private okhttp3.Call createNamespacedBindingValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'body' when calling createNamespacedBinding(Async)"); } - - okhttp3.Call localVarCall = createNamespacedBindingCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createNamespacedBindingCall(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -7029,14 +7654,31 @@ public okhttp3.Call createNamespacedBindingAsync(String namespace, V1Binding bod */ public okhttp3.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -7053,11 +7695,10 @@ public okhttp3.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7068,15 +7709,16 @@ public okhttp3.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedConfigMapValidateBeforeCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedConfigMap(Async)"); @@ -7087,9 +7729,7 @@ private okhttp3.Call createNamespacedConfigMapValidateBeforeCall(String namespac throw new ApiException("Missing the required parameter 'body' when calling createNamespacedConfigMap(Async)"); } - - okhttp3.Call localVarCall = createNamespacedConfigMapCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedConfigMapCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -7193,14 +7833,31 @@ public okhttp3.Call createNamespacedConfigMapAsync(String namespace, V1ConfigMap */ public okhttp3.Call createNamespacedEndpointsCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -7217,11 +7874,10 @@ public okhttp3.Call createNamespacedEndpointsCall(String namespace, V1Endpoints localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7232,15 +7888,16 @@ public okhttp3.Call createNamespacedEndpointsCall(String namespace, V1Endpoints "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedEndpointsValidateBeforeCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEndpoints(Async)"); @@ -7251,9 +7908,7 @@ private okhttp3.Call createNamespacedEndpointsValidateBeforeCall(String namespac throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEndpoints(Async)"); } - - okhttp3.Call localVarCall = createNamespacedEndpointsCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedEndpointsCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -7357,14 +8012,31 @@ public okhttp3.Call createNamespacedEndpointsAsync(String namespace, V1Endpoints */ public okhttp3.Call createNamespacedEventCall(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -7381,11 +8053,10 @@ public okhttp3.Call createNamespacedEventCall(String namespace, CoreV1Event body localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7396,15 +8067,16 @@ public okhttp3.Call createNamespacedEventCall(String namespace, CoreV1Event body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEvent(Async)"); @@ -7415,9 +8087,7 @@ private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, C throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -7521,14 +8191,31 @@ public okhttp3.Call createNamespacedEventAsync(String namespace, CoreV1Event bod */ public okhttp3.Call createNamespacedLimitRangeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -7545,11 +8232,10 @@ public okhttp3.Call createNamespacedLimitRangeCall(String namespace, V1LimitRang localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7560,15 +8246,16 @@ public okhttp3.Call createNamespacedLimitRangeCall(String namespace, V1LimitRang "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedLimitRangeValidateBeforeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLimitRange(Async)"); @@ -7579,9 +8266,7 @@ private okhttp3.Call createNamespacedLimitRangeValidateBeforeCall(String namespa throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLimitRange(Async)"); } - - okhttp3.Call localVarCall = createNamespacedLimitRangeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedLimitRangeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -7685,14 +8370,31 @@ public okhttp3.Call createNamespacedLimitRangeAsync(String namespace, V1LimitRan */ public okhttp3.Call createNamespacedPersistentVolumeClaimCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -7709,11 +8411,10 @@ public okhttp3.Call createNamespacedPersistentVolumeClaimCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7724,15 +8425,16 @@ public okhttp3.Call createNamespacedPersistentVolumeClaimCall(String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPersistentVolumeClaim(Async)"); @@ -7743,9 +8445,7 @@ private okhttp3.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPersistentVolumeClaim(Async)"); } - - okhttp3.Call localVarCall = createNamespacedPersistentVolumeClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedPersistentVolumeClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -7849,14 +8549,31 @@ public okhttp3.Call createNamespacedPersistentVolumeClaimAsync(String namespace, */ public okhttp3.Call createNamespacedPodCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -7873,11 +8590,10 @@ public okhttp3.Call createNamespacedPodCall(String namespace, V1Pod body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7888,15 +8604,16 @@ public okhttp3.Call createNamespacedPodCall(String namespace, V1Pod body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodValidateBeforeCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPod(Async)"); @@ -7907,9 +8624,7 @@ private okhttp3.Call createNamespacedPodValidateBeforeCall(String namespace, V1P throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPod(Async)"); } - - okhttp3.Call localVarCall = createNamespacedPodCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedPodCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -8014,15 +8729,32 @@ public okhttp3.Call createNamespacedPodAsync(String namespace, V1Pod body, Strin */ public okhttp3.Call createNamespacedPodBindingCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/binding" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -8039,11 +8771,10 @@ public okhttp3.Call createNamespacedPodBindingCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8054,15 +8785,16 @@ public okhttp3.Call createNamespacedPodBindingCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodBindingValidateBeforeCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling createNamespacedPodBinding(Async)"); @@ -8078,9 +8810,7 @@ private okhttp3.Call createNamespacedPodBindingValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodBinding(Async)"); } - - okhttp3.Call localVarCall = createNamespacedPodBindingCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createNamespacedPodBindingCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -8188,15 +8918,32 @@ public okhttp3.Call createNamespacedPodBindingAsync(String name, String namespac */ public okhttp3.Call createNamespacedPodEvictionCall(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/eviction" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -8213,11 +8960,10 @@ public okhttp3.Call createNamespacedPodEvictionCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8228,15 +8974,16 @@ public okhttp3.Call createNamespacedPodEvictionCall(String name, String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodEvictionValidateBeforeCall(String name, String namespace, V1Eviction body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling createNamespacedPodEviction(Async)"); @@ -8252,9 +8999,7 @@ private okhttp3.Call createNamespacedPodEvictionValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodEviction(Async)"); } - - okhttp3.Call localVarCall = createNamespacedPodEvictionCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createNamespacedPodEvictionCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -8361,14 +9106,31 @@ public okhttp3.Call createNamespacedPodEvictionAsync(String name, String namespa */ public okhttp3.Call createNamespacedPodTemplateCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -8385,11 +9147,10 @@ public okhttp3.Call createNamespacedPodTemplateCall(String namespace, V1PodTempl localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8400,15 +9161,16 @@ public okhttp3.Call createNamespacedPodTemplateCall(String namespace, V1PodTempl "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodTemplateValidateBeforeCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodTemplate(Async)"); @@ -8419,9 +9181,7 @@ private okhttp3.Call createNamespacedPodTemplateValidateBeforeCall(String namesp throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodTemplate(Async)"); } - - okhttp3.Call localVarCall = createNamespacedPodTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedPodTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -8525,14 +9285,31 @@ public okhttp3.Call createNamespacedPodTemplateAsync(String namespace, V1PodTemp */ public okhttp3.Call createNamespacedReplicationControllerCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -8549,11 +9326,10 @@ public okhttp3.Call createNamespacedReplicationControllerCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8564,15 +9340,16 @@ public okhttp3.Call createNamespacedReplicationControllerCall(String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedReplicationControllerValidateBeforeCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedReplicationController(Async)"); @@ -8583,9 +9360,7 @@ private okhttp3.Call createNamespacedReplicationControllerValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedReplicationController(Async)"); } - - okhttp3.Call localVarCall = createNamespacedReplicationControllerCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedReplicationControllerCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -8689,14 +9464,31 @@ public okhttp3.Call createNamespacedReplicationControllerAsync(String namespace, */ public okhttp3.Call createNamespacedResourceQuotaCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -8711,13 +9503,12 @@ public okhttp3.Call createNamespacedResourceQuotaCall(String namespace, V1Resour if (fieldValidation != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8728,15 +9519,16 @@ public okhttp3.Call createNamespacedResourceQuotaCall(String namespace, V1Resour "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedResourceQuotaValidateBeforeCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceQuota(Async)"); @@ -8747,9 +9539,7 @@ private okhttp3.Call createNamespacedResourceQuotaValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceQuota(Async)"); } - - okhttp3.Call localVarCall = createNamespacedResourceQuotaCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedResourceQuotaCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -8853,14 +9643,31 @@ public okhttp3.Call createNamespacedResourceQuotaAsync(String namespace, V1Resou */ public okhttp3.Call createNamespacedSecretCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -8877,11 +9684,10 @@ public okhttp3.Call createNamespacedSecretCall(String namespace, V1Secret body, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8892,15 +9698,16 @@ public okhttp3.Call createNamespacedSecretCall(String namespace, V1Secret body, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedSecretValidateBeforeCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedSecret(Async)"); @@ -8911,9 +9718,7 @@ private okhttp3.Call createNamespacedSecretValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'body' when calling createNamespacedSecret(Async)"); } - - okhttp3.Call localVarCall = createNamespacedSecretCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedSecretCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9017,14 +9822,31 @@ public okhttp3.Call createNamespacedSecretAsync(String namespace, V1Secret body, */ public okhttp3.Call createNamespacedServiceCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9041,11 +9863,10 @@ public okhttp3.Call createNamespacedServiceCall(String namespace, V1Service body localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9056,15 +9877,16 @@ public okhttp3.Call createNamespacedServiceCall(String namespace, V1Service body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedServiceValidateBeforeCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedService(Async)"); @@ -9075,9 +9897,7 @@ private okhttp3.Call createNamespacedServiceValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'body' when calling createNamespacedService(Async)"); } - - okhttp3.Call localVarCall = createNamespacedServiceCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedServiceCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9181,14 +10001,31 @@ public okhttp3.Call createNamespacedServiceAsync(String namespace, V1Service bod */ public okhttp3.Call createNamespacedServiceAccountCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9205,11 +10042,10 @@ public okhttp3.Call createNamespacedServiceAccountCall(String namespace, V1Servi localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9220,15 +10056,16 @@ public okhttp3.Call createNamespacedServiceAccountCall(String namespace, V1Servi "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedServiceAccountValidateBeforeCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedServiceAccount(Async)"); @@ -9239,9 +10076,7 @@ private okhttp3.Call createNamespacedServiceAccountValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling createNamespacedServiceAccount(Async)"); } - - okhttp3.Call localVarCall = createNamespacedServiceAccountCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedServiceAccountCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9346,15 +10181,32 @@ public okhttp3.Call createNamespacedServiceAccountAsync(String namespace, V1Serv */ public okhttp3.Call createNamespacedServiceAccountTokenCall(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}/token" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -9371,11 +10223,10 @@ public okhttp3.Call createNamespacedServiceAccountTokenCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9386,15 +10237,16 @@ public okhttp3.Call createNamespacedServiceAccountTokenCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedServiceAccountTokenValidateBeforeCall(String name, String namespace, AuthenticationV1TokenRequest body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling createNamespacedServiceAccountToken(Async)"); @@ -9410,9 +10262,7 @@ private okhttp3.Call createNamespacedServiceAccountTokenValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling createNamespacedServiceAccountToken(Async)"); } - - okhttp3.Call localVarCall = createNamespacedServiceAccountTokenCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return createNamespacedServiceAccountTokenCall(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -9518,6 +10368,19 @@ public okhttp3.Call createNamespacedServiceAccountTokenAsync(String name, String */ public okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -9525,6 +10388,10 @@ public okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, St List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9541,11 +10408,10 @@ public okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9556,23 +10422,22 @@ public okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNodeValidateBeforeCall(V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNode(Async)"); } - - okhttp3.Call localVarCall = createNodeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNodeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9672,6 +10537,19 @@ public okhttp3.Call createNodeAsync(V1Node body, String pretty, String dryRun, S */ public okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -9679,6 +10557,10 @@ public okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String p List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9695,11 +10577,10 @@ public okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9710,23 +10591,22 @@ public okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createPersistentVolumeValidateBeforeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPersistentVolume(Async)"); } - - okhttp3.Call localVarCall = createPersistentVolumeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createPersistentVolumeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -9834,14 +10714,31 @@ public okhttp3.Call createPersistentVolumeAsync(V1PersistentVolume body, String */ public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -9894,11 +10791,10 @@ public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9909,23 +10805,22 @@ public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedConfigMap(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -10057,14 +10952,31 @@ public okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, S */ public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -10117,11 +11029,10 @@ public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10132,23 +11043,22 @@ public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpoints(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -10280,14 +11190,31 @@ public okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, S */ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -10340,11 +11267,10 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10355,23 +11281,22 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -10503,14 +11428,31 @@ public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, Strin */ public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -10563,11 +11505,10 @@ public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10578,23 +11519,22 @@ public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLimitRange(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -10726,14 +11666,31 @@ public okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, */ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -10786,11 +11743,10 @@ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10801,23 +11757,22 @@ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPersistentVolumeClaim(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -10949,14 +11904,31 @@ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String */ public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -11009,11 +11981,10 @@ public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11024,23 +11995,22 @@ public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPod(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -11172,14 +12142,31 @@ public okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String */ public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -11232,11 +12219,10 @@ public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11247,23 +12233,22 @@ public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodTemplate(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -11395,14 +12380,31 @@ public okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, */ public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -11455,11 +12457,10 @@ public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11470,23 +12471,22 @@ public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicationController(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -11618,14 +12618,31 @@ public okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String */ public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -11678,11 +12695,10 @@ public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11693,23 +12709,22 @@ public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceQuota(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -11841,14 +12856,31 @@ public okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespac */ public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -11901,11 +12933,10 @@ public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11916,23 +12947,22 @@ public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedSecret(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -12064,14 +13094,31 @@ public okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, Stri */ public okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -12124,11 +13171,10 @@ public okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12139,23 +13185,22 @@ public okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedService(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -12287,14 +13332,31 @@ public okhttp3.Call deleteCollectionNamespacedServiceAsync(String namespace, Str */ public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -12347,11 +13409,10 @@ public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12362,23 +13423,22 @@ public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedServiceAccount(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -12509,6 +13569,19 @@ public okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(String namespa */ public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -12516,6 +13589,10 @@ public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, St List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -12568,11 +13645,10 @@ public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12583,18 +13659,17 @@ public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -12722,6 +13797,19 @@ public okhttp3.Call deleteCollectionNodeAsync(String pretty, String _continue, S */ public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -12729,6 +13817,10 @@ public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _ List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -12781,11 +13873,10 @@ public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _ localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12796,18 +13887,17 @@ public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _ "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -12929,14 +14019,31 @@ public okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, String */ public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -12957,11 +14064,10 @@ public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRu localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12972,23 +14078,22 @@ public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRu "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespace(Async)"); } - - okhttp3.Call localVarCall = deleteNamespaceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespaceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -13093,15 +14198,32 @@ public okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dryR */ public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -13122,11 +14244,10 @@ public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13137,15 +14258,16 @@ public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedConfigMap(Async)"); @@ -13156,9 +14278,7 @@ private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedConfigMap(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedConfigMapCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedConfigMapCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -13266,15 +14386,32 @@ public okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespace */ public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -13295,11 +14432,10 @@ public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13310,15 +14446,16 @@ public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEndpoints(Async)"); @@ -13329,9 +14466,7 @@ private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEndpoints(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedEndpointsCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedEndpointsCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -13439,15 +14574,32 @@ public okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespace */ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -13468,11 +14620,10 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13483,15 +14634,16 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEvent(Async)"); @@ -13502,9 +14654,7 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -13612,15 +14762,32 @@ public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, St */ public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -13641,11 +14808,10 @@ public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13656,15 +14822,16 @@ public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedLimitRange(Async)"); @@ -13675,9 +14842,7 @@ private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLimitRange(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedLimitRangeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedLimitRangeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -13785,15 +14950,32 @@ public okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespac */ public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -13814,11 +14996,10 @@ public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13829,15 +15010,16 @@ public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPersistentVolumeClaim(Async)"); @@ -13848,9 +15030,7 @@ private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPersistentVolumeClaim(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedPersistentVolumeClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -13958,15 +15138,32 @@ public okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, Stri */ public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -13987,11 +15184,10 @@ public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14002,15 +15198,16 @@ public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPod(Async)"); @@ -14021,9 +15218,7 @@ private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String n throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPod(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedPodCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedPodCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -14131,15 +15326,32 @@ public okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, Stri */ public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -14160,11 +15372,10 @@ public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14175,15 +15386,16 @@ public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPodTemplate(Async)"); @@ -14194,9 +15406,7 @@ private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodTemplate(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedPodTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedPodTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -14304,15 +15514,32 @@ public okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namespa */ public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -14333,11 +15560,10 @@ public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14348,15 +15574,16 @@ public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedReplicationController(Async)"); @@ -14367,9 +15594,7 @@ private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedReplicationController(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedReplicationControllerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedReplicationControllerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -14477,15 +15702,32 @@ public okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, Stri */ public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -14506,11 +15748,10 @@ public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14521,15 +15762,16 @@ public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namesp "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceQuota(Async)"); @@ -14540,9 +15782,7 @@ private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceQuota(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedResourceQuotaCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedResourceQuotaCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -14650,15 +15890,32 @@ public okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String names */ public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -14679,11 +15936,10 @@ public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14694,15 +15950,16 @@ public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedSecret(Async)"); @@ -14713,9 +15970,7 @@ private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, Strin throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedSecret(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedSecretCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedSecretCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -14823,15 +16078,32 @@ public okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, S */ public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -14852,11 +16124,10 @@ public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14867,15 +16138,16 @@ public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedService(Async)"); @@ -14886,9 +16158,7 @@ private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedService(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedServiceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedServiceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -14996,15 +16266,32 @@ public okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, */ public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -15025,11 +16312,10 @@ public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15040,15 +16326,16 @@ public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedServiceAccount(Async)"); @@ -15059,9 +16346,7 @@ private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedServiceAccount(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedServiceAccountCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedServiceAccountCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -15168,14 +16453,31 @@ public okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String name */ public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -15196,11 +16498,10 @@ public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, In localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15211,23 +16512,22 @@ public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, In "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNode(Async)"); } - - okhttp3.Call localVarCall = deleteNodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -15331,14 +16631,31 @@ public okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, I */ public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -15359,11 +16676,10 @@ public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15374,23 +16690,22 @@ public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePersistentVolume(Async)"); } - - okhttp3.Call localVarCall = deletePersistentVolumeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deletePersistentVolumeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -15486,6 +16801,19 @@ public okhttp3.Call deletePersistentVolumeAsync(String name, String pretty, Stri */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -15496,8 +16824,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15505,21 +16836,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -15602,6 +16931,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -15609,6 +16951,10 @@ public okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -15653,11 +16999,12 @@ public okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15665,21 +17012,19 @@ public okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listComponentStatusValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -15795,6 +17140,19 @@ public okhttp3.Call listComponentStatusAsync(Boolean allowWatchBookmarks, String */ public okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -15802,6 +17160,10 @@ public okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmark List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -15846,11 +17208,12 @@ public okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmark localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15858,21 +17221,19 @@ public okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmark } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listConfigMapForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -15988,6 +17349,19 @@ public okhttp3.Call listConfigMapForAllNamespacesAsync(Boolean allowWatchBookmar */ public okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -15995,6 +17369,10 @@ public okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmark List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -16039,11 +17417,12 @@ public okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmark localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16051,21 +17430,19 @@ public okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmark } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listEndpointsForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -16181,6 +17558,19 @@ public okhttp3.Call listEndpointsForAllNamespacesAsync(Boolean allowWatchBookmar */ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -16188,6 +17578,10 @@ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, S List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -16232,11 +17626,12 @@ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16244,21 +17639,19 @@ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -16374,6 +17767,19 @@ public okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, */ public okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -16381,6 +17787,10 @@ public okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookmar List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -16425,11 +17835,12 @@ public okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookmar localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16437,21 +17848,19 @@ public okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookmar } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listLimitRangeForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -16567,6 +17976,19 @@ public okhttp3.Call listLimitRangeForAllNamespacesAsync(Boolean allowWatchBookma */ public okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -16574,6 +17996,10 @@ public okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmarks List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -16618,11 +18044,12 @@ public okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmarks localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16630,21 +18057,19 @@ public okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmarks } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespaceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -16761,14 +18186,31 @@ public okhttp3.Call listNamespaceAsync(String pretty, Boolean allowWatchBookmark */ public okhttp3.Call listNamespacedConfigMapCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -16813,11 +18255,12 @@ public okhttp3.Call listNamespacedConfigMapCall(String namespace, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16825,26 +18268,24 @@ public okhttp3.Call listNamespacedConfigMapCall(String namespace, String pretty, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedConfigMap(Async)"); } - - okhttp3.Call localVarCall = listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -16964,14 +18405,31 @@ public okhttp3.Call listNamespacedConfigMapAsync(String namespace, String pretty */ public okhttp3.Call listNamespacedEndpointsCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -17016,11 +18474,12 @@ public okhttp3.Call listNamespacedEndpointsCall(String namespace, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17028,26 +18487,24 @@ public okhttp3.Call listNamespacedEndpointsCall(String namespace, String pretty, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEndpoints(Async)"); } - - okhttp3.Call localVarCall = listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -17167,14 +18624,31 @@ public okhttp3.Call listNamespacedEndpointsAsync(String namespace, String pretty */ public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -17219,11 +18693,12 @@ public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17231,26 +18706,24 @@ public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -17370,14 +18843,31 @@ public okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Bo */ public okhttp3.Call listNamespacedLimitRangeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -17422,11 +18912,12 @@ public okhttp3.Call listNamespacedLimitRangeCall(String namespace, String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17434,26 +18925,24 @@ public okhttp3.Call listNamespacedLimitRangeCall(String namespace, String pretty } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLimitRange(Async)"); } - - okhttp3.Call localVarCall = listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -17573,14 +19062,31 @@ public okhttp3.Call listNamespacedLimitRangeAsync(String namespace, String prett */ public okhttp3.Call listNamespacedPersistentVolumeClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -17625,11 +19131,12 @@ public okhttp3.Call listNamespacedPersistentVolumeClaimCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17637,26 +19144,24 @@ public okhttp3.Call listNamespacedPersistentVolumeClaimCall(String namespace, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPersistentVolumeClaim(Async)"); } - - okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -17776,14 +19281,31 @@ public okhttp3.Call listNamespacedPersistentVolumeClaimAsync(String namespace, S */ public okhttp3.Call listNamespacedPodCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -17828,11 +19350,12 @@ public okhttp3.Call listNamespacedPodCall(String namespace, String pretty, Boole localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17840,26 +19363,24 @@ public okhttp3.Call listNamespacedPodCall(String namespace, String pretty, Boole } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedPodValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPod(Async)"); } - - okhttp3.Call localVarCall = listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -17979,14 +19500,31 @@ public okhttp3.Call listNamespacedPodAsync(String namespace, String pretty, Bool */ public okhttp3.Call listNamespacedPodTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -18031,11 +19569,12 @@ public okhttp3.Call listNamespacedPodTemplateCall(String namespace, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18043,26 +19582,24 @@ public okhttp3.Call listNamespacedPodTemplateCall(String namespace, String prett } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodTemplate(Async)"); } - - okhttp3.Call localVarCall = listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -18182,14 +19719,31 @@ public okhttp3.Call listNamespacedPodTemplateAsync(String namespace, String pret */ public okhttp3.Call listNamespacedReplicationControllerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -18234,11 +19788,12 @@ public okhttp3.Call listNamespacedReplicationControllerCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18246,26 +19801,24 @@ public okhttp3.Call listNamespacedReplicationControllerCall(String namespace, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicationController(Async)"); } - - okhttp3.Call localVarCall = listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -18385,14 +19938,31 @@ public okhttp3.Call listNamespacedReplicationControllerAsync(String namespace, S */ public okhttp3.Call listNamespacedResourceQuotaCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -18437,11 +20007,12 @@ public okhttp3.Call listNamespacedResourceQuotaCall(String namespace, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18449,26 +20020,24 @@ public okhttp3.Call listNamespacedResourceQuotaCall(String namespace, String pre } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceQuota(Async)"); } - - okhttp3.Call localVarCall = listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -18588,14 +20157,31 @@ public okhttp3.Call listNamespacedResourceQuotaAsync(String namespace, String pr */ public okhttp3.Call listNamespacedSecretCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -18640,11 +20226,12 @@ public okhttp3.Call listNamespacedSecretCall(String namespace, String pretty, Bo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18652,26 +20239,24 @@ public okhttp3.Call listNamespacedSecretCall(String namespace, String pretty, Bo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedSecretValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedSecret(Async)"); } - - okhttp3.Call localVarCall = listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -18791,14 +20376,31 @@ public okhttp3.Call listNamespacedSecretAsync(String namespace, String pretty, B */ public okhttp3.Call listNamespacedServiceCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -18843,11 +20445,12 @@ public okhttp3.Call listNamespacedServiceCall(String namespace, String pretty, B localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18855,26 +20458,24 @@ public okhttp3.Call listNamespacedServiceCall(String namespace, String pretty, B } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedServiceValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedService(Async)"); } - - okhttp3.Call localVarCall = listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -18994,14 +20595,31 @@ public okhttp3.Call listNamespacedServiceAsync(String namespace, String pretty, */ public okhttp3.Call listNamespacedServiceAccountCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -19046,11 +20664,12 @@ public okhttp3.Call listNamespacedServiceAccountCall(String namespace, String pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19058,26 +20677,24 @@ public okhttp3.Call listNamespacedServiceAccountCall(String namespace, String pr } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedServiceAccount(Async)"); } - - okhttp3.Call localVarCall = listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -19196,6 +20813,19 @@ public okhttp3.Call listNamespacedServiceAccountAsync(String namespace, String p */ public okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -19203,6 +20833,10 @@ public okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, Str List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -19247,11 +20881,12 @@ public okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19259,21 +20894,19 @@ public okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -19389,6 +21022,19 @@ public okhttp3.Call listNodeAsync(String pretty, Boolean allowWatchBookmarks, St */ public okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -19396,6 +21042,10 @@ public okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchBo List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -19440,11 +21090,12 @@ public okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchBo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19452,21 +21103,19 @@ public okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchBo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPersistentVolumeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -19582,6 +21231,19 @@ public okhttp3.Call listPersistentVolumeAsync(String pretty, Boolean allowWatchB */ public okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -19589,6 +21251,10 @@ public okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allowW List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -19633,11 +21299,12 @@ public okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allowW localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19645,21 +21312,19 @@ public okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allowW } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -19775,6 +21440,19 @@ public okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(Boolean allow */ public okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -19782,6 +21460,10 @@ public okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, Str List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -19826,11 +21508,12 @@ public okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19838,21 +21521,19 @@ public okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPodForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -19968,6 +21649,19 @@ public okhttp3.Call listPodForAllNamespacesAsync(Boolean allowWatchBookmarks, St */ public okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -19975,6 +21669,10 @@ public okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookma List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -20019,11 +21717,12 @@ public okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookma localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20031,21 +21730,19 @@ public okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookma } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPodTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -20161,6 +21858,19 @@ public okhttp3.Call listPodTemplateForAllNamespacesAsync(Boolean allowWatchBookm */ public okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -20168,6 +21878,10 @@ public okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allowW List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -20212,11 +21926,12 @@ public okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allowW localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20224,21 +21939,19 @@ public okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allowW } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listReplicationControllerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -20354,6 +22067,19 @@ public okhttp3.Call listReplicationControllerForAllNamespacesAsync(Boolean allow */ public okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -20361,6 +22087,10 @@ public okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBook List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -20405,11 +22135,12 @@ public okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBook localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20417,21 +22148,19 @@ public okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBook } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listResourceQuotaForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -20547,6 +22276,19 @@ public okhttp3.Call listResourceQuotaForAllNamespacesAsync(Boolean allowWatchBoo */ public okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -20554,6 +22296,10 @@ public okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -20598,11 +22344,12 @@ public okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20610,21 +22357,19 @@ public okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listSecretForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -20740,6 +22485,19 @@ public okhttp3.Call listSecretForAllNamespacesAsync(Boolean allowWatchBookmarks, */ public okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -20747,6 +22505,10 @@ public okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBoo List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -20791,11 +22553,12 @@ public okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBoo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20803,21 +22566,19 @@ public okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBoo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listServiceAccountForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -20933,6 +22694,19 @@ public okhttp3.Call listServiceAccountForAllNamespacesAsync(Boolean allowWatchBo */ public okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -20940,6 +22714,10 @@ public okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -20984,11 +22762,12 @@ public okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20996,21 +22775,19 @@ public okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listServiceForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -21123,14 +22900,31 @@ public okhttp3.Call listServiceForAllNamespacesAsync(Boolean allowWatchBookmarks */ public okhttp3.Call patchNamespaceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -21151,11 +22945,10 @@ public okhttp3.Call patchNamespaceCall(String name, V1Patch body, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21166,15 +22959,16 @@ public okhttp3.Call patchNamespaceCall(String name, V1Patch body, String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespaceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespace(Async)"); @@ -21185,9 +22979,7 @@ private okhttp3.Call patchNamespaceValidateBeforeCall(String name, V1Patch body, throw new ApiException("Missing the required parameter 'body' when calling patchNamespace(Async)"); } - - okhttp3.Call localVarCall = patchNamespaceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespaceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -21291,14 +23083,31 @@ public okhttp3.Call patchNamespaceAsync(String name, V1Patch body, String pretty */ public okhttp3.Call patchNamespaceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -21319,11 +23128,10 @@ public okhttp3.Call patchNamespaceStatusCall(String name, V1Patch body, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21334,15 +23142,16 @@ public okhttp3.Call patchNamespaceStatusCall(String name, V1Patch body, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespaceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespaceStatus(Async)"); @@ -21353,9 +23162,7 @@ private okhttp3.Call patchNamespaceStatusValidateBeforeCall(String name, V1Patch throw new ApiException("Missing the required parameter 'body' when calling patchNamespaceStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -21460,15 +23267,32 @@ public okhttp3.Call patchNamespaceStatusAsync(String name, V1Patch body, String */ public okhttp3.Call patchNamespacedConfigMapCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -21489,11 +23313,10 @@ public okhttp3.Call patchNamespacedConfigMapCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21504,15 +23327,16 @@ public okhttp3.Call patchNamespacedConfigMapCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedConfigMap(Async)"); @@ -21528,9 +23352,7 @@ private okhttp3.Call patchNamespacedConfigMapValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedConfigMap(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -21638,15 +23460,32 @@ public okhttp3.Call patchNamespacedConfigMapAsync(String name, String namespace, */ public okhttp3.Call patchNamespacedEndpointsCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -21667,11 +23506,10 @@ public okhttp3.Call patchNamespacedEndpointsCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21682,15 +23520,16 @@ public okhttp3.Call patchNamespacedEndpointsCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedEndpoints(Async)"); @@ -21706,9 +23545,7 @@ private okhttp3.Call patchNamespacedEndpointsValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEndpoints(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -21816,15 +23653,32 @@ public okhttp3.Call patchNamespacedEndpointsAsync(String name, String namespace, */ public okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -21845,11 +23699,10 @@ public okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Pa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21860,15 +23713,16 @@ public okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Pa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedEvent(Async)"); @@ -21884,9 +23738,7 @@ private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -21994,15 +23846,32 @@ public okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1P */ public okhttp3.Call patchNamespacedLimitRangeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -22023,11 +23892,10 @@ public okhttp3.Call patchNamespacedLimitRangeCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22038,15 +23906,16 @@ public okhttp3.Call patchNamespacedLimitRangeCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedLimitRange(Async)"); @@ -22062,9 +23931,7 @@ private okhttp3.Call patchNamespacedLimitRangeValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLimitRange(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -22172,15 +24039,32 @@ public okhttp3.Call patchNamespacedLimitRangeAsync(String name, String namespace */ public okhttp3.Call patchNamespacedPersistentVolumeClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -22201,11 +24085,10 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22216,15 +24099,16 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPersistentVolumeClaim(Async)"); @@ -22240,9 +24124,7 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPersistentVolumeClaim(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -22350,15 +24232,32 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimAsync(String name, Strin */ public okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -22379,11 +24278,10 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22394,15 +24292,16 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPersistentVolumeClaimStatus(Async)"); @@ -22418,9 +24317,7 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPersistentVolumeClaimStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -22528,15 +24425,32 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimStatusAsync(String name, */ public okhttp3.Call patchNamespacedPodCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -22557,11 +24471,10 @@ public okhttp3.Call patchNamespacedPodCall(String name, String namespace, V1Patc localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22572,15 +24485,16 @@ public okhttp3.Call patchNamespacedPodCall(String name, String namespace, V1Patc "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPod(Async)"); @@ -22596,9 +24510,7 @@ private okhttp3.Call patchNamespacedPodValidateBeforeCall(String name, String na throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPod(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -22706,15 +24618,32 @@ public okhttp3.Call patchNamespacedPodAsync(String name, String namespace, V1Pat */ public okhttp3.Call patchNamespacedPodEphemeralcontainersCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -22735,11 +24664,10 @@ public okhttp3.Call patchNamespacedPodEphemeralcontainersCall(String name, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22750,15 +24678,16 @@ public okhttp3.Call patchNamespacedPodEphemeralcontainersCall(String name, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodEphemeralcontainers(Async)"); @@ -22774,9 +24703,7 @@ private okhttp3.Call patchNamespacedPodEphemeralcontainersValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodEphemeralcontainers(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPodEphemeralcontainersCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPodEphemeralcontainersCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -22884,15 +24811,32 @@ public okhttp3.Call patchNamespacedPodEphemeralcontainersAsync(String name, Stri */ public okhttp3.Call patchNamespacedPodStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -22913,11 +24857,10 @@ public okhttp3.Call patchNamespacedPodStatusCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22928,15 +24871,16 @@ public okhttp3.Call patchNamespacedPodStatusCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodStatus(Async)"); @@ -22952,9 +24896,7 @@ private okhttp3.Call patchNamespacedPodStatusValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -23062,15 +25004,32 @@ public okhttp3.Call patchNamespacedPodStatusAsync(String name, String namespace, */ public okhttp3.Call patchNamespacedPodTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -23091,11 +25050,10 @@ public okhttp3.Call patchNamespacedPodTemplateCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23106,15 +25064,16 @@ public okhttp3.Call patchNamespacedPodTemplateCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodTemplate(Async)"); @@ -23130,9 +25089,7 @@ private okhttp3.Call patchNamespacedPodTemplateValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodTemplate(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -23240,15 +25197,32 @@ public okhttp3.Call patchNamespacedPodTemplateAsync(String name, String namespac */ public okhttp3.Call patchNamespacedReplicationControllerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -23269,11 +25243,10 @@ public okhttp3.Call patchNamespacedReplicationControllerCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23284,15 +25257,16 @@ public okhttp3.Call patchNamespacedReplicationControllerCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicationController(Async)"); @@ -23308,9 +25282,7 @@ private okhttp3.Call patchNamespacedReplicationControllerValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationController(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -23418,15 +25390,32 @@ public okhttp3.Call patchNamespacedReplicationControllerAsync(String name, Strin */ public okhttp3.Call patchNamespacedReplicationControllerScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -23447,11 +25436,10 @@ public okhttp3.Call patchNamespacedReplicationControllerScaleCall(String name, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23462,15 +25450,16 @@ public okhttp3.Call patchNamespacedReplicationControllerScaleCall(String name, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicationControllerScale(Async)"); @@ -23486,9 +25475,7 @@ private okhttp3.Call patchNamespacedReplicationControllerScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationControllerScale(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -23596,15 +25583,32 @@ public okhttp3.Call patchNamespacedReplicationControllerScaleAsync(String name, */ public okhttp3.Call patchNamespacedReplicationControllerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -23625,11 +25629,10 @@ public okhttp3.Call patchNamespacedReplicationControllerStatusCall(String name, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23640,15 +25643,16 @@ public okhttp3.Call patchNamespacedReplicationControllerStatusCall(String name, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedReplicationControllerStatus(Async)"); @@ -23664,9 +25668,7 @@ private okhttp3.Call patchNamespacedReplicationControllerStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationControllerStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -23774,15 +25776,32 @@ public okhttp3.Call patchNamespacedReplicationControllerStatusAsync(String name, */ public okhttp3.Call patchNamespacedResourceQuotaCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -23803,11 +25822,10 @@ public okhttp3.Call patchNamespacedResourceQuotaCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23818,15 +25836,16 @@ public okhttp3.Call patchNamespacedResourceQuotaCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceQuota(Async)"); @@ -23842,9 +25861,7 @@ private okhttp3.Call patchNamespacedResourceQuotaValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceQuota(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -23952,15 +25969,32 @@ public okhttp3.Call patchNamespacedResourceQuotaAsync(String name, String namesp */ public okhttp3.Call patchNamespacedResourceQuotaStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -23981,11 +26015,10 @@ public okhttp3.Call patchNamespacedResourceQuotaStatusCall(String name, String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23996,15 +26029,16 @@ public okhttp3.Call patchNamespacedResourceQuotaStatusCall(String name, String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceQuotaStatus(Async)"); @@ -24020,9 +26054,7 @@ private okhttp3.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceQuotaStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -24130,15 +26162,32 @@ public okhttp3.Call patchNamespacedResourceQuotaStatusAsync(String name, String */ public okhttp3.Call patchNamespacedSecretCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -24159,11 +26208,10 @@ public okhttp3.Call patchNamespacedSecretCall(String name, String namespace, V1P localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24174,15 +26222,16 @@ public okhttp3.Call patchNamespacedSecretCall(String name, String namespace, V1P "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedSecretValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedSecret(Async)"); @@ -24198,9 +26247,7 @@ private okhttp3.Call patchNamespacedSecretValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedSecret(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -24308,15 +26355,32 @@ public okhttp3.Call patchNamespacedSecretAsync(String name, String namespace, V1 */ public okhttp3.Call patchNamespacedServiceCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -24337,11 +26401,10 @@ public okhttp3.Call patchNamespacedServiceCall(String name, String namespace, V1 localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24352,15 +26415,16 @@ public okhttp3.Call patchNamespacedServiceCall(String name, String namespace, V1 "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedServiceValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedService(Async)"); @@ -24376,9 +26440,7 @@ private okhttp3.Call patchNamespacedServiceValidateBeforeCall(String name, Strin throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedService(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -24486,15 +26548,32 @@ public okhttp3.Call patchNamespacedServiceAsync(String name, String namespace, V */ public okhttp3.Call patchNamespacedServiceAccountCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -24515,11 +26594,10 @@ public okhttp3.Call patchNamespacedServiceAccountCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24530,15 +26608,16 @@ public okhttp3.Call patchNamespacedServiceAccountCall(String name, String namesp "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedServiceAccount(Async)"); @@ -24554,9 +26633,7 @@ private okhttp3.Call patchNamespacedServiceAccountValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedServiceAccount(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -24664,15 +26741,32 @@ public okhttp3.Call patchNamespacedServiceAccountAsync(String name, String names */ public okhttp3.Call patchNamespacedServiceStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -24693,11 +26787,10 @@ public okhttp3.Call patchNamespacedServiceStatusCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24708,15 +26801,16 @@ public okhttp3.Call patchNamespacedServiceStatusCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedServiceStatus(Async)"); @@ -24732,9 +26826,7 @@ private okhttp3.Call patchNamespacedServiceStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedServiceStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -24841,14 +26933,31 @@ public okhttp3.Call patchNamespacedServiceStatusAsync(String name, String namesp */ public okhttp3.Call patchNodeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -24869,11 +26978,10 @@ public okhttp3.Call patchNodeCall(String name, V1Patch body, String pretty, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24884,15 +26992,16 @@ public okhttp3.Call patchNodeCall(String name, V1Patch body, String pretty, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNodeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNode(Async)"); @@ -24903,9 +27012,7 @@ private okhttp3.Call patchNodeValidateBeforeCall(String name, V1Patch body, Stri throw new ApiException("Missing the required parameter 'body' when calling patchNode(Async)"); } - - okhttp3.Call localVarCall = patchNodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -25009,14 +27116,31 @@ public okhttp3.Call patchNodeAsync(String name, V1Patch body, String pretty, Str */ public okhttp3.Call patchNodeStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -25037,11 +27161,10 @@ public okhttp3.Call patchNodeStatusCall(String name, V1Patch body, String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25052,15 +27175,16 @@ public okhttp3.Call patchNodeStatusCall(String name, V1Patch body, String pretty "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNodeStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNodeStatus(Async)"); @@ -25071,9 +27195,7 @@ private okhttp3.Call patchNodeStatusValidateBeforeCall(String name, V1Patch body throw new ApiException("Missing the required parameter 'body' when calling patchNodeStatus(Async)"); } - - okhttp3.Call localVarCall = patchNodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -25177,14 +27299,31 @@ public okhttp3.Call patchNodeStatusAsync(String name, V1Patch body, String prett */ public okhttp3.Call patchPersistentVolumeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -25205,11 +27344,10 @@ public okhttp3.Call patchPersistentVolumeCall(String name, V1Patch body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25220,15 +27358,16 @@ public okhttp3.Call patchPersistentVolumeCall(String name, V1Patch body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPersistentVolumeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPersistentVolume(Async)"); @@ -25239,9 +27378,7 @@ private okhttp3.Call patchPersistentVolumeValidateBeforeCall(String name, V1Patc throw new ApiException("Missing the required parameter 'body' when calling patchPersistentVolume(Async)"); } - - okhttp3.Call localVarCall = patchPersistentVolumeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchPersistentVolumeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -25345,14 +27482,31 @@ public okhttp3.Call patchPersistentVolumeAsync(String name, V1Patch body, String */ public okhttp3.Call patchPersistentVolumeStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -25373,11 +27527,10 @@ public okhttp3.Call patchPersistentVolumeStatusCall(String name, V1Patch body, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25388,15 +27541,16 @@ public okhttp3.Call patchPersistentVolumeStatusCall(String name, V1Patch body, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPersistentVolumeStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPersistentVolumeStatus(Async)"); @@ -25407,9 +27561,7 @@ private okhttp3.Call patchPersistentVolumeStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchPersistentVolumeStatus(Async)"); } - - okhttp3.Call localVarCall = patchPersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchPersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -25507,23 +27659,39 @@ public okhttp3.Call patchPersistentVolumeStatusAsync(String name, V1Patch body, */ public okhttp3.Call readComponentStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/componentstatuses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25531,26 +27699,24 @@ public okhttp3.Call readComponentStatusCall(String name, String pretty, final Ap } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readComponentStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readComponentStatus(Async)"); } - - okhttp3.Call localVarCall = readComponentStatusCall(name, pretty, _callback); - return localVarCall; + return readComponentStatusCall(name, pretty, _callback); } @@ -25630,23 +27796,39 @@ public okhttp3.Call readComponentStatusAsync(String name, String pretty, final A */ public okhttp3.Call readNamespaceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25654,26 +27836,24 @@ public okhttp3.Call readNamespaceCall(String name, String pretty, final ApiCallb } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespaceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespace(Async)"); } - - okhttp3.Call localVarCall = readNamespaceCall(name, pretty, _callback); - return localVarCall; + return readNamespaceCall(name, pretty, _callback); } @@ -25753,23 +27933,39 @@ public okhttp3.Call readNamespaceAsync(String name, String pretty, final ApiCall */ public okhttp3.Call readNamespaceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25777,26 +27973,24 @@ public okhttp3.Call readNamespaceStatusCall(String name, String pretty, final Ap } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespaceStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespaceStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespaceStatusCall(name, pretty, _callback); - return localVarCall; + return readNamespaceStatusCall(name, pretty, _callback); } @@ -25877,24 +28071,40 @@ public okhttp3.Call readNamespaceStatusAsync(String name, String pretty, final A */ public okhttp3.Call readNamespacedConfigMapCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25902,18 +28112,18 @@ public okhttp3.Call readNamespacedConfigMapCall(String name, String namespace, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedConfigMap(Async)"); @@ -25924,9 +28134,7 @@ private okhttp3.Call readNamespacedConfigMapValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedConfigMap(Async)"); } - - okhttp3.Call localVarCall = readNamespacedConfigMapCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedConfigMapCall(name, namespace, pretty, _callback); } @@ -26010,24 +28218,40 @@ public okhttp3.Call readNamespacedConfigMapAsync(String name, String namespace, */ public okhttp3.Call readNamespacedEndpointsCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26035,18 +28259,18 @@ public okhttp3.Call readNamespacedEndpointsCall(String name, String namespace, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEndpoints(Async)"); @@ -26057,9 +28281,7 @@ private okhttp3.Call readNamespacedEndpointsValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEndpoints(Async)"); } - - okhttp3.Call localVarCall = readNamespacedEndpointsCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedEndpointsCall(name, namespace, pretty, _callback); } @@ -26143,24 +28365,40 @@ public okhttp3.Call readNamespacedEndpointsAsync(String name, String namespace, */ public okhttp3.Call readNamespacedEventCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26168,18 +28406,18 @@ public okhttp3.Call readNamespacedEventCall(String name, String namespace, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEvent(Async)"); @@ -26190,9 +28428,7 @@ private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String n throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = readNamespacedEventCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedEventCall(name, namespace, pretty, _callback); } @@ -26276,24 +28512,40 @@ public okhttp3.Call readNamespacedEventAsync(String name, String namespace, Stri */ public okhttp3.Call readNamespacedLimitRangeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26301,18 +28553,18 @@ public okhttp3.Call readNamespacedLimitRangeCall(String name, String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedLimitRange(Async)"); @@ -26323,9 +28575,7 @@ private okhttp3.Call readNamespacedLimitRangeValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLimitRange(Async)"); } - - okhttp3.Call localVarCall = readNamespacedLimitRangeCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedLimitRangeCall(name, namespace, pretty, _callback); } @@ -26409,24 +28659,40 @@ public okhttp3.Call readNamespacedLimitRangeAsync(String name, String namespace, */ public okhttp3.Call readNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26434,18 +28700,18 @@ public okhttp3.Call readNamespacedPersistentVolumeClaimCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPersistentVolumeClaim(Async)"); @@ -26456,9 +28722,7 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPersistentVolumeClaim(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPersistentVolumeClaimCall(name, namespace, pretty, _callback); } @@ -26542,24 +28806,40 @@ public okhttp3.Call readNamespacedPersistentVolumeClaimAsync(String name, String */ public okhttp3.Call readNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26567,18 +28847,18 @@ public okhttp3.Call readNamespacedPersistentVolumeClaimStatusCall(String name, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPersistentVolumeClaimStatus(Async)"); @@ -26589,9 +28869,7 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPersistentVolumeClaimStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPersistentVolumeClaimStatusCall(name, namespace, pretty, _callback); } @@ -26675,24 +28953,40 @@ public okhttp3.Call readNamespacedPersistentVolumeClaimStatusAsync(String name, */ public okhttp3.Call readNamespacedPodCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26700,18 +28994,18 @@ public okhttp3.Call readNamespacedPodCall(String name, String namespace, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPod(Async)"); @@ -26722,9 +29016,7 @@ private okhttp3.Call readNamespacedPodValidateBeforeCall(String name, String nam throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPod(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPodCall(name, namespace, pretty, _callback); } @@ -26808,24 +29100,40 @@ public okhttp3.Call readNamespacedPodAsync(String name, String namespace, String */ public okhttp3.Call readNamespacedPodEphemeralcontainersCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26833,18 +29141,18 @@ public okhttp3.Call readNamespacedPodEphemeralcontainersCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodEphemeralcontainers(Async)"); @@ -26855,9 +29163,7 @@ private okhttp3.Call readNamespacedPodEphemeralcontainersValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodEphemeralcontainers(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodEphemeralcontainersCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPodEphemeralcontainersCall(name, namespace, pretty, _callback); } @@ -26949,15 +29255,32 @@ public okhttp3.Call readNamespacedPodEphemeralcontainersAsync(String name, Strin */ public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/log" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (container != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); } @@ -26994,11 +29317,11 @@ public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("timestamps", timestamps)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "text/plain", "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "text/plain", + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27006,18 +29329,18 @@ public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, Stri } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodLog(Async)"); @@ -27028,9 +29351,7 @@ private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodLog(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodLogCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); - return localVarCall; + return readNamespacedPodLogCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); } @@ -27138,24 +29459,40 @@ public okhttp3.Call readNamespacedPodLogAsync(String name, String namespace, Str */ public okhttp3.Call readNamespacedPodStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27163,18 +29500,18 @@ public okhttp3.Call readNamespacedPodStatusCall(String name, String namespace, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodStatus(Async)"); @@ -27185,9 +29522,7 @@ private okhttp3.Call readNamespacedPodStatusValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPodStatusCall(name, namespace, pretty, _callback); } @@ -27271,24 +29606,40 @@ public okhttp3.Call readNamespacedPodStatusAsync(String name, String namespace, */ public okhttp3.Call readNamespacedPodTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27296,18 +29647,18 @@ public okhttp3.Call readNamespacedPodTemplateCall(String name, String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodTemplate(Async)"); @@ -27318,9 +29669,7 @@ private okhttp3.Call readNamespacedPodTemplateValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodTemplate(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodTemplateCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPodTemplateCall(name, namespace, pretty, _callback); } @@ -27404,24 +29753,40 @@ public okhttp3.Call readNamespacedPodTemplateAsync(String name, String namespace */ public okhttp3.Call readNamespacedReplicationControllerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27429,18 +29794,18 @@ public okhttp3.Call readNamespacedReplicationControllerCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicationController(Async)"); @@ -27451,9 +29816,7 @@ private okhttp3.Call readNamespacedReplicationControllerValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationController(Async)"); } - - okhttp3.Call localVarCall = readNamespacedReplicationControllerCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedReplicationControllerCall(name, namespace, pretty, _callback); } @@ -27537,24 +29900,40 @@ public okhttp3.Call readNamespacedReplicationControllerAsync(String name, String */ public okhttp3.Call readNamespacedReplicationControllerScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27562,18 +29941,18 @@ public okhttp3.Call readNamespacedReplicationControllerScaleCall(String name, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicationControllerScale(Async)"); @@ -27584,9 +29963,7 @@ private okhttp3.Call readNamespacedReplicationControllerScaleValidateBeforeCall( throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationControllerScale(Async)"); } - - okhttp3.Call localVarCall = readNamespacedReplicationControllerScaleCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedReplicationControllerScaleCall(name, namespace, pretty, _callback); } @@ -27670,24 +30047,40 @@ public okhttp3.Call readNamespacedReplicationControllerScaleAsync(String name, S */ public okhttp3.Call readNamespacedReplicationControllerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27695,18 +30088,18 @@ public okhttp3.Call readNamespacedReplicationControllerStatusCall(String name, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedReplicationControllerStatus(Async)"); @@ -27717,9 +30110,7 @@ private okhttp3.Call readNamespacedReplicationControllerStatusValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationControllerStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedReplicationControllerStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedReplicationControllerStatusCall(name, namespace, pretty, _callback); } @@ -27803,24 +30194,40 @@ public okhttp3.Call readNamespacedReplicationControllerStatusAsync(String name, */ public okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27828,18 +30235,18 @@ public okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceQuota(Async)"); @@ -27850,9 +30257,7 @@ private okhttp3.Call readNamespacedResourceQuotaValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceQuota(Async)"); } - - okhttp3.Call localVarCall = readNamespacedResourceQuotaCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedResourceQuotaCall(name, namespace, pretty, _callback); } @@ -27936,24 +30341,40 @@ public okhttp3.Call readNamespacedResourceQuotaAsync(String name, String namespa */ public okhttp3.Call readNamespacedResourceQuotaStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27961,18 +30382,18 @@ public okhttp3.Call readNamespacedResourceQuotaStatusCall(String name, String na } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceQuotaStatus(Async)"); @@ -27983,9 +30404,7 @@ private okhttp3.Call readNamespacedResourceQuotaStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceQuotaStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedResourceQuotaStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedResourceQuotaStatusCall(name, namespace, pretty, _callback); } @@ -28069,24 +30488,40 @@ public okhttp3.Call readNamespacedResourceQuotaStatusAsync(String name, String n */ public okhttp3.Call readNamespacedSecretCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28094,18 +30529,18 @@ public okhttp3.Call readNamespacedSecretCall(String name, String namespace, Stri } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedSecret(Async)"); @@ -28116,9 +30551,7 @@ private okhttp3.Call readNamespacedSecretValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedSecret(Async)"); } - - okhttp3.Call localVarCall = readNamespacedSecretCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedSecretCall(name, namespace, pretty, _callback); } @@ -28202,24 +30635,40 @@ public okhttp3.Call readNamespacedSecretAsync(String name, String namespace, Str */ public okhttp3.Call readNamespacedServiceCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28227,18 +30676,18 @@ public okhttp3.Call readNamespacedServiceCall(String name, String namespace, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedService(Async)"); @@ -28249,9 +30698,7 @@ private okhttp3.Call readNamespacedServiceValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedService(Async)"); } - - okhttp3.Call localVarCall = readNamespacedServiceCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedServiceCall(name, namespace, pretty, _callback); } @@ -28335,24 +30782,40 @@ public okhttp3.Call readNamespacedServiceAsync(String name, String namespace, St */ public okhttp3.Call readNamespacedServiceAccountCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28360,18 +30823,18 @@ public okhttp3.Call readNamespacedServiceAccountCall(String name, String namespa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedServiceAccount(Async)"); @@ -28382,9 +30845,7 @@ private okhttp3.Call readNamespacedServiceAccountValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedServiceAccount(Async)"); } - - okhttp3.Call localVarCall = readNamespacedServiceAccountCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedServiceAccountCall(name, namespace, pretty, _callback); } @@ -28468,24 +30929,40 @@ public okhttp3.Call readNamespacedServiceAccountAsync(String name, String namesp */ public okhttp3.Call readNamespacedServiceStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28493,18 +30970,18 @@ public okhttp3.Call readNamespacedServiceStatusCall(String name, String namespac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedServiceStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedServiceStatus(Async)"); @@ -28515,9 +30992,7 @@ private okhttp3.Call readNamespacedServiceStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedServiceStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedServiceStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedServiceStatusCall(name, namespace, pretty, _callback); } @@ -28600,23 +31075,39 @@ public okhttp3.Call readNamespacedServiceStatusAsync(String name, String namespa */ public okhttp3.Call readNodeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28624,26 +31115,24 @@ public okhttp3.Call readNodeCall(String name, String pretty, final ApiCallback _ } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNodeValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNode(Async)"); } - - okhttp3.Call localVarCall = readNodeCall(name, pretty, _callback); - return localVarCall; + return readNodeCall(name, pretty, _callback); } @@ -28723,23 +31212,39 @@ public okhttp3.Call readNodeAsync(String name, String pretty, final ApiCallback< */ public okhttp3.Call readNodeStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28747,26 +31252,24 @@ public okhttp3.Call readNodeStatusCall(String name, String pretty, final ApiCall } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNodeStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNodeStatus(Async)"); } - - okhttp3.Call localVarCall = readNodeStatusCall(name, pretty, _callback); - return localVarCall; + return readNodeStatusCall(name, pretty, _callback); } @@ -28846,23 +31349,39 @@ public okhttp3.Call readNodeStatusAsync(String name, String pretty, final ApiCal */ public okhttp3.Call readPersistentVolumeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28870,26 +31389,24 @@ public okhttp3.Call readPersistentVolumeCall(String name, String pretty, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPersistentVolumeValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPersistentVolume(Async)"); } - - okhttp3.Call localVarCall = readPersistentVolumeCall(name, pretty, _callback); - return localVarCall; + return readPersistentVolumeCall(name, pretty, _callback); } @@ -28969,23 +31486,39 @@ public okhttp3.Call readPersistentVolumeAsync(String name, String pretty, final */ public okhttp3.Call readPersistentVolumeStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28993,26 +31526,24 @@ public okhttp3.Call readPersistentVolumeStatusCall(String name, String pretty, f } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPersistentVolumeStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPersistentVolumeStatus(Async)"); } - - okhttp3.Call localVarCall = readPersistentVolumeStatusCall(name, pretty, _callback); - return localVarCall; + return readPersistentVolumeStatusCall(name, pretty, _callback); } @@ -29097,14 +31628,31 @@ public okhttp3.Call readPersistentVolumeStatusAsync(String name, String pretty, */ public okhttp3.Call replaceNamespaceCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -29121,11 +31669,10 @@ public okhttp3.Call replaceNamespaceCall(String name, V1Namespace body, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29136,15 +31683,16 @@ public okhttp3.Call replaceNamespaceCall(String name, V1Namespace body, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespaceValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespace(Async)"); @@ -29155,9 +31703,7 @@ private okhttp3.Call replaceNamespaceValidateBeforeCall(String name, V1Namespace throw new ApiException("Missing the required parameter 'body' when calling replaceNamespace(Async)"); } - - okhttp3.Call localVarCall = replaceNamespaceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespaceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -29257,14 +31803,31 @@ public okhttp3.Call replaceNamespaceAsync(String name, V1Namespace body, String */ public okhttp3.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/finalize" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -29281,11 +31844,10 @@ public okhttp3.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29296,15 +31858,16 @@ public okhttp3.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespaceFinalizeValidateBeforeCall(String name, V1Namespace body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespaceFinalize(Async)"); @@ -29315,9 +31878,7 @@ private okhttp3.Call replaceNamespaceFinalizeValidateBeforeCall(String name, V1N throw new ApiException("Missing the required parameter 'body' when calling replaceNamespaceFinalize(Async)"); } - - okhttp3.Call localVarCall = replaceNamespaceFinalizeCall(name, body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; + return replaceNamespaceFinalizeCall(name, body, dryRun, fieldManager, fieldValidation, pretty, _callback); } @@ -29417,14 +31978,31 @@ public okhttp3.Call replaceNamespaceFinalizeAsync(String name, V1Namespace body, */ public okhttp3.Call replaceNamespaceStatusCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -29441,11 +32019,10 @@ public okhttp3.Call replaceNamespaceStatusCall(String name, V1Namespace body, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29456,15 +32033,16 @@ public okhttp3.Call replaceNamespaceStatusCall(String name, V1Namespace body, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespaceStatusValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespaceStatus(Async)"); @@ -29475,9 +32053,7 @@ private okhttp3.Call replaceNamespaceStatusValidateBeforeCall(String name, V1Nam throw new ApiException("Missing the required parameter 'body' when calling replaceNamespaceStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -29578,15 +32154,32 @@ public okhttp3.Call replaceNamespaceStatusAsync(String name, V1Namespace body, S */ public okhttp3.Call replaceNamespacedConfigMapCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -29603,11 +32196,10 @@ public okhttp3.Call replaceNamespacedConfigMapCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29618,15 +32210,16 @@ public okhttp3.Call replaceNamespacedConfigMapCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedConfigMap(Async)"); @@ -29642,9 +32235,7 @@ private okhttp3.Call replaceNamespacedConfigMapValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedConfigMap(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -29748,15 +32339,32 @@ public okhttp3.Call replaceNamespacedConfigMapAsync(String name, String namespac */ public okhttp3.Call replaceNamespacedEndpointsCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -29773,11 +32381,10 @@ public okhttp3.Call replaceNamespacedEndpointsCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29788,15 +32395,16 @@ public okhttp3.Call replaceNamespacedEndpointsCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEndpoints(Async)"); @@ -29812,9 +32420,7 @@ private okhttp3.Call replaceNamespacedEndpointsValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEndpoints(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -29918,15 +32524,32 @@ public okhttp3.Call replaceNamespacedEndpointsAsync(String name, String namespac */ public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -29943,11 +32566,10 @@ public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, Co localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29958,15 +32580,16 @@ public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, Co "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, CoreV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEvent(Async)"); @@ -29982,9 +32605,7 @@ private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, Strin throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -30088,15 +32709,32 @@ public okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, C */ public okhttp3.Call replaceNamespacedLimitRangeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -30113,11 +32751,10 @@ public okhttp3.Call replaceNamespacedLimitRangeCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30128,15 +32765,16 @@ public okhttp3.Call replaceNamespacedLimitRangeCall(String name, String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedLimitRange(Async)"); @@ -30152,9 +32790,7 @@ private okhttp3.Call replaceNamespacedLimitRangeValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLimitRange(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -30258,15 +32894,32 @@ public okhttp3.Call replaceNamespacedLimitRangeAsync(String name, String namespa */ public okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -30283,11 +32936,10 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(String name, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30298,15 +32950,16 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(String name, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPersistentVolumeClaim(Async)"); @@ -30322,9 +32975,7 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPersistentVolumeClaim(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -30428,15 +33079,32 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimAsync(String name, Str */ public okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -30453,11 +33121,10 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30468,15 +33135,16 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPersistentVolumeClaimStatus(Async)"); @@ -30492,9 +33160,7 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPersistentVolumeClaimStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -30598,15 +33264,32 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusAsync(String nam */ public okhttp3.Call replaceNamespacedPodCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -30623,11 +33306,10 @@ public okhttp3.Call replaceNamespacedPodCall(String name, String namespace, V1Po localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30638,15 +33320,16 @@ public okhttp3.Call replaceNamespacedPodCall(String name, String namespace, V1Po "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPod(Async)"); @@ -30662,9 +33345,7 @@ private okhttp3.Call replaceNamespacedPodValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPod(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -30768,15 +33449,32 @@ public okhttp3.Call replaceNamespacedPodAsync(String name, String namespace, V1P */ public okhttp3.Call replaceNamespacedPodEphemeralcontainersCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -30793,11 +33491,10 @@ public okhttp3.Call replaceNamespacedPodEphemeralcontainersCall(String name, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30808,15 +33505,16 @@ public okhttp3.Call replaceNamespacedPodEphemeralcontainersCall(String name, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodEphemeralcontainersValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodEphemeralcontainers(Async)"); @@ -30832,9 +33530,7 @@ private okhttp3.Call replaceNamespacedPodEphemeralcontainersValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodEphemeralcontainers(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPodEphemeralcontainersCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPodEphemeralcontainersCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -30938,15 +33634,32 @@ public okhttp3.Call replaceNamespacedPodEphemeralcontainersAsync(String name, St */ public okhttp3.Call replaceNamespacedPodStatusCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -30963,11 +33676,10 @@ public okhttp3.Call replaceNamespacedPodStatusCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30978,15 +33690,16 @@ public okhttp3.Call replaceNamespacedPodStatusCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodStatus(Async)"); @@ -31002,9 +33715,7 @@ private okhttp3.Call replaceNamespacedPodStatusValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -31108,15 +33819,32 @@ public okhttp3.Call replaceNamespacedPodStatusAsync(String name, String namespac */ public okhttp3.Call replaceNamespacedPodTemplateCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -31133,11 +33861,10 @@ public okhttp3.Call replaceNamespacedPodTemplateCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31148,15 +33875,16 @@ public okhttp3.Call replaceNamespacedPodTemplateCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodTemplate(Async)"); @@ -31172,9 +33900,7 @@ private okhttp3.Call replaceNamespacedPodTemplateValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodTemplate(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -31278,15 +34004,32 @@ public okhttp3.Call replaceNamespacedPodTemplateAsync(String name, String namesp */ public okhttp3.Call replaceNamespacedReplicationControllerCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -31303,11 +34046,10 @@ public okhttp3.Call replaceNamespacedReplicationControllerCall(String name, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31318,15 +34060,16 @@ public okhttp3.Call replaceNamespacedReplicationControllerCall(String name, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicationController(Async)"); @@ -31342,9 +34085,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationController(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -31448,15 +34189,32 @@ public okhttp3.Call replaceNamespacedReplicationControllerAsync(String name, Str */ public okhttp3.Call replaceNamespacedReplicationControllerScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -31473,11 +34231,10 @@ public okhttp3.Call replaceNamespacedReplicationControllerScaleCall(String name, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31488,15 +34245,16 @@ public okhttp3.Call replaceNamespacedReplicationControllerScaleCall(String name, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicationControllerScale(Async)"); @@ -31512,9 +34270,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerScaleValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationControllerScale(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -31618,15 +34374,32 @@ public okhttp3.Call replaceNamespacedReplicationControllerScaleAsync(String name */ public okhttp3.Call replaceNamespacedReplicationControllerStatusCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -31643,11 +34416,10 @@ public okhttp3.Call replaceNamespacedReplicationControllerStatusCall(String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31658,15 +34430,16 @@ public okhttp3.Call replaceNamespacedReplicationControllerStatusCall(String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedReplicationControllerStatus(Async)"); @@ -31682,9 +34455,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationControllerStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -31788,15 +34559,32 @@ public okhttp3.Call replaceNamespacedReplicationControllerStatusAsync(String nam */ public okhttp3.Call replaceNamespacedResourceQuotaCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -31813,11 +34601,10 @@ public okhttp3.Call replaceNamespacedResourceQuotaCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31828,15 +34615,16 @@ public okhttp3.Call replaceNamespacedResourceQuotaCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceQuota(Async)"); @@ -31852,9 +34640,7 @@ private okhttp3.Call replaceNamespacedResourceQuotaValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceQuota(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -31958,15 +34744,32 @@ public okhttp3.Call replaceNamespacedResourceQuotaAsync(String name, String name */ public okhttp3.Call replaceNamespacedResourceQuotaStatusCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -31983,11 +34786,10 @@ public okhttp3.Call replaceNamespacedResourceQuotaStatusCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31998,15 +34800,16 @@ public okhttp3.Call replaceNamespacedResourceQuotaStatusCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceQuotaStatus(Async)"); @@ -32022,9 +34825,7 @@ private okhttp3.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceQuotaStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -32128,15 +34929,32 @@ public okhttp3.Call replaceNamespacedResourceQuotaStatusAsync(String name, Strin */ public okhttp3.Call replaceNamespacedSecretCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -32153,11 +34971,10 @@ public okhttp3.Call replaceNamespacedSecretCall(String name, String namespace, V localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32168,15 +34985,16 @@ public okhttp3.Call replaceNamespacedSecretCall(String name, String namespace, V "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedSecretValidateBeforeCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedSecret(Async)"); @@ -32192,9 +35010,7 @@ private okhttp3.Call replaceNamespacedSecretValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedSecret(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -32298,15 +35114,32 @@ public okhttp3.Call replaceNamespacedSecretAsync(String name, String namespace, */ public okhttp3.Call replaceNamespacedServiceCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -32323,11 +35156,10 @@ public okhttp3.Call replaceNamespacedServiceCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32338,15 +35170,16 @@ public okhttp3.Call replaceNamespacedServiceCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedServiceValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedService(Async)"); @@ -32362,9 +35195,7 @@ private okhttp3.Call replaceNamespacedServiceValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedService(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -32468,15 +35299,32 @@ public okhttp3.Call replaceNamespacedServiceAsync(String name, String namespace, */ public okhttp3.Call replaceNamespacedServiceAccountCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -32493,11 +35341,10 @@ public okhttp3.Call replaceNamespacedServiceAccountCall(String name, String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32508,15 +35355,16 @@ public okhttp3.Call replaceNamespacedServiceAccountCall(String name, String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedServiceAccount(Async)"); @@ -32532,9 +35380,7 @@ private okhttp3.Call replaceNamespacedServiceAccountValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedServiceAccount(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -32638,15 +35484,32 @@ public okhttp3.Call replaceNamespacedServiceAccountAsync(String name, String nam */ public okhttp3.Call replaceNamespacedServiceStatusCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -32663,11 +35526,10 @@ public okhttp3.Call replaceNamespacedServiceStatusCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32678,15 +35540,16 @@ public okhttp3.Call replaceNamespacedServiceStatusCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedServiceStatus(Async)"); @@ -32702,9 +35565,7 @@ private okhttp3.Call replaceNamespacedServiceStatusValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedServiceStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -32807,14 +35668,31 @@ public okhttp3.Call replaceNamespacedServiceStatusAsync(String name, String name */ public okhttp3.Call replaceNodeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -32831,11 +35709,10 @@ public okhttp3.Call replaceNodeCall(String name, V1Node body, String pretty, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32846,15 +35723,16 @@ public okhttp3.Call replaceNodeCall(String name, V1Node body, String pretty, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNodeValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNode(Async)"); @@ -32865,9 +35743,7 @@ private okhttp3.Call replaceNodeValidateBeforeCall(String name, V1Node body, Str throw new ApiException("Missing the required parameter 'body' when calling replaceNode(Async)"); } - - okhttp3.Call localVarCall = replaceNodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -32967,14 +35843,31 @@ public okhttp3.Call replaceNodeAsync(String name, V1Node body, String pretty, St */ public okhttp3.Call replaceNodeStatusCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -32991,11 +35884,10 @@ public okhttp3.Call replaceNodeStatusCall(String name, V1Node body, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -33006,15 +35898,16 @@ public okhttp3.Call replaceNodeStatusCall(String name, V1Node body, String prett "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNodeStatusValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNodeStatus(Async)"); @@ -33025,9 +35918,7 @@ private okhttp3.Call replaceNodeStatusValidateBeforeCall(String name, V1Node bod throw new ApiException("Missing the required parameter 'body' when calling replaceNodeStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -33127,14 +36018,31 @@ public okhttp3.Call replaceNodeStatusAsync(String name, V1Node body, String pret */ public okhttp3.Call replacePersistentVolumeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -33151,11 +36059,10 @@ public okhttp3.Call replacePersistentVolumeCall(String name, V1PersistentVolume localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -33166,15 +36073,16 @@ public okhttp3.Call replacePersistentVolumeCall(String name, V1PersistentVolume "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePersistentVolumeValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePersistentVolume(Async)"); @@ -33185,9 +36093,7 @@ private okhttp3.Call replacePersistentVolumeValidateBeforeCall(String name, V1Pe throw new ApiException("Missing the required parameter 'body' when calling replacePersistentVolume(Async)"); } - - okhttp3.Call localVarCall = replacePersistentVolumeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replacePersistentVolumeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -33287,14 +36193,31 @@ public okhttp3.Call replacePersistentVolumeAsync(String name, V1PersistentVolume */ public okhttp3.Call replacePersistentVolumeStatusCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -33311,11 +36234,10 @@ public okhttp3.Call replacePersistentVolumeStatusCall(String name, V1PersistentV localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -33326,15 +36248,16 @@ public okhttp3.Call replacePersistentVolumeStatusCall(String name, V1PersistentV "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePersistentVolumeStatusValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePersistentVolumeStatus(Async)"); @@ -33345,9 +36268,7 @@ private okhttp3.Call replacePersistentVolumeStatusValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling replacePersistentVolumeStatus(Async)"); } - - okhttp3.Call localVarCall = replacePersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replacePersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java index 0d6254c1e9..ca6f83865c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java @@ -34,9 +34,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class CustomObjectsApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public CustomObjectsApi() { this(Configuration.getDefaultApiClient()); @@ -54,6 +57,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createClusterCustomObject * @param group The custom resource's group name (required) @@ -74,16 +93,33 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createClusterCustomObjectCall(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -96,9 +132,6 @@ public okhttp3.Call createClusterCustomObjectCall(String group, String version, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -111,15 +144,16 @@ public okhttp3.Call createClusterCustomObjectCall(String group, String version, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling createClusterCustomObject(Async)"); @@ -140,9 +174,7 @@ private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, S throw new ApiException("Missing the required parameter 'body' when calling createClusterCustomObject(Async)"); } - - okhttp3.Call localVarCall = createClusterCustomObjectCall(group, version, plural, body, pretty, dryRun, fieldManager, _callback); - return localVarCall; + return createClusterCustomObjectCall(group, version, plural, body, pretty, dryRun, fieldManager, _callback); } @@ -243,17 +275,34 @@ public okhttp3.Call createClusterCustomObjectAsync(String group, String version, */ public okhttp3.Call createNamespacedCustomObjectCall(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -266,9 +315,6 @@ public okhttp3.Call createNamespacedCustomObjectCall(String group, String versio localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -281,15 +327,16 @@ public okhttp3.Call createNamespacedCustomObjectCall(String group, String versio "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling createNamespacedCustomObject(Async)"); @@ -315,9 +362,7 @@ private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group throw new ApiException("Missing the required parameter 'body' when calling createNamespacedCustomObject(Async)"); } - - okhttp3.Call localVarCall = createNamespacedCustomObjectCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, _callback); - return localVarCall; + return createNamespacedCustomObjectCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, _callback); } @@ -422,17 +467,34 @@ public okhttp3.Call createNamespacedCustomObjectAsync(String group, String versi */ public okhttp3.Call deleteClusterCustomObjectCall(String group, String version, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -449,9 +511,6 @@ public okhttp3.Call deleteClusterCustomObjectCall(String group, String version, localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -464,15 +523,16 @@ public okhttp3.Call deleteClusterCustomObjectCall(String group, String version, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteClusterCustomObject(Async)"); @@ -493,9 +553,7 @@ private okhttp3.Call deleteClusterCustomObjectValidateBeforeCall(String group, S throw new ApiException("Missing the required parameter 'name' when calling deleteClusterCustomObject(Async)"); } - - okhttp3.Call localVarCall = deleteClusterCustomObjectCall(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); - return localVarCall; + return deleteClusterCustomObjectCall(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); } @@ -603,16 +661,33 @@ public okhttp3.Call deleteClusterCustomObjectAsync(String group, String version, */ public okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, String version, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -633,9 +708,6 @@ public okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -648,15 +720,16 @@ public okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteCollectionClusterCustomObject(Async)"); @@ -672,9 +745,7 @@ private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'plural' when calling deleteCollectionClusterCustomObject(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectCall(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); - return localVarCall; + return deleteCollectionClusterCustomObjectCall(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); } @@ -783,17 +854,34 @@ public okhttp3.Call deleteCollectionClusterCustomObjectAsync(String group, Strin */ public okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -814,9 +902,6 @@ public okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -829,15 +914,16 @@ public okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteCollectionNamespacedCustomObject(Async)"); @@ -858,9 +944,7 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(St throw new ApiException("Missing the required parameter 'plural' when calling deleteCollectionNamespacedCustomObject(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectCall(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); - return localVarCall; + return deleteCollectionNamespacedCustomObjectCall(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); } @@ -972,18 +1056,35 @@ public okhttp3.Call deleteCollectionNamespacedCustomObjectAsync(String group, St */ public okhttp3.Call deleteNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -1000,9 +1101,6 @@ public okhttp3.Call deleteNamespacedCustomObjectCall(String group, String versio localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -1015,15 +1113,16 @@ public okhttp3.Call deleteNamespacedCustomObjectCall(String group, String versio "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteNamespacedCustomObject(Async)"); @@ -1049,9 +1148,7 @@ private okhttp3.Call deleteNamespacedCustomObjectValidateBeforeCall(String group throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCustomObject(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedCustomObjectCall(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); - return localVarCall; + return deleteNamespacedCustomObjectCall(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); } @@ -1155,18 +1252,32 @@ public okhttp3.Call deleteNamespacedCustomObjectAsync(String group, String versi */ public okhttp3.Call getAPIResourcesCall(String group, String version, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { "application/json" }; @@ -1176,18 +1287,18 @@ public okhttp3.Call getAPIResourcesCall(String group, String version, final ApiC } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(String group, String version, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getAPIResources(Async)"); @@ -1198,9 +1309,7 @@ private okhttp3.Call getAPIResourcesValidateBeforeCall(String group, String vers throw new ApiException("Missing the required parameter 'version' when calling getAPIResources(Async)"); } - - okhttp3.Call localVarCall = getAPIResourcesCall(group, version, _callback); - return localVarCall; + return getAPIResourcesCall(group, version, _callback); } @@ -1282,20 +1391,34 @@ public okhttp3.Call getAPIResourcesAsync(String group, String version, final Api */ public okhttp3.Call getClusterCustomObjectCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { "application/json" }; @@ -1305,18 +1428,18 @@ public okhttp3.Call getClusterCustomObjectCall(String group, String version, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getClusterCustomObject(Async)"); @@ -1337,9 +1460,7 @@ private okhttp3.Call getClusterCustomObjectValidateBeforeCall(String group, Stri throw new ApiException("Missing the required parameter 'name' when calling getClusterCustomObject(Async)"); } - - okhttp3.Call localVarCall = getClusterCustomObjectCall(group, version, plural, name, _callback); - return localVarCall; + return getClusterCustomObjectCall(group, version, plural, name, _callback); } @@ -1427,22 +1548,38 @@ public okhttp3.Call getClusterCustomObjectAsync(String group, String version, St */ public okhttp3.Call getClusterCustomObjectScaleCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1450,18 +1587,18 @@ public okhttp3.Call getClusterCustomObjectScaleCall(String group, String version } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getClusterCustomObjectScale(Async)"); @@ -1482,9 +1619,7 @@ private okhttp3.Call getClusterCustomObjectScaleValidateBeforeCall(String group, throw new ApiException("Missing the required parameter 'name' when calling getClusterCustomObjectScale(Async)"); } - - okhttp3.Call localVarCall = getClusterCustomObjectScaleCall(group, version, plural, name, _callback); - return localVarCall; + return getClusterCustomObjectScaleCall(group, version, plural, name, _callback); } @@ -1572,22 +1707,38 @@ public okhttp3.Call getClusterCustomObjectScaleAsync(String group, String versio */ public okhttp3.Call getClusterCustomObjectStatusCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1595,18 +1746,18 @@ public okhttp3.Call getClusterCustomObjectStatusCall(String group, String versio } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getClusterCustomObjectStatus(Async)"); @@ -1627,9 +1778,7 @@ private okhttp3.Call getClusterCustomObjectStatusValidateBeforeCall(String group throw new ApiException("Missing the required parameter 'name' when calling getClusterCustomObjectStatus(Async)"); } - - okhttp3.Call localVarCall = getClusterCustomObjectStatusCall(group, version, plural, name, _callback); - return localVarCall; + return getClusterCustomObjectStatusCall(group, version, plural, name, _callback); } @@ -1718,21 +1867,35 @@ public okhttp3.Call getClusterCustomObjectStatusAsync(String group, String versi */ public okhttp3.Call getNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { "application/json" }; @@ -1742,18 +1905,18 @@ public okhttp3.Call getNamespacedCustomObjectCall(String group, String version, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getNamespacedCustomObject(Async)"); @@ -1779,9 +1942,7 @@ private okhttp3.Call getNamespacedCustomObjectValidateBeforeCall(String group, S throw new ApiException("Missing the required parameter 'name' when calling getNamespacedCustomObject(Async)"); } - - okhttp3.Call localVarCall = getNamespacedCustomObjectCall(group, version, namespace, plural, name, _callback); - return localVarCall; + return getNamespacedCustomObjectCall(group, version, namespace, plural, name, _callback); } @@ -1873,23 +2034,39 @@ public okhttp3.Call getNamespacedCustomObjectAsync(String group, String version, */ public okhttp3.Call getNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1897,18 +2074,18 @@ public okhttp3.Call getNamespacedCustomObjectScaleCall(String group, String vers } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getNamespacedCustomObjectScale(Async)"); @@ -1934,9 +2111,7 @@ private okhttp3.Call getNamespacedCustomObjectScaleValidateBeforeCall(String gro throw new ApiException("Missing the required parameter 'name' when calling getNamespacedCustomObjectScale(Async)"); } - - okhttp3.Call localVarCall = getNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, _callback); - return localVarCall; + return getNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, _callback); } @@ -2028,23 +2203,39 @@ public okhttp3.Call getNamespacedCustomObjectScaleAsync(String group, String ver */ public okhttp3.Call getNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2052,18 +2243,18 @@ public okhttp3.Call getNamespacedCustomObjectStatusCall(String group, String ver } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling getNamespacedCustomObjectStatus(Async)"); @@ -2089,9 +2280,7 @@ private okhttp3.Call getNamespacedCustomObjectStatusValidateBeforeCall(String gr throw new ApiException("Missing the required parameter 'name' when calling getNamespacedCustomObjectStatus(Async)"); } - - okhttp3.Call localVarCall = getNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, _callback); - return localVarCall; + return getNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, _callback); } @@ -2191,16 +2380,33 @@ public okhttp3.Call getNamespacedCustomObjectStatusAsync(String group, String ve */ public okhttp3.Call listClusterCustomObjectCall(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2241,11 +2447,9 @@ public okhttp3.Call listClusterCustomObjectCall(String group, String version, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/json;stream=watch" + "application/json", + "application/json;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2253,18 +2457,18 @@ public okhttp3.Call listClusterCustomObjectCall(String group, String version, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling listClusterCustomObject(Async)"); @@ -2280,9 +2484,7 @@ private okhttp3.Call listClusterCustomObjectValidateBeforeCall(String group, Str throw new ApiException("Missing the required parameter 'plural' when calling listClusterCustomObject(Async)"); } - - okhttp3.Call localVarCall = listClusterCustomObjectCall(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); - return localVarCall; + return listClusterCustomObjectCall(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); } @@ -2407,17 +2609,34 @@ public okhttp3.Call listClusterCustomObjectAsync(String group, String version, S */ public okhttp3.Call listNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2458,11 +2677,9 @@ public okhttp3.Call listNamespacedCustomObjectCall(String group, String version, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/json;stream=watch" + "application/json", + "application/json;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2470,18 +2687,18 @@ public okhttp3.Call listNamespacedCustomObjectCall(String group, String version, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling listNamespacedCustomObject(Async)"); @@ -2502,9 +2719,7 @@ private okhttp3.Call listNamespacedCustomObjectValidateBeforeCall(String group, throw new ApiException("Missing the required parameter 'plural' when calling listNamespacedCustomObject(Async)"); } - - okhttp3.Call localVarCall = listNamespacedCustomObjectCall(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedCustomObjectCall(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); } @@ -2626,17 +2841,34 @@ public okhttp3.Call listNamespacedCustomObjectAsync(String group, String version */ public okhttp3.Call patchClusterCustomObjectCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -2649,9 +2881,6 @@ public okhttp3.Call patchClusterCustomObjectCall(String group, String version, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -2664,15 +2893,16 @@ public okhttp3.Call patchClusterCustomObjectCall(String group, String version, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchClusterCustomObject(Async)"); @@ -2698,9 +2928,7 @@ private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, St throw new ApiException("Missing the required parameter 'body' when calling patchClusterCustomObject(Async)"); } - - okhttp3.Call localVarCall = patchClusterCustomObjectCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); - return localVarCall; + return patchClusterCustomObjectCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); } @@ -2804,17 +3032,34 @@ public okhttp3.Call patchClusterCustomObjectAsync(String group, String version, */ public okhttp3.Call patchClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -2827,11 +3072,10 @@ public okhttp3.Call patchClusterCustomObjectScaleCall(String group, String versi localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2842,15 +3086,16 @@ public okhttp3.Call patchClusterCustomObjectScaleCall(String group, String versi "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchClusterCustomObjectScale(Async)"); @@ -2876,9 +3121,7 @@ private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String grou throw new ApiException("Missing the required parameter 'body' when calling patchClusterCustomObjectScale(Async)"); } - - okhttp3.Call localVarCall = patchClusterCustomObjectScaleCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); - return localVarCall; + return patchClusterCustomObjectScaleCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); } @@ -2982,17 +3225,34 @@ public okhttp3.Call patchClusterCustomObjectScaleAsync(String group, String vers */ public okhttp3.Call patchClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -3005,11 +3265,10 @@ public okhttp3.Call patchClusterCustomObjectStatusCall(String group, String vers localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3020,15 +3279,16 @@ public okhttp3.Call patchClusterCustomObjectStatusCall(String group, String vers "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchClusterCustomObjectStatus(Async)"); @@ -3054,9 +3314,7 @@ private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String gro throw new ApiException("Missing the required parameter 'body' when calling patchClusterCustomObjectStatus(Async)"); } - - okhttp3.Call localVarCall = patchClusterCustomObjectStatusCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); - return localVarCall; + return patchClusterCustomObjectStatusCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); } @@ -3161,18 +3419,35 @@ public okhttp3.Call patchClusterCustomObjectStatusAsync(String group, String ver */ public okhttp3.Call patchNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -3185,9 +3460,6 @@ public okhttp3.Call patchNamespacedCustomObjectCall(String group, String version localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -3200,15 +3472,16 @@ public okhttp3.Call patchNamespacedCustomObjectCall(String group, String version "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchNamespacedCustomObject(Async)"); @@ -3239,9 +3512,7 @@ private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCustomObject(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedCustomObjectCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); - return localVarCall; + return patchNamespacedCustomObjectCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); } @@ -3349,18 +3620,35 @@ public okhttp3.Call patchNamespacedCustomObjectAsync(String group, String versio */ public okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -3373,11 +3661,10 @@ public okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String ve localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3388,15 +3675,16 @@ public okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String ve "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchNamespacedCustomObjectScale(Async)"); @@ -3427,9 +3715,7 @@ private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String g throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCustomObjectScale(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); - return localVarCall; + return patchNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); } @@ -3537,18 +3823,35 @@ public okhttp3.Call patchNamespacedCustomObjectScaleAsync(String group, String v */ public okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -3561,11 +3864,10 @@ public okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String v localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3576,15 +3878,16 @@ public okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String v "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling patchNamespacedCustomObjectStatus(Async)"); @@ -3615,9 +3918,7 @@ private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCustomObjectStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); - return localVarCall; + return patchNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); } @@ -3723,17 +4024,34 @@ public okhttp3.Call patchNamespacedCustomObjectStatusAsync(String group, String */ public okhttp3.Call replaceClusterCustomObjectCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -3742,9 +4060,6 @@ public okhttp3.Call replaceClusterCustomObjectCall(String group, String version, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -3757,15 +4072,16 @@ public okhttp3.Call replaceClusterCustomObjectCall(String group, String version, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceClusterCustomObject(Async)"); @@ -3791,9 +4107,7 @@ private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, throw new ApiException("Missing the required parameter 'body' when calling replaceClusterCustomObject(Async)"); } - - okhttp3.Call localVarCall = replaceClusterCustomObjectCall(group, version, plural, name, body, dryRun, fieldManager, _callback); - return localVarCall; + return replaceClusterCustomObjectCall(group, version, plural, name, body, dryRun, fieldManager, _callback); } @@ -3894,17 +4208,34 @@ public okhttp3.Call replaceClusterCustomObjectAsync(String group, String version */ public okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -3913,11 +4244,10 @@ public okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String ver localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3928,15 +4258,16 @@ public okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String ver "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceClusterCustomObjectScale(Async)"); @@ -3962,9 +4293,7 @@ private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String gr throw new ApiException("Missing the required parameter 'body' when calling replaceClusterCustomObjectScale(Async)"); } - - okhttp3.Call localVarCall = replaceClusterCustomObjectScaleCall(group, version, plural, name, body, dryRun, fieldManager, _callback); - return localVarCall; + return replaceClusterCustomObjectScaleCall(group, version, plural, name, body, dryRun, fieldManager, _callback); } @@ -4068,17 +4397,34 @@ public okhttp3.Call replaceClusterCustomObjectScaleAsync(String group, String ve */ public okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -4087,11 +4433,10 @@ public okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String ve localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4102,15 +4447,16 @@ public okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String ve "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceClusterCustomObjectStatus(Async)"); @@ -4136,9 +4482,7 @@ private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String g throw new ApiException("Missing the required parameter 'body' when calling replaceClusterCustomObjectStatus(Async)"); } - - okhttp3.Call localVarCall = replaceClusterCustomObjectStatusCall(group, version, plural, name, body, dryRun, fieldManager, _callback); - return localVarCall; + return replaceClusterCustomObjectStatusCall(group, version, plural, name, body, dryRun, fieldManager, _callback); } @@ -4242,18 +4586,35 @@ public okhttp3.Call replaceClusterCustomObjectStatusAsync(String group, String v */ public okhttp3.Call replaceNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -4262,9 +4623,6 @@ public okhttp3.Call replaceNamespacedCustomObjectCall(String group, String versi localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; @@ -4277,15 +4635,16 @@ public okhttp3.Call replaceNamespacedCustomObjectCall(String group, String versi "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceNamespacedCustomObject(Async)"); @@ -4316,9 +4675,7 @@ private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String grou throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCustomObject(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedCustomObjectCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); - return localVarCall; + return replaceNamespacedCustomObjectCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); } @@ -4423,18 +4780,35 @@ public okhttp3.Call replaceNamespacedCustomObjectAsync(String group, String vers */ public okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -4443,11 +4817,10 @@ public okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4458,15 +4831,16 @@ public okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceNamespacedCustomObjectScale(Async)"); @@ -4497,9 +4871,7 @@ private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCustomObjectScale(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); - return localVarCall; + return replaceNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); } @@ -4607,18 +4979,35 @@ public okhttp3.Call replaceNamespacedCustomObjectScaleAsync(String group, String */ public okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) + .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } @@ -4627,11 +5016,10 @@ public okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4642,15 +5030,16 @@ public okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling replaceNamespacedCustomObjectStatus(Async)"); @@ -4681,9 +5070,7 @@ private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCustomObjectStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); - return localVarCall; + return replaceNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java index 5d4f013fae..f42bd0631a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class DiscoveryApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public DiscoveryApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java index 1963ed05ef..32b3fb14c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class DiscoveryV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public DiscoveryV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedEndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) @@ -79,14 +98,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedEndpointSliceCall(String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createNamespacedEndpointSliceCall(String namespace, V1Endpoi localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,15 +153,16 @@ public okhttp3.Call createNamespacedEndpointSliceCall(String namespace, V1Endpoi "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedEndpointSliceValidateBeforeCall(String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEndpointSlice(Async)"); @@ -137,9 +173,7 @@ private okhttp3.Call createNamespacedEndpointSliceValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEndpointSlice(Async)"); } - - okhttp3.Call localVarCall = createNamespacedEndpointSliceCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedEndpointSliceCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -250,14 +284,31 @@ public okhttp3.Call createNamespacedEndpointSliceAsync(String namespace, V1Endpo */ public okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -310,11 +361,10 @@ public okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -325,23 +375,22 @@ public okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpointSlice(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedEndpointSliceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -467,15 +516,32 @@ public okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(String namespac */ public okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -496,11 +562,10 @@ public okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -511,15 +576,16 @@ public okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namesp "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEndpointSlice(Async)"); @@ -530,9 +596,7 @@ private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEndpointSlice(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedEndpointSliceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedEndpointSliceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -631,6 +695,19 @@ public okhttp3.Call deleteNamespacedEndpointSliceAsync(String name, String names */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -641,8 +718,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -650,21 +730,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -747,6 +825,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listEndpointSliceForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -754,6 +845,10 @@ public okhttp3.Call listEndpointSliceForAllNamespacesCall(Boolean allowWatchBook List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -798,11 +893,12 @@ public okhttp3.Call listEndpointSliceForAllNamespacesCall(Boolean allowWatchBook localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -810,21 +906,19 @@ public okhttp3.Call listEndpointSliceForAllNamespacesCall(Boolean allowWatchBook } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listEndpointSliceForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listEndpointSliceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listEndpointSliceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -941,14 +1035,31 @@ public okhttp3.Call listEndpointSliceForAllNamespacesAsync(Boolean allowWatchBoo */ public okhttp3.Call listNamespacedEndpointSliceCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -993,11 +1104,12 @@ public okhttp3.Call listNamespacedEndpointSliceCall(String namespace, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1005,26 +1117,24 @@ public okhttp3.Call listNamespacedEndpointSliceCall(String namespace, String pre } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedEndpointSliceValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEndpointSlice(Async)"); } - - okhttp3.Call localVarCall = listNamespacedEndpointSliceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedEndpointSliceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1141,15 +1251,32 @@ public okhttp3.Call listNamespacedEndpointSliceAsync(String namespace, String pr */ public okhttp3.Call patchNamespacedEndpointSliceCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1170,11 +1297,10 @@ public okhttp3.Call patchNamespacedEndpointSliceCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1185,15 +1311,16 @@ public okhttp3.Call patchNamespacedEndpointSliceCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedEndpointSlice(Async)"); @@ -1209,9 +1336,7 @@ private okhttp3.Call patchNamespacedEndpointSliceValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEndpointSlice(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedEndpointSliceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedEndpointSliceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1313,24 +1438,40 @@ public okhttp3.Call patchNamespacedEndpointSliceAsync(String name, String namesp */ public okhttp3.Call readNamespacedEndpointSliceCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1338,18 +1479,18 @@ public okhttp3.Call readNamespacedEndpointSliceCall(String name, String namespac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEndpointSlice(Async)"); @@ -1360,9 +1501,7 @@ private okhttp3.Call readNamespacedEndpointSliceValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEndpointSlice(Async)"); } - - okhttp3.Call localVarCall = readNamespacedEndpointSliceCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedEndpointSliceCall(name, namespace, pretty, _callback); } @@ -1451,15 +1590,32 @@ public okhttp3.Call readNamespacedEndpointSliceAsync(String name, String namespa */ public okhttp3.Call replaceNamespacedEndpointSliceCall(String name, String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1476,11 +1632,10 @@ public okhttp3.Call replaceNamespacedEndpointSliceCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1491,15 +1646,16 @@ public okhttp3.Call replaceNamespacedEndpointSliceCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, V1EndpointSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEndpointSlice(Async)"); @@ -1515,9 +1671,7 @@ private okhttp3.Call replaceNamespacedEndpointSliceValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEndpointSlice(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedEndpointSliceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedEndpointSliceCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java index 33865a32f5..5bea6d23aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class EventsApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public EventsApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java index 9d6d151c79..d864e414d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class EventsV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public EventsV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) @@ -79,14 +98,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedEventCall(String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/events.k8s.io/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createNamespacedEventCall(String namespace, EventsV1Event bo localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,15 +153,16 @@ public okhttp3.Call createNamespacedEventCall(String namespace, EventsV1Event bo "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedEvent(Async)"); @@ -137,9 +173,7 @@ private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, E throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -250,14 +284,31 @@ public okhttp3.Call createNamespacedEventAsync(String namespace, EventsV1Event b */ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/events.k8s.io/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -310,11 +361,10 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -325,23 +375,22 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -467,15 +516,32 @@ public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, Strin */ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -496,11 +562,10 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -511,15 +576,16 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEvent(Async)"); @@ -530,9 +596,7 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -631,6 +695,19 @@ public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, St */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -641,8 +718,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -650,21 +730,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -747,6 +825,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -754,6 +845,10 @@ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, S List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -798,11 +893,12 @@ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -810,21 +906,19 @@ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -941,14 +1035,31 @@ public okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, */ public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/events.k8s.io/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -993,11 +1104,12 @@ public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1005,26 +1117,24 @@ public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1141,15 +1251,32 @@ public okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Bo */ public okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1170,11 +1297,10 @@ public okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Pa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1185,15 +1311,16 @@ public okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Pa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedEvent(Async)"); @@ -1209,9 +1336,7 @@ private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1313,24 +1438,40 @@ public okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1P */ public okhttp3.Call readNamespacedEventCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1338,18 +1479,18 @@ public okhttp3.Call readNamespacedEventCall(String name, String namespace, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEvent(Async)"); @@ -1360,9 +1501,7 @@ private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String n throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = readNamespacedEventCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedEventCall(name, namespace, pretty, _callback); } @@ -1451,15 +1590,32 @@ public okhttp3.Call readNamespacedEventAsync(String name, String namespace, Stri */ public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1476,11 +1632,10 @@ public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, Ev localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1491,15 +1646,16 @@ public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, Ev "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, EventsV1Event body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEvent(Async)"); @@ -1515,9 +1671,7 @@ private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, Strin throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEvent(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java index 5ae1c3b49d..0c234d6a53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class FlowcontrolApiserverApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public FlowcontrolApiserverApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta2Api.java index 4ab7e710a9..555a51be0b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta2Api.java @@ -40,9 +40,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class FlowcontrolApiserverV1beta2Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public FlowcontrolApiserverV1beta2Api() { this(Configuration.getDefaultApiClient()); @@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createFlowSchema * @param body (required) @@ -80,6 +99,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createFlowSchemaCall(V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -87,6 +119,10 @@ public okhttp3.Call createFlowSchemaCall(V1beta2FlowSchema body, String pretty, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createFlowSchemaCall(V1beta2FlowSchema body, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,23 +153,22 @@ public okhttp3.Call createFlowSchemaCall(V1beta2FlowSchema body, String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createFlowSchemaValidateBeforeCall(V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createFlowSchema(Async)"); } - - okhttp3.Call localVarCall = createFlowSchemaCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createFlowSchemaCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -234,6 +268,19 @@ public okhttp3.Call createFlowSchemaAsync(V1beta2FlowSchema body, String pretty, */ public okhttp3.Call createPriorityLevelConfigurationCall(V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -241,6 +288,10 @@ public okhttp3.Call createPriorityLevelConfigurationCall(V1beta2PriorityLevelCon List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -257,11 +308,10 @@ public okhttp3.Call createPriorityLevelConfigurationCall(V1beta2PriorityLevelCon localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -272,23 +322,22 @@ public okhttp3.Call createPriorityLevelConfigurationCall(V1beta2PriorityLevelCon "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createPriorityLevelConfigurationValidateBeforeCall(V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = createPriorityLevelConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createPriorityLevelConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -395,6 +444,19 @@ public okhttp3.Call createPriorityLevelConfigurationAsync(V1beta2PriorityLevelCo */ public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -402,6 +464,10 @@ public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _contin List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -454,11 +520,10 @@ public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _contin localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -469,18 +534,17 @@ public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _contin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -608,6 +672,19 @@ public okhttp3.Call deleteCollectionFlowSchemaAsync(String pretty, String _conti */ public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -615,6 +692,10 @@ public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -667,11 +748,10 @@ public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -682,18 +762,17 @@ public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -815,14 +894,31 @@ public okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(String prett */ public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -843,11 +939,10 @@ public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryR localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -858,23 +953,22 @@ public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryR "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteFlowSchemaValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteFlowSchema(Async)"); } - - okhttp3.Call localVarCall = deleteFlowSchemaCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteFlowSchemaCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -978,14 +1072,31 @@ public okhttp3.Call deleteFlowSchemaAsync(String name, String pretty, String dry */ public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1006,11 +1117,10 @@ public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1021,23 +1131,22 @@ public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pre "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deletePriorityLevelConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = deletePriorityLevelConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deletePriorityLevelConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1133,6 +1242,19 @@ public okhttp3.Call deletePriorityLevelConfigurationAsync(String name, String pr */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1143,8 +1265,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1152,21 +1277,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -1249,6 +1372,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1256,6 +1392,10 @@ public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmark List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1300,11 +1440,12 @@ public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmark localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1312,21 +1453,19 @@ public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmark } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listFlowSchemaValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1442,6 +1581,19 @@ public okhttp3.Call listFlowSchemaAsync(String pretty, Boolean allowWatchBookmar */ public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1449,6 +1601,10 @@ public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean al List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1493,11 +1649,12 @@ public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean al localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1505,21 +1662,19 @@ public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean al } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1632,14 +1787,31 @@ public okhttp3.Call listPriorityLevelConfigurationAsync(String pretty, Boolean a */ public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1660,11 +1832,10 @@ public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1675,15 +1846,16 @@ public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchFlowSchemaValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchema(Async)"); @@ -1694,9 +1866,7 @@ private okhttp3.Call patchFlowSchemaValidateBeforeCall(String name, V1Patch body throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchema(Async)"); } - - okhttp3.Call localVarCall = patchFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1800,14 +1970,31 @@ public okhttp3.Call patchFlowSchemaAsync(String name, V1Patch body, String prett */ public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1828,11 +2015,10 @@ public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1843,15 +2029,16 @@ public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchemaStatus(Async)"); @@ -1862,9 +2049,7 @@ private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patc throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchemaStatus(Async)"); } - - okhttp3.Call localVarCall = patchFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1968,14 +2153,31 @@ public okhttp3.Call patchFlowSchemaStatusAsync(String name, V1Patch body, String */ public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1996,11 +2198,10 @@ public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch bod localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2011,15 +2212,16 @@ public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch bod "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfiguration(Async)"); @@ -2030,9 +2232,7 @@ private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchPriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2136,14 +2336,31 @@ public okhttp3.Call patchPriorityLevelConfigurationAsync(String name, V1Patch bo */ public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2164,11 +2381,10 @@ public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Pat localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2179,15 +2395,16 @@ public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Pat "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfigurationStatus(Async)"); @@ -2198,9 +2415,7 @@ private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfigurationStatus(Async)"); } - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchPriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2298,23 +2513,39 @@ public okhttp3.Call patchPriorityLevelConfigurationStatusAsync(String name, V1Pa */ public okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2322,26 +2553,24 @@ public okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCall } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readFlowSchemaValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readFlowSchema(Async)"); } - - okhttp3.Call localVarCall = readFlowSchemaCall(name, pretty, _callback); - return localVarCall; + return readFlowSchemaCall(name, pretty, _callback); } @@ -2421,23 +2650,39 @@ public okhttp3.Call readFlowSchemaAsync(String name, String pretty, final ApiCal */ public okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2445,26 +2690,24 @@ public okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readFlowSchemaStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readFlowSchemaStatus(Async)"); } - - okhttp3.Call localVarCall = readFlowSchemaStatusCall(name, pretty, _callback); - return localVarCall; + return readFlowSchemaStatusCall(name, pretty, _callback); } @@ -2544,23 +2787,39 @@ public okhttp3.Call readFlowSchemaStatusAsync(String name, String pretty, final */ public okhttp3.Call readPriorityLevelConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2568,26 +2827,24 @@ public okhttp3.Call readPriorityLevelConfigurationCall(String name, String prett } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPriorityLevelConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = readPriorityLevelConfigurationCall(name, pretty, _callback); - return localVarCall; + return readPriorityLevelConfigurationCall(name, pretty, _callback); } @@ -2667,23 +2924,39 @@ public okhttp3.Call readPriorityLevelConfigurationAsync(String name, String pret */ public okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2691,26 +2964,24 @@ public okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPriorityLevelConfigurationStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfigurationStatus(Async)"); } - - okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusCall(name, pretty, _callback); - return localVarCall; + return readPriorityLevelConfigurationStatusCall(name, pretty, _callback); } @@ -2795,14 +3066,31 @@ public okhttp3.Call readPriorityLevelConfigurationStatusAsync(String name, Strin */ public okhttp3.Call replaceFlowSchemaCall(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2819,11 +3107,10 @@ public okhttp3.Call replaceFlowSchemaCall(String name, V1beta2FlowSchema body, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2834,15 +3121,16 @@ public okhttp3.Call replaceFlowSchemaCall(String name, V1beta2FlowSchema body, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchema(Async)"); @@ -2853,9 +3141,7 @@ private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1beta2Flo throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchema(Async)"); } - - okhttp3.Call localVarCall = replaceFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -2955,14 +3241,31 @@ public okhttp3.Call replaceFlowSchemaAsync(String name, V1beta2FlowSchema body, */ public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2979,11 +3282,10 @@ public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1beta2FlowSchema b localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2994,15 +3296,16 @@ public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1beta2FlowSchema b "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchemaStatus(Async)"); @@ -3013,9 +3316,7 @@ private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1be throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchemaStatus(Async)"); } - - okhttp3.Call localVarCall = replaceFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -3115,14 +3416,31 @@ public okhttp3.Call replaceFlowSchemaStatusAsync(String name, V1beta2FlowSchema */ public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3139,11 +3457,10 @@ public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1beta2Pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3154,15 +3471,16 @@ public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1beta2Pr "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfiguration(Async)"); @@ -3173,9 +3491,7 @@ private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replacePriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -3275,14 +3591,31 @@ public okhttp3.Call replacePriorityLevelConfigurationAsync(String name, V1beta2P */ public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3299,11 +3632,10 @@ public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1b localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3314,15 +3646,16 @@ public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1b "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfigurationStatus(Async)"); @@ -3333,9 +3666,7 @@ private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfigurationStatus(Async)"); } - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replacePriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java index 47cf316679..dc8b714d96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java @@ -40,9 +40,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class FlowcontrolApiserverV1beta3Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public FlowcontrolApiserverV1beta3Api() { this(Configuration.getDefaultApiClient()); @@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createFlowSchema * @param body (required) @@ -80,6 +99,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createFlowSchemaCall(V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -87,6 +119,10 @@ public okhttp3.Call createFlowSchemaCall(V1beta3FlowSchema body, String pretty, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createFlowSchemaCall(V1beta3FlowSchema body, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,23 +153,22 @@ public okhttp3.Call createFlowSchemaCall(V1beta3FlowSchema body, String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createFlowSchemaValidateBeforeCall(V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createFlowSchema(Async)"); } - - okhttp3.Call localVarCall = createFlowSchemaCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createFlowSchemaCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -234,6 +268,19 @@ public okhttp3.Call createFlowSchemaAsync(V1beta3FlowSchema body, String pretty, */ public okhttp3.Call createPriorityLevelConfigurationCall(V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -241,6 +288,10 @@ public okhttp3.Call createPriorityLevelConfigurationCall(V1beta3PriorityLevelCon List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -257,11 +308,10 @@ public okhttp3.Call createPriorityLevelConfigurationCall(V1beta3PriorityLevelCon localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -272,23 +322,22 @@ public okhttp3.Call createPriorityLevelConfigurationCall(V1beta3PriorityLevelCon "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createPriorityLevelConfigurationValidateBeforeCall(V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = createPriorityLevelConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createPriorityLevelConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -395,6 +444,19 @@ public okhttp3.Call createPriorityLevelConfigurationAsync(V1beta3PriorityLevelCo */ public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -402,6 +464,10 @@ public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _contin List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -454,11 +520,10 @@ public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _contin localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -469,18 +534,17 @@ public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _contin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -608,6 +672,19 @@ public okhttp3.Call deleteCollectionFlowSchemaAsync(String pretty, String _conti */ public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -615,6 +692,10 @@ public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -667,11 +748,10 @@ public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -682,18 +762,17 @@ public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -815,14 +894,31 @@ public okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(String prett */ public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -843,11 +939,10 @@ public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryR localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -858,23 +953,22 @@ public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryR "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteFlowSchemaValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteFlowSchema(Async)"); } - - okhttp3.Call localVarCall = deleteFlowSchemaCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteFlowSchemaCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -978,14 +1072,31 @@ public okhttp3.Call deleteFlowSchemaAsync(String name, String pretty, String dry */ public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1006,11 +1117,10 @@ public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1021,23 +1131,22 @@ public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pre "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deletePriorityLevelConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = deletePriorityLevelConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deletePriorityLevelConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1133,6 +1242,19 @@ public okhttp3.Call deletePriorityLevelConfigurationAsync(String name, String pr */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1143,8 +1265,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1152,21 +1277,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -1249,6 +1372,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1256,6 +1392,10 @@ public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmark List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1300,11 +1440,12 @@ public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmark localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1312,21 +1453,19 @@ public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmark } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listFlowSchemaValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1442,6 +1581,19 @@ public okhttp3.Call listFlowSchemaAsync(String pretty, Boolean allowWatchBookmar */ public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1449,6 +1601,10 @@ public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean al List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1493,11 +1649,12 @@ public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean al localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1505,21 +1662,19 @@ public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean al } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1632,14 +1787,31 @@ public okhttp3.Call listPriorityLevelConfigurationAsync(String pretty, Boolean a */ public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1660,11 +1832,10 @@ public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1675,15 +1846,16 @@ public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchFlowSchemaValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchema(Async)"); @@ -1694,9 +1866,7 @@ private okhttp3.Call patchFlowSchemaValidateBeforeCall(String name, V1Patch body throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchema(Async)"); } - - okhttp3.Call localVarCall = patchFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1800,14 +1970,31 @@ public okhttp3.Call patchFlowSchemaAsync(String name, V1Patch body, String prett */ public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1828,11 +2015,10 @@ public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1843,15 +2029,16 @@ public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchemaStatus(Async)"); @@ -1862,9 +2049,7 @@ private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patc throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchemaStatus(Async)"); } - - okhttp3.Call localVarCall = patchFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1968,14 +2153,31 @@ public okhttp3.Call patchFlowSchemaStatusAsync(String name, V1Patch body, String */ public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1996,11 +2198,10 @@ public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch bod localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2011,15 +2212,16 @@ public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch bod "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfiguration(Async)"); @@ -2030,9 +2232,7 @@ private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchPriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2136,14 +2336,31 @@ public okhttp3.Call patchPriorityLevelConfigurationAsync(String name, V1Patch bo */ public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2164,11 +2381,10 @@ public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Pat localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2179,15 +2395,16 @@ public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Pat "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfigurationStatus(Async)"); @@ -2198,9 +2415,7 @@ private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfigurationStatus(Async)"); } - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchPriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2298,23 +2513,39 @@ public okhttp3.Call patchPriorityLevelConfigurationStatusAsync(String name, V1Pa */ public okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2322,26 +2553,24 @@ public okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCall } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readFlowSchemaValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readFlowSchema(Async)"); } - - okhttp3.Call localVarCall = readFlowSchemaCall(name, pretty, _callback); - return localVarCall; + return readFlowSchemaCall(name, pretty, _callback); } @@ -2421,23 +2650,39 @@ public okhttp3.Call readFlowSchemaAsync(String name, String pretty, final ApiCal */ public okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2445,26 +2690,24 @@ public okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readFlowSchemaStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readFlowSchemaStatus(Async)"); } - - okhttp3.Call localVarCall = readFlowSchemaStatusCall(name, pretty, _callback); - return localVarCall; + return readFlowSchemaStatusCall(name, pretty, _callback); } @@ -2544,23 +2787,39 @@ public okhttp3.Call readFlowSchemaStatusAsync(String name, String pretty, final */ public okhttp3.Call readPriorityLevelConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2568,26 +2827,24 @@ public okhttp3.Call readPriorityLevelConfigurationCall(String name, String prett } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPriorityLevelConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = readPriorityLevelConfigurationCall(name, pretty, _callback); - return localVarCall; + return readPriorityLevelConfigurationCall(name, pretty, _callback); } @@ -2667,23 +2924,39 @@ public okhttp3.Call readPriorityLevelConfigurationAsync(String name, String pret */ public okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2691,26 +2964,24 @@ public okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPriorityLevelConfigurationStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfigurationStatus(Async)"); } - - okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusCall(name, pretty, _callback); - return localVarCall; + return readPriorityLevelConfigurationStatusCall(name, pretty, _callback); } @@ -2795,14 +3066,31 @@ public okhttp3.Call readPriorityLevelConfigurationStatusAsync(String name, Strin */ public okhttp3.Call replaceFlowSchemaCall(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2819,11 +3107,10 @@ public okhttp3.Call replaceFlowSchemaCall(String name, V1beta3FlowSchema body, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2834,15 +3121,16 @@ public okhttp3.Call replaceFlowSchemaCall(String name, V1beta3FlowSchema body, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchema(Async)"); @@ -2853,9 +3141,7 @@ private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1beta3Flo throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchema(Async)"); } - - okhttp3.Call localVarCall = replaceFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -2955,14 +3241,31 @@ public okhttp3.Call replaceFlowSchemaAsync(String name, V1beta3FlowSchema body, */ public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2979,11 +3282,10 @@ public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1beta3FlowSchema b localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2994,15 +3296,16 @@ public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1beta3FlowSchema b "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchemaStatus(Async)"); @@ -3013,9 +3316,7 @@ private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1be throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchemaStatus(Async)"); } - - okhttp3.Call localVarCall = replaceFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -3115,14 +3416,31 @@ public okhttp3.Call replaceFlowSchemaStatusAsync(String name, V1beta3FlowSchema */ public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3139,11 +3457,10 @@ public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1beta3Pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3154,15 +3471,16 @@ public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1beta3Pr "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfiguration(Async)"); @@ -3173,9 +3491,7 @@ private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfiguration(Async)"); } - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replacePriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -3275,14 +3591,31 @@ public okhttp3.Call replacePriorityLevelConfigurationAsync(String name, V1beta3P */ public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3299,11 +3632,10 @@ public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1b localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3314,15 +3646,16 @@ public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1b "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfigurationStatus(Async)"); @@ -3333,9 +3666,7 @@ private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfigurationStatus(Async)"); } - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replacePriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java index d9187f6f6c..8e7cd85de1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class InternalApiserverApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public InternalApiserverApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java index 00084c702d..6bcb992b72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class InternalApiserverV1alpha1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public InternalApiserverV1alpha1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createStorageVersion * @param body (required) @@ -78,6 +97,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createStorageVersionCall(V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -85,6 +117,10 @@ public okhttp3.Call createStorageVersionCall(V1alpha1StorageVersion body, String List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -101,11 +137,10 @@ public okhttp3.Call createStorageVersionCall(V1alpha1StorageVersion body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -116,23 +151,22 @@ public okhttp3.Call createStorageVersionCall(V1alpha1StorageVersion body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createStorageVersionValidateBeforeCall(V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createStorageVersion(Async)"); } - - okhttp3.Call localVarCall = createStorageVersionCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createStorageVersionCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -239,6 +273,19 @@ public okhttp3.Call createStorageVersionAsync(V1alpha1StorageVersion body, Strin */ public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -246,6 +293,10 @@ public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _co List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -298,11 +349,10 @@ public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _co localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -313,18 +363,17 @@ public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _co "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -446,14 +495,31 @@ public okhttp3.Call deleteCollectionStorageVersionAsync(String pretty, String _c */ public okhttp3.Call deleteStorageVersionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -474,11 +540,10 @@ public okhttp3.Call deleteStorageVersionCall(String name, String pretty, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -489,23 +554,22 @@ public okhttp3.Call deleteStorageVersionCall(String name, String pretty, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteStorageVersionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteStorageVersion(Async)"); } - - okhttp3.Call localVarCall = deleteStorageVersionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteStorageVersionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -601,6 +665,19 @@ public okhttp3.Call deleteStorageVersionAsync(String name, String pretty, String */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -611,8 +688,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,21 +700,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -717,6 +795,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listStorageVersionCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -724,6 +815,10 @@ public okhttp3.Call listStorageVersionCall(String pretty, Boolean allowWatchBook List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -768,11 +863,12 @@ public okhttp3.Call listStorageVersionCall(String pretty, Boolean allowWatchBook localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -780,21 +876,19 @@ public okhttp3.Call listStorageVersionCall(String pretty, Boolean allowWatchBook } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listStorageVersionValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listStorageVersionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listStorageVersionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -907,14 +1001,31 @@ public okhttp3.Call listStorageVersionAsync(String pretty, Boolean allowWatchBoo */ public okhttp3.Call patchStorageVersionCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -935,11 +1046,10 @@ public okhttp3.Call patchStorageVersionCall(String name, V1Patch body, String pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -950,15 +1060,16 @@ public okhttp3.Call patchStorageVersionCall(String name, V1Patch body, String pr "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchStorageVersionValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchStorageVersion(Async)"); @@ -969,9 +1080,7 @@ private okhttp3.Call patchStorageVersionValidateBeforeCall(String name, V1Patch throw new ApiException("Missing the required parameter 'body' when calling patchStorageVersion(Async)"); } - - okhttp3.Call localVarCall = patchStorageVersionCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchStorageVersionCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1075,14 +1184,31 @@ public okhttp3.Call patchStorageVersionAsync(String name, V1Patch body, String p */ public okhttp3.Call patchStorageVersionStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1103,11 +1229,10 @@ public okhttp3.Call patchStorageVersionStatusCall(String name, V1Patch body, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1118,15 +1243,16 @@ public okhttp3.Call patchStorageVersionStatusCall(String name, V1Patch body, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchStorageVersionStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchStorageVersionStatus(Async)"); @@ -1137,9 +1263,7 @@ private okhttp3.Call patchStorageVersionStatusValidateBeforeCall(String name, V1 throw new ApiException("Missing the required parameter 'body' when calling patchStorageVersionStatus(Async)"); } - - okhttp3.Call localVarCall = patchStorageVersionStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchStorageVersionStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1237,23 +1361,39 @@ public okhttp3.Call patchStorageVersionStatusAsync(String name, V1Patch body, St */ public okhttp3.Call readStorageVersionCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1261,26 +1401,24 @@ public okhttp3.Call readStorageVersionCall(String name, String pretty, final Api } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readStorageVersionValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageVersion(Async)"); } - - okhttp3.Call localVarCall = readStorageVersionCall(name, pretty, _callback); - return localVarCall; + return readStorageVersionCall(name, pretty, _callback); } @@ -1360,23 +1498,39 @@ public okhttp3.Call readStorageVersionAsync(String name, String pretty, final Ap */ public okhttp3.Call readStorageVersionStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1384,26 +1538,24 @@ public okhttp3.Call readStorageVersionStatusCall(String name, String pretty, fin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readStorageVersionStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageVersionStatus(Async)"); } - - okhttp3.Call localVarCall = readStorageVersionStatusCall(name, pretty, _callback); - return localVarCall; + return readStorageVersionStatusCall(name, pretty, _callback); } @@ -1488,14 +1640,31 @@ public okhttp3.Call readStorageVersionStatusAsync(String name, String pretty, fi */ public okhttp3.Call replaceStorageVersionCall(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1512,11 +1681,10 @@ public okhttp3.Call replaceStorageVersionCall(String name, V1alpha1StorageVersio localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1527,15 +1695,16 @@ public okhttp3.Call replaceStorageVersionCall(String name, V1alpha1StorageVersio "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceStorageVersionValidateBeforeCall(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersion(Async)"); @@ -1546,9 +1715,7 @@ private okhttp3.Call replaceStorageVersionValidateBeforeCall(String name, V1alph throw new ApiException("Missing the required parameter 'body' when calling replaceStorageVersion(Async)"); } - - okhttp3.Call localVarCall = replaceStorageVersionCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceStorageVersionCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -1648,14 +1815,31 @@ public okhttp3.Call replaceStorageVersionAsync(String name, V1alpha1StorageVersi */ public okhttp3.Call replaceStorageVersionStatusCall(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1672,11 +1856,10 @@ public okhttp3.Call replaceStorageVersionStatusCall(String name, V1alpha1Storage localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1687,15 +1870,16 @@ public okhttp3.Call replaceStorageVersionStatusCall(String name, V1alpha1Storage "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceStorageVersionStatusValidateBeforeCall(String name, V1alpha1StorageVersion body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersionStatus(Async)"); @@ -1706,9 +1890,7 @@ private okhttp3.Call replaceStorageVersionStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceStorageVersionStatus(Async)"); } - - okhttp3.Call localVarCall = replaceStorageVersionStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceStorageVersionStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java index 0a502ce4cb..cab8155e69 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java @@ -32,9 +32,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class LogsApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public LogsApi() { this(Configuration.getDefaultApiClient()); @@ -52,6 +55,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for logFileHandler * @param logpath path to the log (required) @@ -65,19 +84,32 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call logFileHandlerCall(String logpath, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/logs/{logpath}" - .replaceAll("\\{" + "logpath" + "\\}", localVarApiClient.escapeString(logpath.toString())); + .replace("{" + "logpath" + "}", localVarApiClient.escapeString(logpath.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { + final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,26 +117,24 @@ public okhttp3.Call logFileHandlerCall(String logpath, final ApiCallback _callba } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call logFileHandlerValidateBeforeCall(String logpath, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'logpath' is set if (logpath == null) { throw new ApiException("Missing the required parameter 'logpath' when calling logFileHandler(Async)"); } - - okhttp3.Call localVarCall = logFileHandlerCall(logpath, _callback); - return localVarCall; + return logFileHandlerCall(logpath, _callback); } @@ -171,6 +201,19 @@ public okhttp3.Call logFileHandlerAsync(String logpath, final ApiCallback */ public okhttp3.Call logFileListHandlerCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -181,8 +224,8 @@ public okhttp3.Call logFileListHandlerCall(final ApiCallback _callback) throws A Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { + final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -190,21 +233,19 @@ public okhttp3.Call logFileListHandlerCall(final ApiCallback _callback) throws A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call logFileListHandlerValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = logFileListHandlerCall(_callback); - return localVarCall; + return logFileListHandlerCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java index acb22f3bbb..ad9ac907dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class NetworkingApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public NetworkingApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java index da3a487bdd..bad6bdb577 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java @@ -42,9 +42,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class NetworkingV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public NetworkingV1Api() { this(Configuration.getDefaultApiClient()); @@ -62,6 +65,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createIngressClass * @param body (required) @@ -82,6 +101,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createIngressClassCall(V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -89,6 +121,10 @@ public okhttp3.Call createIngressClassCall(V1IngressClass body, String pretty, S List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -105,11 +141,10 @@ public okhttp3.Call createIngressClassCall(V1IngressClass body, String pretty, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -120,23 +155,22 @@ public okhttp3.Call createIngressClassCall(V1IngressClass body, String pretty, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createIngressClassValidateBeforeCall(V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createIngressClass(Async)"); } - - okhttp3.Call localVarCall = createIngressClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createIngressClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -237,14 +271,31 @@ public okhttp3.Call createIngressClassAsync(V1IngressClass body, String pretty, */ public okhttp3.Call createNamespacedIngressCall(String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -261,11 +312,10 @@ public okhttp3.Call createNamespacedIngressCall(String namespace, V1Ingress body localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -276,15 +326,16 @@ public okhttp3.Call createNamespacedIngressCall(String namespace, V1Ingress body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedIngressValidateBeforeCall(String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedIngress(Async)"); @@ -295,9 +346,7 @@ private okhttp3.Call createNamespacedIngressValidateBeforeCall(String namespace, throw new ApiException("Missing the required parameter 'body' when calling createNamespacedIngress(Async)"); } - - okhttp3.Call localVarCall = createNamespacedIngressCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedIngressCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -401,14 +450,31 @@ public okhttp3.Call createNamespacedIngressAsync(String namespace, V1Ingress bod */ public okhttp3.Call createNamespacedNetworkPolicyCall(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -425,11 +491,10 @@ public okhttp3.Call createNamespacedNetworkPolicyCall(String namespace, V1Networ localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -440,15 +505,16 @@ public okhttp3.Call createNamespacedNetworkPolicyCall(String namespace, V1Networ "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedNetworkPolicyValidateBeforeCall(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedNetworkPolicy(Async)"); @@ -459,9 +525,7 @@ private okhttp3.Call createNamespacedNetworkPolicyValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling createNamespacedNetworkPolicy(Async)"); } - - okhttp3.Call localVarCall = createNamespacedNetworkPolicyCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedNetworkPolicyCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -571,6 +635,19 @@ public okhttp3.Call createNamespacedNetworkPolicyAsync(String namespace, V1Netwo */ public okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -578,6 +655,10 @@ public okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _cont List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -630,11 +711,10 @@ public okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _cont localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -645,18 +725,17 @@ public okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _cont "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionIngressClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -785,14 +864,31 @@ public okhttp3.Call deleteCollectionIngressClassAsync(String pretty, String _con */ public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -845,11 +941,10 @@ public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -860,23 +955,22 @@ public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1008,14 +1102,31 @@ public okhttp3.Call deleteCollectionNamespacedIngressAsync(String namespace, Str */ public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1068,11 +1179,10 @@ public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1083,23 +1193,22 @@ public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1224,14 +1333,31 @@ public okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespac */ public okhttp3.Call deleteIngressClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1252,11 +1378,10 @@ public okhttp3.Call deleteIngressClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1267,23 +1392,22 @@ public okhttp3.Call deleteIngressClassCall(String name, String pretty, String dr "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteIngressClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteIngressClass(Async)"); } - - okhttp3.Call localVarCall = deleteIngressClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteIngressClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1388,15 +1512,32 @@ public okhttp3.Call deleteIngressClassAsync(String name, String pretty, String d */ public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1417,11 +1558,10 @@ public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1432,15 +1572,16 @@ public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedIngress(Async)"); @@ -1451,9 +1592,7 @@ private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(String name, Stri throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedIngress(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1561,15 +1700,32 @@ public okhttp3.Call deleteNamespacedIngressAsync(String name, String namespace, */ public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1590,11 +1746,10 @@ public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1605,15 +1760,16 @@ public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namesp "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedNetworkPolicy(Async)"); @@ -1624,9 +1780,7 @@ private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1725,6 +1879,19 @@ public okhttp3.Call deleteNamespacedNetworkPolicyAsync(String name, String names */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1735,8 +1902,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1744,21 +1914,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -1841,6 +2009,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1848,6 +2029,10 @@ public okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookma List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1892,11 +2077,12 @@ public okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookma localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1904,21 +2090,19 @@ public okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookma } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listIngressClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2034,6 +2218,19 @@ public okhttp3.Call listIngressClassAsync(String pretty, Boolean allowWatchBookm */ public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2041,6 +2238,10 @@ public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -2085,11 +2286,12 @@ public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2097,21 +2299,19 @@ public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2228,14 +2428,31 @@ public okhttp3.Call listIngressForAllNamespacesAsync(Boolean allowWatchBookmarks */ public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2280,11 +2497,12 @@ public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, B localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2292,26 +2510,24 @@ public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, B } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedIngressValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedIngress(Async)"); } - - okhttp3.Call localVarCall = listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2431,14 +2647,31 @@ public okhttp3.Call listNamespacedIngressAsync(String namespace, String pretty, */ public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2483,11 +2716,12 @@ public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2495,26 +2729,24 @@ public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pre } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy(Async)"); } - - okhttp3.Call localVarCall = listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2633,6 +2865,19 @@ public okhttp3.Call listNamespacedNetworkPolicyAsync(String namespace, String pr */ public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2640,6 +2885,10 @@ public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBook List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -2684,11 +2933,12 @@ public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBook localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2696,21 +2946,19 @@ public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBook } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2823,14 +3071,31 @@ public okhttp3.Call listNetworkPolicyForAllNamespacesAsync(Boolean allowWatchBoo */ public okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2851,11 +3116,10 @@ public okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2866,15 +3130,16 @@ public okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pret "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchIngressClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchIngressClass(Async)"); @@ -2885,9 +3150,7 @@ private okhttp3.Call patchIngressClassValidateBeforeCall(String name, V1Patch bo throw new ApiException("Missing the required parameter 'body' when calling patchIngressClass(Async)"); } - - okhttp3.Call localVarCall = patchIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -2992,15 +3255,32 @@ public okhttp3.Call patchIngressClassAsync(String name, V1Patch body, String pre */ public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3021,11 +3301,10 @@ public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V1 localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3036,15 +3315,16 @@ public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V1 "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedIngressValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngress(Async)"); @@ -3060,9 +3340,7 @@ private okhttp3.Call patchNamespacedIngressValidateBeforeCall(String name, Strin throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngress(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -3170,15 +3448,32 @@ public okhttp3.Call patchNamespacedIngressAsync(String name, String namespace, V */ public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3199,11 +3494,10 @@ public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3214,15 +3508,16 @@ public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngressStatus(Async)"); @@ -3238,9 +3533,7 @@ private okhttp3.Call patchNamespacedIngressStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngressStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -3348,15 +3641,32 @@ public okhttp3.Call patchNamespacedIngressStatusAsync(String name, String namesp */ public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3377,11 +3687,10 @@ public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3392,15 +3701,16 @@ public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedNetworkPolicy(Async)"); @@ -3416,9 +3726,7 @@ private okhttp3.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -3519,23 +3827,39 @@ public okhttp3.Call patchNamespacedNetworkPolicyAsync(String name, String namesp */ public okhttp3.Call readIngressClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3543,26 +3867,24 @@ public okhttp3.Call readIngressClassCall(String name, String pretty, final ApiCa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readIngressClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readIngressClass(Async)"); } - - okhttp3.Call localVarCall = readIngressClassCall(name, pretty, _callback); - return localVarCall; + return readIngressClassCall(name, pretty, _callback); } @@ -3643,24 +3965,40 @@ public okhttp3.Call readIngressClassAsync(String name, String pretty, final ApiC */ public okhttp3.Call readNamespacedIngressCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3668,18 +4006,18 @@ public okhttp3.Call readNamespacedIngressCall(String name, String namespace, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngress(Async)"); @@ -3690,9 +4028,7 @@ private okhttp3.Call readNamespacedIngressValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngress(Async)"); } - - okhttp3.Call localVarCall = readNamespacedIngressCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedIngressCall(name, namespace, pretty, _callback); } @@ -3776,24 +4112,40 @@ public okhttp3.Call readNamespacedIngressAsync(String name, String namespace, St */ public okhttp3.Call readNamespacedIngressStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3801,18 +4153,18 @@ public okhttp3.Call readNamespacedIngressStatusCall(String name, String namespac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedIngressStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngressStatus(Async)"); @@ -3823,9 +4175,7 @@ private okhttp3.Call readNamespacedIngressStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngressStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedIngressStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedIngressStatusCall(name, namespace, pretty, _callback); } @@ -3909,24 +4259,40 @@ public okhttp3.Call readNamespacedIngressStatusAsync(String name, String namespa */ public okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3934,18 +4300,18 @@ public okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedNetworkPolicy(Async)"); @@ -3956,9 +4322,7 @@ private okhttp3.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)"); } - - okhttp3.Call localVarCall = readNamespacedNetworkPolicyCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedNetworkPolicyCall(name, namespace, pretty, _callback); } @@ -4046,14 +4410,31 @@ public okhttp3.Call readNamespacedNetworkPolicyAsync(String name, String namespa */ public okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4070,11 +4451,10 @@ public okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4085,15 +4465,16 @@ public okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceIngressClassValidateBeforeCall(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceIngressClass(Async)"); @@ -4104,9 +4485,7 @@ private okhttp3.Call replaceIngressClassValidateBeforeCall(String name, V1Ingres throw new ApiException("Missing the required parameter 'body' when calling replaceIngressClass(Async)"); } - - okhttp3.Call localVarCall = replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -4207,15 +4586,32 @@ public okhttp3.Call replaceIngressClassAsync(String name, V1IngressClass body, S */ public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4232,11 +4628,10 @@ public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4247,15 +4642,16 @@ public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngress(Async)"); @@ -4271,9 +4667,7 @@ private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(String name, Str throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngress(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -4377,15 +4771,32 @@ public okhttp3.Call replaceNamespacedIngressAsync(String name, String namespace, */ public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4402,11 +4813,10 @@ public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4417,15 +4827,16 @@ public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngressStatus(Async)"); @@ -4441,9 +4852,7 @@ private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -4547,15 +4956,32 @@ public okhttp3.Call replaceNamespacedIngressStatusAsync(String name, String name */ public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4572,11 +4998,10 @@ public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4587,15 +5012,16 @@ public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedNetworkPolicy(Async)"); @@ -4611,9 +5037,7 @@ private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java index adaff83f03..ee15c454cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java @@ -40,9 +40,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class NetworkingV1alpha1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public NetworkingV1alpha1Api() { this(Configuration.getDefaultApiClient()); @@ -60,6 +63,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createClusterCIDR * @param body (required) @@ -80,6 +99,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createClusterCIDRCall(V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -87,6 +119,10 @@ public okhttp3.Call createClusterCIDRCall(V1alpha1ClusterCIDR body, String prett List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createClusterCIDRCall(V1alpha1ClusterCIDR body, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,23 +153,22 @@ public okhttp3.Call createClusterCIDRCall(V1alpha1ClusterCIDR body, String prett "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createClusterCIDRValidateBeforeCall(V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterCIDR(Async)"); } - - okhttp3.Call localVarCall = createClusterCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createClusterCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -234,6 +268,19 @@ public okhttp3.Call createClusterCIDRAsync(V1alpha1ClusterCIDR body, String pret */ public okhttp3.Call createIPAddressCall(V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -241,6 +288,10 @@ public okhttp3.Call createIPAddressCall(V1alpha1IPAddress body, String pretty, S List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -257,11 +308,10 @@ public okhttp3.Call createIPAddressCall(V1alpha1IPAddress body, String pretty, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -272,23 +322,22 @@ public okhttp3.Call createIPAddressCall(V1alpha1IPAddress body, String pretty, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createIPAddressValidateBeforeCall(V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createIPAddress(Async)"); } - - okhttp3.Call localVarCall = createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -389,14 +438,31 @@ public okhttp3.Call createIPAddressAsync(V1alpha1IPAddress body, String pretty, */ public okhttp3.Call deleteClusterCIDRCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -417,11 +483,10 @@ public okhttp3.Call deleteClusterCIDRCall(String name, String pretty, String dry localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -432,23 +497,22 @@ public okhttp3.Call deleteClusterCIDRCall(String name, String pretty, String dry "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteClusterCIDRValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterCIDR(Async)"); } - - okhttp3.Call localVarCall = deleteClusterCIDRCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteClusterCIDRCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -558,6 +622,19 @@ public okhttp3.Call deleteClusterCIDRAsync(String name, String pretty, String dr */ public okhttp3.Call deleteCollectionClusterCIDRCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -565,6 +642,10 @@ public okhttp3.Call deleteCollectionClusterCIDRCall(String pretty, String _conti List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -617,11 +698,10 @@ public okhttp3.Call deleteCollectionClusterCIDRCall(String pretty, String _conti localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -632,18 +712,17 @@ public okhttp3.Call deleteCollectionClusterCIDRCall(String pretty, String _conti "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionClusterCIDRValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionClusterCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionClusterCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -771,6 +850,19 @@ public okhttp3.Call deleteCollectionClusterCIDRAsync(String pretty, String _cont */ public okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -778,6 +870,10 @@ public okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _continu List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -830,11 +926,10 @@ public okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _continu localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -845,18 +940,17 @@ public okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _continu "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -978,14 +1072,31 @@ public okhttp3.Call deleteCollectionIPAddressAsync(String pretty, String _contin */ public okhttp3.Call deleteIPAddressCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1006,11 +1117,10 @@ public okhttp3.Call deleteIPAddressCall(String name, String pretty, String dryRu localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1021,23 +1131,22 @@ public okhttp3.Call deleteIPAddressCall(String name, String pretty, String dryRu "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteIPAddressValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteIPAddress(Async)"); } - - okhttp3.Call localVarCall = deleteIPAddressCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteIPAddressCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1133,6 +1242,19 @@ public okhttp3.Call deleteIPAddressAsync(String name, String pretty, String dryR */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1143,8 +1265,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1152,21 +1277,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -1249,6 +1372,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listClusterCIDRCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1256,6 +1392,10 @@ public okhttp3.Call listClusterCIDRCall(String pretty, Boolean allowWatchBookmar List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1300,11 +1440,12 @@ public okhttp3.Call listClusterCIDRCall(String pretty, Boolean allowWatchBookmar localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1312,21 +1453,19 @@ public okhttp3.Call listClusterCIDRCall(String pretty, Boolean allowWatchBookmar } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listClusterCIDRValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listClusterCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listClusterCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1442,6 +1581,19 @@ public okhttp3.Call listClusterCIDRAsync(String pretty, Boolean allowWatchBookma */ public okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -1449,6 +1601,10 @@ public okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmarks List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1493,11 +1649,12 @@ public okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmarks localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1505,21 +1662,19 @@ public okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmarks } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listIPAddressValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1632,14 +1787,31 @@ public okhttp3.Call listIPAddressAsync(String pretty, Boolean allowWatchBookmark */ public okhttp3.Call patchClusterCIDRCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1660,11 +1832,10 @@ public okhttp3.Call patchClusterCIDRCall(String name, V1Patch body, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1675,15 +1846,16 @@ public okhttp3.Call patchClusterCIDRCall(String name, V1Patch body, String prett "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchClusterCIDRValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchClusterCIDR(Async)"); @@ -1694,9 +1866,7 @@ private okhttp3.Call patchClusterCIDRValidateBeforeCall(String name, V1Patch bod throw new ApiException("Missing the required parameter 'body' when calling patchClusterCIDR(Async)"); } - - okhttp3.Call localVarCall = patchClusterCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchClusterCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1800,14 +1970,31 @@ public okhttp3.Call patchClusterCIDRAsync(String name, V1Patch body, String pret */ public okhttp3.Call patchIPAddressCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1828,11 +2015,10 @@ public okhttp3.Call patchIPAddressCall(String name, V1Patch body, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1843,15 +2029,16 @@ public okhttp3.Call patchIPAddressCall(String name, V1Patch body, String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchIPAddressValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchIPAddress(Async)"); @@ -1862,9 +2049,7 @@ private okhttp3.Call patchIPAddressValidateBeforeCall(String name, V1Patch body, throw new ApiException("Missing the required parameter 'body' when calling patchIPAddress(Async)"); } - - okhttp3.Call localVarCall = patchIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1962,23 +2147,39 @@ public okhttp3.Call patchIPAddressAsync(String name, V1Patch body, String pretty */ public okhttp3.Call readClusterCIDRCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1986,26 +2187,24 @@ public okhttp3.Call readClusterCIDRCall(String name, String pretty, final ApiCal } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readClusterCIDRValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterCIDR(Async)"); } - - okhttp3.Call localVarCall = readClusterCIDRCall(name, pretty, _callback); - return localVarCall; + return readClusterCIDRCall(name, pretty, _callback); } @@ -2085,23 +2284,39 @@ public okhttp3.Call readClusterCIDRAsync(String name, String pretty, final ApiCa */ public okhttp3.Call readIPAddressCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2109,26 +2324,24 @@ public okhttp3.Call readIPAddressCall(String name, String pretty, final ApiCallb } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readIPAddressValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readIPAddress(Async)"); } - - okhttp3.Call localVarCall = readIPAddressCall(name, pretty, _callback); - return localVarCall; + return readIPAddressCall(name, pretty, _callback); } @@ -2213,14 +2426,31 @@ public okhttp3.Call readIPAddressAsync(String name, String pretty, final ApiCall */ public okhttp3.Call replaceClusterCIDRCall(String name, V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2237,11 +2467,10 @@ public okhttp3.Call replaceClusterCIDRCall(String name, V1alpha1ClusterCIDR body localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2252,15 +2481,16 @@ public okhttp3.Call replaceClusterCIDRCall(String name, V1alpha1ClusterCIDR body "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceClusterCIDRValidateBeforeCall(String name, V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceClusterCIDR(Async)"); @@ -2271,9 +2501,7 @@ private okhttp3.Call replaceClusterCIDRValidateBeforeCall(String name, V1alpha1C throw new ApiException("Missing the required parameter 'body' when calling replaceClusterCIDR(Async)"); } - - okhttp3.Call localVarCall = replaceClusterCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceClusterCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -2373,14 +2601,31 @@ public okhttp3.Call replaceClusterCIDRAsync(String name, V1alpha1ClusterCIDR bod */ public okhttp3.Call replaceIPAddressCall(String name, V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2397,11 +2642,10 @@ public okhttp3.Call replaceIPAddressCall(String name, V1alpha1IPAddress body, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2412,15 +2656,16 @@ public okhttp3.Call replaceIPAddressCall(String name, V1alpha1IPAddress body, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceIPAddressValidateBeforeCall(String name, V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceIPAddress(Async)"); @@ -2431,9 +2676,7 @@ private okhttp3.Call replaceIPAddressValidateBeforeCall(String name, V1alpha1IPA throw new ApiException("Missing the required parameter 'body' when calling replaceIPAddress(Async)"); } - - okhttp3.Call localVarCall = replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java index 4c5c8c8388..cda8df642c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class NodeApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public NodeApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java index 2290e84bd6..8ee1083212 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class NodeV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public NodeV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createRuntimeClass * @param body (required) @@ -78,6 +97,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createRuntimeClassCall(V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -85,6 +117,10 @@ public okhttp3.Call createRuntimeClassCall(V1RuntimeClass body, String pretty, S List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -101,11 +137,10 @@ public okhttp3.Call createRuntimeClassCall(V1RuntimeClass body, String pretty, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -116,23 +151,22 @@ public okhttp3.Call createRuntimeClassCall(V1RuntimeClass body, String pretty, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createRuntimeClassValidateBeforeCall(V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createRuntimeClass(Async)"); } - - okhttp3.Call localVarCall = createRuntimeClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createRuntimeClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -239,6 +273,19 @@ public okhttp3.Call createRuntimeClassAsync(V1RuntimeClass body, String pretty, */ public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -246,6 +293,10 @@ public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _cont List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -298,11 +349,10 @@ public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _cont localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -313,18 +363,17 @@ public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _cont "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -446,14 +495,31 @@ public okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, String _con */ public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/node.k8s.io/v1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -474,11 +540,10 @@ public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -489,23 +554,22 @@ public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dr "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteRuntimeClass(Async)"); } - - okhttp3.Call localVarCall = deleteRuntimeClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteRuntimeClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -601,6 +665,19 @@ public okhttp3.Call deleteRuntimeClassAsync(String name, String pretty, String d */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -611,8 +688,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,21 +700,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -717,6 +795,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -724,6 +815,10 @@ public okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookma List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -768,11 +863,12 @@ public okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookma localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -780,21 +876,19 @@ public okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookma } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listRuntimeClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -907,14 +1001,31 @@ public okhttp3.Call listRuntimeClassAsync(String pretty, Boolean allowWatchBookm */ public okhttp3.Call patchRuntimeClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/node.k8s.io/v1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -935,11 +1046,10 @@ public okhttp3.Call patchRuntimeClassCall(String name, V1Patch body, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -950,15 +1060,16 @@ public okhttp3.Call patchRuntimeClassCall(String name, V1Patch body, String pret "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchRuntimeClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchRuntimeClass(Async)"); @@ -969,9 +1080,7 @@ private okhttp3.Call patchRuntimeClassValidateBeforeCall(String name, V1Patch bo throw new ApiException("Missing the required parameter 'body' when calling patchRuntimeClass(Async)"); } - - okhttp3.Call localVarCall = patchRuntimeClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchRuntimeClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1069,23 +1178,39 @@ public okhttp3.Call patchRuntimeClassAsync(String name, V1Patch body, String pre */ public okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/node.k8s.io/v1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1093,26 +1218,24 @@ public okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiCa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readRuntimeClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readRuntimeClass(Async)"); } - - okhttp3.Call localVarCall = readRuntimeClassCall(name, pretty, _callback); - return localVarCall; + return readRuntimeClassCall(name, pretty, _callback); } @@ -1197,14 +1320,31 @@ public okhttp3.Call readRuntimeClassAsync(String name, String pretty, final ApiC */ public okhttp3.Call replaceRuntimeClassCall(String name, V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/node.k8s.io/v1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1221,11 +1361,10 @@ public okhttp3.Call replaceRuntimeClassCall(String name, V1RuntimeClass body, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1236,15 +1375,16 @@ public okhttp3.Call replaceRuntimeClassCall(String name, V1RuntimeClass body, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceRuntimeClassValidateBeforeCall(String name, V1RuntimeClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceRuntimeClass(Async)"); @@ -1255,9 +1395,7 @@ private okhttp3.Call replaceRuntimeClassValidateBeforeCall(String name, V1Runtim throw new ApiException("Missing the required parameter 'body' when calling replaceRuntimeClass(Async)"); } - - okhttp3.Call localVarCall = replaceRuntimeClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceRuntimeClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java index 0a35dea6e3..77eebfc989 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java @@ -32,9 +32,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class OpenidApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public OpenidApi() { this(Configuration.getDefaultApiClient()); @@ -52,6 +55,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getServiceAccountIssuerOpenIDKeyset * @param _callback Callback for upload/download progress @@ -65,6 +84,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getServiceAccountIssuerOpenIDKeysetCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -75,6 +107,7 @@ public okhttp3.Call getServiceAccountIssuerOpenIDKeysetCall(final ApiCallback _c Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { "application/jwk-set+json" }; @@ -84,21 +117,19 @@ public okhttp3.Call getServiceAccountIssuerOpenIDKeysetCall(final ApiCallback _c } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getServiceAccountIssuerOpenIDKeysetValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getServiceAccountIssuerOpenIDKeysetCall(_callback); - return localVarCall; + return getServiceAccountIssuerOpenIDKeysetCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java index 64a92608fc..71e6531eff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class PolicyApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public PolicyApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java index 3e2c1ab33d..b852549306 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class PolicyV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public PolicyV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedPodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) @@ -79,14 +98,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedPodDisruptionBudgetCall(String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -103,11 +139,10 @@ public okhttp3.Call createNamespacedPodDisruptionBudgetCall(String namespace, V1 localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -118,15 +153,16 @@ public okhttp3.Call createNamespacedPodDisruptionBudgetCall(String namespace, V1 "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodDisruptionBudget(Async)"); @@ -137,9 +173,7 @@ private okhttp3.Call createNamespacedPodDisruptionBudgetValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodDisruptionBudget(Async)"); } - - okhttp3.Call localVarCall = createNamespacedPodDisruptionBudgetCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedPodDisruptionBudgetCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -250,14 +284,31 @@ public okhttp3.Call createNamespacedPodDisruptionBudgetAsync(String namespace, V */ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -310,11 +361,10 @@ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String nam localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -325,23 +375,22 @@ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String nam "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodDisruptionBudget(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -467,15 +516,32 @@ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String na */ public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -496,11 +562,10 @@ public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -511,15 +576,16 @@ public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPodDisruptionBudget(Async)"); @@ -530,9 +596,7 @@ private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodDisruptionBudget(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedPodDisruptionBudgetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -631,6 +695,19 @@ public okhttp3.Call deleteNamespacedPodDisruptionBudgetAsync(String name, String */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -641,8 +718,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -650,21 +730,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -748,14 +826,31 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listNamespacedPodDisruptionBudgetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -800,11 +895,12 @@ public okhttp3.Call listNamespacedPodDisruptionBudgetCall(String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -812,26 +908,24 @@ public okhttp3.Call listNamespacedPodDisruptionBudgetCall(String namespace, Stri } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodDisruptionBudget(Async)"); } - - okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedPodDisruptionBudgetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -950,6 +1044,19 @@ public okhttp3.Call listNamespacedPodDisruptionBudgetAsync(String namespace, Str */ public okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -957,6 +1064,10 @@ public okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(Boolean allowWat List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -1001,11 +1112,12 @@ public okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(Boolean allowWat localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1013,21 +1125,19 @@ public okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(Boolean allowWat } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPodDisruptionBudgetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -1141,15 +1251,32 @@ public okhttp3.Call listPodDisruptionBudgetForAllNamespacesAsync(Boolean allowWa */ public okhttp3.Call patchNamespacedPodDisruptionBudgetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1170,11 +1297,10 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetCall(String name, String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1185,15 +1311,16 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetCall(String name, String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodDisruptionBudget(Async)"); @@ -1209,9 +1336,7 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodDisruptionBudget(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPodDisruptionBudgetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1319,15 +1444,32 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetAsync(String name, String */ public okhttp3.Call patchNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1348,11 +1490,10 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetStatusCall(String name, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1363,15 +1504,16 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetStatusCall(String name, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodDisruptionBudgetStatus(Async)"); @@ -1387,9 +1529,7 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodDisruptionBudgetStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPodDisruptionBudgetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1491,24 +1631,40 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetStatusAsync(String name, S */ public okhttp3.Call readNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1516,18 +1672,18 @@ public okhttp3.Call readNamespacedPodDisruptionBudgetCall(String name, String na } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodDisruptionBudget(Async)"); @@ -1538,9 +1694,7 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodDisruptionBudget(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPodDisruptionBudgetCall(name, namespace, pretty, _callback); } @@ -1624,24 +1778,40 @@ public okhttp3.Call readNamespacedPodDisruptionBudgetAsync(String name, String n */ public okhttp3.Call readNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1649,18 +1819,18 @@ public okhttp3.Call readNamespacedPodDisruptionBudgetStatusCall(String name, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodDisruptionBudgetStatus(Async)"); @@ -1671,9 +1841,7 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodDisruptionBudgetStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPodDisruptionBudgetStatusCall(name, namespace, pretty, _callback); } @@ -1762,15 +1930,32 @@ public okhttp3.Call readNamespacedPodDisruptionBudgetStatusAsync(String name, St */ public okhttp3.Call replaceNamespacedPodDisruptionBudgetCall(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1787,11 +1972,10 @@ public okhttp3.Call replaceNamespacedPodDisruptionBudgetCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1802,15 +1986,16 @@ public okhttp3.Call replaceNamespacedPodDisruptionBudgetCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodDisruptionBudget(Async)"); @@ -1826,9 +2011,7 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodDisruptionBudget(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPodDisruptionBudgetCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -1932,15 +2115,32 @@ public okhttp3.Call replaceNamespacedPodDisruptionBudgetAsync(String name, Strin */ public okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1957,11 +2157,10 @@ public okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusCall(String name, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1972,15 +2171,16 @@ public okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusCall(String name, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, V1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodDisruptionBudgetStatus(Async)"); @@ -1996,9 +2196,7 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodDisruptionBudgetStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPodDisruptionBudgetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java index 3e70d4a5aa..00445d3b5b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class RbacAuthorizationApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public RbacAuthorizationApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java index 833515101c..19ce2e31b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java @@ -44,9 +44,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class RbacAuthorizationV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public RbacAuthorizationV1Api() { this(Configuration.getDefaultApiClient()); @@ -64,6 +67,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createClusterRole * @param body (required) @@ -84,6 +103,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createClusterRoleCall(V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -91,6 +123,10 @@ public okhttp3.Call createClusterRoleCall(V1ClusterRole body, String pretty, Str List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -107,11 +143,10 @@ public okhttp3.Call createClusterRoleCall(V1ClusterRole body, String pretty, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -122,23 +157,22 @@ public okhttp3.Call createClusterRoleCall(V1ClusterRole body, String pretty, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createClusterRoleValidateBeforeCall(V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRole(Async)"); } - - okhttp3.Call localVarCall = createClusterRoleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createClusterRoleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -238,6 +272,19 @@ public okhttp3.Call createClusterRoleAsync(V1ClusterRole body, String pretty, St */ public okhttp3.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -245,6 +292,10 @@ public okhttp3.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, Stri List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -261,11 +312,10 @@ public okhttp3.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -276,23 +326,22 @@ public okhttp3.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createClusterRoleBindingValidateBeforeCall(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRoleBinding(Async)"); } - - okhttp3.Call localVarCall = createClusterRoleBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createClusterRoleBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -393,14 +442,31 @@ public okhttp3.Call createClusterRoleBindingAsync(V1ClusterRoleBinding body, Str */ public okhttp3.Call createNamespacedRoleCall(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -417,11 +483,10 @@ public okhttp3.Call createNamespacedRoleCall(String namespace, V1Role body, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -432,15 +497,16 @@ public okhttp3.Call createNamespacedRoleCall(String namespace, V1Role body, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedRoleValidateBeforeCall(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedRole(Async)"); @@ -451,9 +517,7 @@ private okhttp3.Call createNamespacedRoleValidateBeforeCall(String namespace, V1 throw new ApiException("Missing the required parameter 'body' when calling createNamespacedRole(Async)"); } - - okhttp3.Call localVarCall = createNamespacedRoleCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedRoleCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -557,14 +621,31 @@ public okhttp3.Call createNamespacedRoleAsync(String namespace, V1Role body, Str */ public okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -581,11 +662,10 @@ public okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1RoleBind localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -596,15 +676,16 @@ public okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1RoleBind "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedRoleBinding(Async)"); @@ -615,9 +696,7 @@ private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(String namesp throw new ApiException("Missing the required parameter 'body' when calling createNamespacedRoleBinding(Async)"); } - - okhttp3.Call localVarCall = createNamespacedRoleBindingCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedRoleBindingCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -721,14 +800,31 @@ public okhttp3.Call createNamespacedRoleBindingAsync(String namespace, V1RoleBin */ public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -749,11 +845,10 @@ public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dry localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -764,23 +859,22 @@ public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dry "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRole(Async)"); } - - okhttp3.Call localVarCall = deleteClusterRoleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteClusterRoleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -884,14 +978,31 @@ public okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dr */ public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -912,11 +1023,10 @@ public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -927,23 +1037,22 @@ public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, Str "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRoleBinding(Async)"); } - - okhttp3.Call localVarCall = deleteClusterRoleBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteClusterRoleBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1053,6 +1162,19 @@ public okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, St */ public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -1060,6 +1182,10 @@ public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _conti List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1112,11 +1238,10 @@ public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _conti localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1127,18 +1252,17 @@ public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _conti "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1266,6 +1390,19 @@ public okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, String _cont */ public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -1273,6 +1410,10 @@ public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1325,11 +1466,10 @@ public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1340,18 +1480,17 @@ public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1480,14 +1619,31 @@ public okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, Strin */ public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1540,11 +1696,10 @@ public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1555,23 +1710,22 @@ public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRole(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1703,14 +1857,31 @@ public okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String */ public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1763,11 +1934,10 @@ public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1778,23 +1948,22 @@ public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRoleBinding(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1920,15 +2089,32 @@ public okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, */ public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1949,11 +2135,10 @@ public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1964,15 +2149,16 @@ public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedRole(Async)"); @@ -1983,9 +2169,7 @@ private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRole(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedRoleCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedRoleCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2093,15 +2277,32 @@ public okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, Str */ public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2122,11 +2323,10 @@ public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2137,15 +2337,16 @@ public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedRoleBinding(Async)"); @@ -2156,9 +2357,7 @@ private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedRoleBindingCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedRoleBindingCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2257,6 +2456,19 @@ public okhttp3.Call deleteNamespacedRoleBindingAsync(String name, String namespa */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2267,8 +2479,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2276,21 +2491,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -2373,6 +2586,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2380,6 +2606,10 @@ public okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmar List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2424,11 +2654,12 @@ public okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmar localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2436,21 +2667,19 @@ public okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmar } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listClusterRoleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2566,6 +2795,19 @@ public okhttp3.Call listClusterRoleAsync(String pretty, Boolean allowWatchBookma */ public okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2573,6 +2815,10 @@ public okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatch List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2617,11 +2863,12 @@ public okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatch localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2629,21 +2876,19 @@ public okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatch } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listClusterRoleBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2760,14 +3005,31 @@ public okhttp3.Call listClusterRoleBindingAsync(String pretty, Boolean allowWatc */ public okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2812,11 +3074,12 @@ public okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Bool localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2824,26 +3087,24 @@ public okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Bool } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedRoleValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRole(Async)"); } - - okhttp3.Call localVarCall = listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2963,14 +3224,31 @@ public okhttp3.Call listNamespacedRoleAsync(String namespace, String pretty, Boo */ public okhttp3.Call listNamespacedRoleBindingCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3015,11 +3293,12 @@ public okhttp3.Call listNamespacedRoleBindingCall(String namespace, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3027,26 +3306,24 @@ public okhttp3.Call listNamespacedRoleBindingCall(String namespace, String prett } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRoleBinding(Async)"); } - - okhttp3.Call localVarCall = listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3165,6 +3442,19 @@ public okhttp3.Call listNamespacedRoleBindingAsync(String namespace, String pret */ public okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3172,6 +3462,10 @@ public okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookma List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3216,11 +3510,12 @@ public okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookma localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3228,21 +3523,19 @@ public okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookma } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3358,6 +3651,19 @@ public okhttp3.Call listRoleBindingForAllNamespacesAsync(Boolean allowWatchBookm */ public okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3365,6 +3671,10 @@ public okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, St List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3409,11 +3719,12 @@ public okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3421,21 +3732,19 @@ public okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3548,14 +3857,31 @@ public okhttp3.Call listRoleForAllNamespacesAsync(Boolean allowWatchBookmarks, S */ public okhttp3.Call patchClusterRoleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3576,11 +3902,10 @@ public okhttp3.Call patchClusterRoleCall(String name, V1Patch body, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3591,15 +3916,16 @@ public okhttp3.Call patchClusterRoleCall(String name, V1Patch body, String prett "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchClusterRoleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchClusterRole(Async)"); @@ -3610,9 +3936,7 @@ private okhttp3.Call patchClusterRoleValidateBeforeCall(String name, V1Patch bod throw new ApiException("Missing the required parameter 'body' when calling patchClusterRole(Async)"); } - - okhttp3.Call localVarCall = patchClusterRoleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchClusterRoleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -3716,14 +4040,31 @@ public okhttp3.Call patchClusterRoleAsync(String name, V1Patch body, String pret */ public okhttp3.Call patchClusterRoleBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3744,11 +4085,10 @@ public okhttp3.Call patchClusterRoleBindingCall(String name, V1Patch body, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3759,15 +4099,16 @@ public okhttp3.Call patchClusterRoleBindingCall(String name, V1Patch body, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchClusterRoleBinding(Async)"); @@ -3778,9 +4119,7 @@ private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(String name, V1Pa throw new ApiException("Missing the required parameter 'body' when calling patchClusterRoleBinding(Async)"); } - - okhttp3.Call localVarCall = patchClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -3885,15 +4224,32 @@ public okhttp3.Call patchClusterRoleBindingAsync(String name, V1Patch body, Stri */ public okhttp3.Call patchNamespacedRoleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3914,11 +4270,10 @@ public okhttp3.Call patchNamespacedRoleCall(String name, String namespace, V1Pat localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3929,15 +4284,16 @@ public okhttp3.Call patchNamespacedRoleCall(String name, String namespace, V1Pat "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedRoleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedRole(Async)"); @@ -3953,9 +4309,7 @@ private okhttp3.Call patchNamespacedRoleValidateBeforeCall(String name, String n throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedRole(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4063,15 +4417,32 @@ public okhttp3.Call patchNamespacedRoleAsync(String name, String namespace, V1Pa */ public okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4092,11 +4463,10 @@ public okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4107,15 +4477,16 @@ public okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedRoleBinding(Async)"); @@ -4131,9 +4502,7 @@ private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedRoleBinding(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4234,23 +4603,39 @@ public okhttp3.Call patchNamespacedRoleBindingAsync(String name, String namespac */ public okhttp3.Call readClusterRoleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4258,26 +4643,24 @@ public okhttp3.Call readClusterRoleCall(String name, String pretty, final ApiCal } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readClusterRoleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRole(Async)"); } - - okhttp3.Call localVarCall = readClusterRoleCall(name, pretty, _callback); - return localVarCall; + return readClusterRoleCall(name, pretty, _callback); } @@ -4357,23 +4740,39 @@ public okhttp3.Call readClusterRoleAsync(String name, String pretty, final ApiCa */ public okhttp3.Call readClusterRoleBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4381,26 +4780,24 @@ public okhttp3.Call readClusterRoleBindingCall(String name, String pretty, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readClusterRoleBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRoleBinding(Async)"); } - - okhttp3.Call localVarCall = readClusterRoleBindingCall(name, pretty, _callback); - return localVarCall; + return readClusterRoleBindingCall(name, pretty, _callback); } @@ -4481,24 +4878,40 @@ public okhttp3.Call readClusterRoleBindingAsync(String name, String pretty, fina */ public okhttp3.Call readNamespacedRoleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4506,18 +4919,18 @@ public okhttp3.Call readNamespacedRoleCall(String name, String namespace, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedRole(Async)"); @@ -4528,9 +4941,7 @@ private okhttp3.Call readNamespacedRoleValidateBeforeCall(String name, String na throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedRole(Async)"); } - - okhttp3.Call localVarCall = readNamespacedRoleCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedRoleCall(name, namespace, pretty, _callback); } @@ -4614,24 +5025,40 @@ public okhttp3.Call readNamespacedRoleAsync(String name, String namespace, Strin */ public okhttp3.Call readNamespacedRoleBindingCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4639,18 +5066,18 @@ public okhttp3.Call readNamespacedRoleBindingCall(String name, String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedRoleBinding(Async)"); @@ -4661,9 +5088,7 @@ private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedRoleBinding(Async)"); } - - okhttp3.Call localVarCall = readNamespacedRoleBindingCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedRoleBindingCall(name, namespace, pretty, _callback); } @@ -4751,14 +5176,31 @@ public okhttp3.Call readNamespacedRoleBindingAsync(String name, String namespace */ public okhttp3.Call replaceClusterRoleCall(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4775,11 +5217,10 @@ public okhttp3.Call replaceClusterRoleCall(String name, V1ClusterRole body, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4790,15 +5231,16 @@ public okhttp3.Call replaceClusterRoleCall(String name, V1ClusterRole body, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceClusterRoleValidateBeforeCall(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceClusterRole(Async)"); @@ -4809,9 +5251,7 @@ private okhttp3.Call replaceClusterRoleValidateBeforeCall(String name, V1Cluster throw new ApiException("Missing the required parameter 'body' when calling replaceClusterRole(Async)"); } - - okhttp3.Call localVarCall = replaceClusterRoleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceClusterRoleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -4911,14 +5351,31 @@ public okhttp3.Call replaceClusterRoleAsync(String name, V1ClusterRole body, Str */ public okhttp3.Call replaceClusterRoleBindingCall(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4935,11 +5392,10 @@ public okhttp3.Call replaceClusterRoleBindingCall(String name, V1ClusterRoleBind localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4950,15 +5406,16 @@ public okhttp3.Call replaceClusterRoleBindingCall(String name, V1ClusterRoleBind "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceClusterRoleBinding(Async)"); @@ -4969,9 +5426,7 @@ private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1 throw new ApiException("Missing the required parameter 'body' when calling replaceClusterRoleBinding(Async)"); } - - okhttp3.Call localVarCall = replaceClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -5072,15 +5527,32 @@ public okhttp3.Call replaceClusterRoleBindingAsync(String name, V1ClusterRoleBin */ public okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5097,11 +5569,10 @@ public okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1R localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5112,15 +5583,16 @@ public okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1R "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedRole(Async)"); @@ -5136,9 +5608,7 @@ private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(String name, String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedRole(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -5242,15 +5712,32 @@ public okhttp3.Call replaceNamespacedRoleAsync(String name, String namespace, V1 */ public okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5267,11 +5754,10 @@ public okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5282,15 +5768,16 @@ public okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedRoleBinding(Async)"); @@ -5306,9 +5793,7 @@ private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedRoleBinding(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java index 54f0c3f610..a8aa43ae83 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class ResourceApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public ResourceApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha2Api.java index 1323f9c543..c7c00b805b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha2Api.java @@ -44,9 +44,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class ResourceV1alpha2Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public ResourceV1alpha2Api() { this(Configuration.getDefaultApiClient()); @@ -64,6 +67,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createNamespacedPodSchedulingContext * @param namespace object name and auth scope, such as for teams and projects (required) @@ -85,14 +104,31 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createNamespacedPodSchedulingContextCall(String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -109,11 +145,10 @@ public okhttp3.Call createNamespacedPodSchedulingContextCall(String namespace, V localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -124,15 +159,16 @@ public okhttp3.Call createNamespacedPodSchedulingContextCall(String namespace, V "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedPodSchedulingContextValidateBeforeCall(String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodSchedulingContext(Async)"); @@ -143,9 +179,7 @@ private okhttp3.Call createNamespacedPodSchedulingContextValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodSchedulingContext(Async)"); } - - okhttp3.Call localVarCall = createNamespacedPodSchedulingContextCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedPodSchedulingContextCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -249,14 +283,31 @@ public okhttp3.Call createNamespacedPodSchedulingContextAsync(String namespace, */ public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -273,11 +324,10 @@ public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha2 localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -288,15 +338,16 @@ public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha2 "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); @@ -307,9 +358,7 @@ private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); } - - okhttp3.Call localVarCall = createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -413,14 +462,31 @@ public okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1alpha */ public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -437,11 +503,10 @@ public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -452,15 +517,16 @@ public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); @@ -471,9 +537,7 @@ private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaimTemplate(Async)"); } - - okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -576,6 +640,19 @@ public okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, */ public okhttp3.Call createResourceClassCall(V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -583,6 +660,10 @@ public okhttp3.Call createResourceClassCall(V1alpha2ResourceClass body, String p List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -599,11 +680,10 @@ public okhttp3.Call createResourceClassCall(V1alpha2ResourceClass body, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -614,23 +694,22 @@ public okhttp3.Call createResourceClassCall(V1alpha2ResourceClass body, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createResourceClassValidateBeforeCall(V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createResourceClass(Async)"); } - - okhttp3.Call localVarCall = createResourceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createResourceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -738,14 +817,31 @@ public okhttp3.Call createResourceClassAsync(V1alpha2ResourceClass body, String */ public okhttp3.Call deleteCollectionNamespacedPodSchedulingContextCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -798,11 +894,10 @@ public okhttp3.Call deleteCollectionNamespacedPodSchedulingContextCall(String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -813,23 +908,22 @@ public okhttp3.Call deleteCollectionNamespacedPodSchedulingContextCall(String na "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedPodSchedulingContextValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodSchedulingContext(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedPodSchedulingContextCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedPodSchedulingContextCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -961,14 +1055,31 @@ public okhttp3.Call deleteCollectionNamespacedPodSchedulingContextAsync(String n */ public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1021,11 +1132,10 @@ public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1036,23 +1146,22 @@ public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1184,14 +1293,31 @@ public okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespac */ public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1244,11 +1370,10 @@ public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1259,23 +1384,22 @@ public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1406,6 +1530,19 @@ public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String */ public okhttp3.Call deleteCollectionResourceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -1413,6 +1550,10 @@ public okhttp3.Call deleteCollectionResourceClassCall(String pretty, String _con List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1465,11 +1606,10 @@ public okhttp3.Call deleteCollectionResourceClassCall(String pretty, String _con localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1480,18 +1620,17 @@ public okhttp3.Call deleteCollectionResourceClassCall(String pretty, String _con "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionResourceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionResourceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionResourceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1614,15 +1753,32 @@ public okhttp3.Call deleteCollectionResourceClassAsync(String pretty, String _co */ public okhttp3.Call deleteNamespacedPodSchedulingContextCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1643,11 +1799,10 @@ public okhttp3.Call deleteNamespacedPodSchedulingContextCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1658,15 +1813,16 @@ public okhttp3.Call deleteNamespacedPodSchedulingContextCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedPodSchedulingContextValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPodSchedulingContext(Async)"); @@ -1677,9 +1833,7 @@ private okhttp3.Call deleteNamespacedPodSchedulingContextValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodSchedulingContext(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedPodSchedulingContextCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedPodSchedulingContextCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1787,15 +1941,32 @@ public okhttp3.Call deleteNamespacedPodSchedulingContextAsync(String name, Strin */ public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1816,11 +1987,10 @@ public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1831,15 +2001,16 @@ public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namesp "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); @@ -1850,9 +2021,7 @@ private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1960,15 +2129,32 @@ public okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String names */ public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1989,11 +2175,10 @@ public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2004,15 +2189,16 @@ public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); @@ -2023,9 +2209,7 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2132,14 +2316,31 @@ public okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, Stri */ public okhttp3.Call deleteResourceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2160,11 +2361,10 @@ public okhttp3.Call deleteResourceClassCall(String name, String pretty, String d localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2175,23 +2375,22 @@ public okhttp3.Call deleteResourceClassCall(String name, String pretty, String d "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteResourceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteResourceClass(Async)"); } - - okhttp3.Call localVarCall = deleteResourceClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteResourceClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2287,6 +2486,19 @@ public okhttp3.Call deleteResourceClassAsync(String name, String pretty, String */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2297,8 +2509,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2306,21 +2521,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -2404,14 +2617,31 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listNamespacedPodSchedulingContextCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2456,11 +2686,12 @@ public okhttp3.Call listNamespacedPodSchedulingContextCall(String namespace, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2468,26 +2699,24 @@ public okhttp3.Call listNamespacedPodSchedulingContextCall(String namespace, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedPodSchedulingContextValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodSchedulingContext(Async)"); } - - okhttp3.Call localVarCall = listNamespacedPodSchedulingContextCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedPodSchedulingContextCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2607,14 +2836,31 @@ public okhttp3.Call listNamespacedPodSchedulingContextAsync(String namespace, St */ public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2659,11 +2905,12 @@ public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2671,26 +2918,24 @@ public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pre } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); } - - okhttp3.Call localVarCall = listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -2810,14 +3055,31 @@ public okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pr */ public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2862,11 +3124,12 @@ public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2874,26 +3137,24 @@ public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); } - - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3012,6 +3273,19 @@ public okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, S */ public okhttp3.Call listPodSchedulingContextForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3019,6 +3293,10 @@ public okhttp3.Call listPodSchedulingContextForAllNamespacesCall(Boolean allowWa List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3063,11 +3341,12 @@ public okhttp3.Call listPodSchedulingContextForAllNamespacesCall(Boolean allowWa localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3075,21 +3354,19 @@ public okhttp3.Call listPodSchedulingContextForAllNamespacesCall(Boolean allowWa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPodSchedulingContextForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPodSchedulingContextForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPodSchedulingContextForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3205,6 +3482,19 @@ public okhttp3.Call listPodSchedulingContextForAllNamespacesAsync(Boolean allowW */ public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3212,6 +3502,10 @@ public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBook List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3256,11 +3550,12 @@ public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBook localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3268,21 +3563,19 @@ public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBook } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3398,6 +3691,19 @@ public okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBoo */ public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3405,6 +3711,10 @@ public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowW List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3449,11 +3759,12 @@ public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowW localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3461,21 +3772,19 @@ public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowW } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3591,6 +3900,19 @@ public okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allow */ public okhttp3.Call listResourceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3598,6 +3920,10 @@ public okhttp3.Call listResourceClassCall(String pretty, Boolean allowWatchBookm List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3642,11 +3968,12 @@ public okhttp3.Call listResourceClassCall(String pretty, Boolean allowWatchBookm localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3654,21 +3981,19 @@ public okhttp3.Call listResourceClassCall(String pretty, Boolean allowWatchBookm } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listResourceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listResourceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3782,15 +4107,32 @@ public okhttp3.Call listResourceClassAsync(String pretty, Boolean allowWatchBook */ public okhttp3.Call patchNamespacedPodSchedulingContextCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3811,11 +4153,10 @@ public okhttp3.Call patchNamespacedPodSchedulingContextCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3826,15 +4167,16 @@ public okhttp3.Call patchNamespacedPodSchedulingContextCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodSchedulingContextValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodSchedulingContext(Async)"); @@ -3850,9 +4192,7 @@ private okhttp3.Call patchNamespacedPodSchedulingContextValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodSchedulingContext(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPodSchedulingContextCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPodSchedulingContextCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -3960,15 +4300,32 @@ public okhttp3.Call patchNamespacedPodSchedulingContextAsync(String name, String */ public okhttp3.Call patchNamespacedPodSchedulingContextStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3989,11 +4346,10 @@ public okhttp3.Call patchNamespacedPodSchedulingContextStatusCall(String name, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4004,15 +4360,16 @@ public okhttp3.Call patchNamespacedPodSchedulingContextStatusCall(String name, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedPodSchedulingContextStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodSchedulingContextStatus(Async)"); @@ -4028,9 +4385,7 @@ private okhttp3.Call patchNamespacedPodSchedulingContextStatusValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodSchedulingContextStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedPodSchedulingContextStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedPodSchedulingContextStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4138,15 +4493,32 @@ public okhttp3.Call patchNamespacedPodSchedulingContextStatusAsync(String name, */ public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4167,11 +4539,10 @@ public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4182,15 +4553,16 @@ public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespa "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); @@ -4206,9 +4578,7 @@ private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaim(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4316,15 +4686,32 @@ public okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namesp */ public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4345,11 +4732,10 @@ public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4360,15 +4746,16 @@ public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); @@ -4384,9 +4771,7 @@ private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimStatus(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4494,15 +4879,32 @@ public okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String */ public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4523,11 +4925,10 @@ public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4538,15 +4939,16 @@ public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); @@ -4562,9 +4964,7 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4671,14 +5071,31 @@ public okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, Strin */ public okhttp3.Call patchResourceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4699,11 +5116,10 @@ public okhttp3.Call patchResourceClassCall(String name, V1Patch body, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4714,15 +5130,16 @@ public okhttp3.Call patchResourceClassCall(String name, V1Patch body, String pre "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchResourceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchResourceClass(Async)"); @@ -4733,9 +5150,7 @@ private okhttp3.Call patchResourceClassValidateBeforeCall(String name, V1Patch b throw new ApiException("Missing the required parameter 'body' when calling patchResourceClass(Async)"); } - - okhttp3.Call localVarCall = patchResourceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchResourceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4834,24 +5249,40 @@ public okhttp3.Call patchResourceClassAsync(String name, V1Patch body, String pr */ public okhttp3.Call readNamespacedPodSchedulingContextCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4859,18 +5290,18 @@ public okhttp3.Call readNamespacedPodSchedulingContextCall(String name, String n } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodSchedulingContextValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodSchedulingContext(Async)"); @@ -4881,9 +5312,7 @@ private okhttp3.Call readNamespacedPodSchedulingContextValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodSchedulingContext(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodSchedulingContextCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPodSchedulingContextCall(name, namespace, pretty, _callback); } @@ -4967,24 +5396,40 @@ public okhttp3.Call readNamespacedPodSchedulingContextAsync(String name, String */ public okhttp3.Call readNamespacedPodSchedulingContextStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4992,18 +5437,18 @@ public okhttp3.Call readNamespacedPodSchedulingContextStatusCall(String name, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedPodSchedulingContextStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodSchedulingContextStatus(Async)"); @@ -5014,9 +5459,7 @@ private okhttp3.Call readNamespacedPodSchedulingContextStatusValidateBeforeCall( throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodSchedulingContextStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedPodSchedulingContextStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedPodSchedulingContextStatusCall(name, namespace, pretty, _callback); } @@ -5100,24 +5543,40 @@ public okhttp3.Call readNamespacedPodSchedulingContextStatusAsync(String name, S */ public okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5125,18 +5584,18 @@ public okhttp3.Call readNamespacedResourceClaimCall(String name, String namespac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); @@ -5147,9 +5606,7 @@ private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); } - - okhttp3.Call localVarCall = readNamespacedResourceClaimCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); } @@ -5233,24 +5690,40 @@ public okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespa */ public okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5258,18 +5731,18 @@ public okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String na } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); @@ -5280,9 +5753,7 @@ private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); } - - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); } @@ -5366,24 +5837,40 @@ public okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String n */ public okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5391,18 +5878,18 @@ public okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); @@ -5413,9 +5900,7 @@ private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); } - - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); } @@ -5498,23 +5983,39 @@ public okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String */ public okhttp3.Call readResourceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5522,26 +6023,24 @@ public okhttp3.Call readResourceClassCall(String name, String pretty, final ApiC } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readResourceClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readResourceClass(Async)"); } - - okhttp3.Call localVarCall = readResourceClassCall(name, pretty, _callback); - return localVarCall; + return readResourceClassCall(name, pretty, _callback); } @@ -5627,15 +6126,32 @@ public okhttp3.Call readResourceClassAsync(String name, String pretty, final Api */ public okhttp3.Call replaceNamespacedPodSchedulingContextCall(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5652,11 +6168,10 @@ public okhttp3.Call replaceNamespacedPodSchedulingContextCall(String name, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5667,15 +6182,16 @@ public okhttp3.Call replaceNamespacedPodSchedulingContextCall(String name, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodSchedulingContextValidateBeforeCall(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodSchedulingContext(Async)"); @@ -5691,9 +6207,7 @@ private okhttp3.Call replaceNamespacedPodSchedulingContextValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodSchedulingContext(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPodSchedulingContextCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPodSchedulingContextCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -5797,15 +6311,32 @@ public okhttp3.Call replaceNamespacedPodSchedulingContextAsync(String name, Stri */ public okhttp3.Call replaceNamespacedPodSchedulingContextStatusCall(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5822,11 +6353,10 @@ public okhttp3.Call replaceNamespacedPodSchedulingContextStatusCall(String name, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5837,15 +6367,16 @@ public okhttp3.Call replaceNamespacedPodSchedulingContextStatusCall(String name, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedPodSchedulingContextStatusValidateBeforeCall(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodSchedulingContextStatus(Async)"); @@ -5861,9 +6392,7 @@ private okhttp3.Call replaceNamespacedPodSchedulingContextStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodSchedulingContextStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedPodSchedulingContextStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedPodSchedulingContextStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -5967,15 +6496,32 @@ public okhttp3.Call replaceNamespacedPodSchedulingContextStatusAsync(String name */ public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5992,11 +6538,10 @@ public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6007,15 +6552,16 @@ public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String names "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); @@ -6031,9 +6577,7 @@ private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaim(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -6137,15 +6681,32 @@ public okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String name */ public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6162,11 +6723,10 @@ public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6177,15 +6737,16 @@ public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); @@ -6201,9 +6762,7 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimStatus(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -6307,15 +6866,32 @@ public okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, Strin */ public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6332,11 +6908,10 @@ public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6347,15 +6922,16 @@ public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, Stri "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); @@ -6371,9 +6947,7 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimTemplate(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -6476,14 +7050,31 @@ public okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, Str */ public okhttp3.Call replaceResourceClassCall(String name, V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6500,11 +7091,10 @@ public okhttp3.Call replaceResourceClassCall(String name, V1alpha2ResourceClass localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6515,15 +7105,16 @@ public okhttp3.Call replaceResourceClassCall(String name, V1alpha2ResourceClass "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceResourceClassValidateBeforeCall(String name, V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceResourceClass(Async)"); @@ -6534,9 +7125,7 @@ private okhttp3.Call replaceResourceClassValidateBeforeCall(String name, V1alpha throw new ApiException("Missing the required parameter 'body' when calling replaceResourceClass(Async)"); } - - okhttp3.Call localVarCall = replaceResourceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceResourceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java index 8bdedcf52b..d4dc5b183a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class SchedulingApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public SchedulingApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java index 7547c089b3..19f2270dda 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java @@ -38,9 +38,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class SchedulingV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public SchedulingV1Api() { this(Configuration.getDefaultApiClient()); @@ -58,6 +61,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createPriorityClass * @param body (required) @@ -78,6 +97,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createPriorityClassCall(V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -85,6 +117,10 @@ public okhttp3.Call createPriorityClassCall(V1PriorityClass body, String pretty, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -101,11 +137,10 @@ public okhttp3.Call createPriorityClassCall(V1PriorityClass body, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -116,23 +151,22 @@ public okhttp3.Call createPriorityClassCall(V1PriorityClass body, String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createPriorityClassValidateBeforeCall(V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPriorityClass(Async)"); } - - okhttp3.Call localVarCall = createPriorityClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createPriorityClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -239,6 +273,19 @@ public okhttp3.Call createPriorityClassAsync(V1PriorityClass body, String pretty */ public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -246,6 +293,10 @@ public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _con List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -298,11 +349,10 @@ public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _con localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -313,18 +363,17 @@ public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _con "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -446,14 +495,31 @@ public okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, String _co */ public okhttp3.Call deletePriorityClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -474,11 +540,10 @@ public okhttp3.Call deletePriorityClassCall(String name, String pretty, String d localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -489,23 +554,22 @@ public okhttp3.Call deletePriorityClassCall(String name, String pretty, String d "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePriorityClass(Async)"); } - - okhttp3.Call localVarCall = deletePriorityClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deletePriorityClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -601,6 +665,19 @@ public okhttp3.Call deletePriorityClassAsync(String name, String pretty, String */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -611,8 +688,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,21 +700,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -717,6 +795,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -724,6 +815,10 @@ public okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookm List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -768,11 +863,12 @@ public okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookm localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -780,21 +876,19 @@ public okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookm } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listPriorityClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -907,14 +1001,31 @@ public okhttp3.Call listPriorityClassAsync(String pretty, Boolean allowWatchBook */ public okhttp3.Call patchPriorityClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -935,11 +1046,10 @@ public okhttp3.Call patchPriorityClassCall(String name, V1Patch body, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -950,15 +1060,16 @@ public okhttp3.Call patchPriorityClassCall(String name, V1Patch body, String pre "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchPriorityClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchPriorityClass(Async)"); @@ -969,9 +1080,7 @@ private okhttp3.Call patchPriorityClassValidateBeforeCall(String name, V1Patch b throw new ApiException("Missing the required parameter 'body' when calling patchPriorityClass(Async)"); } - - okhttp3.Call localVarCall = patchPriorityClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchPriorityClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -1069,23 +1178,39 @@ public okhttp3.Call patchPriorityClassAsync(String name, V1Patch body, String pr */ public okhttp3.Call readPriorityClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1093,26 +1218,24 @@ public okhttp3.Call readPriorityClassCall(String name, String pretty, final ApiC } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readPriorityClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityClass(Async)"); } - - okhttp3.Call localVarCall = readPriorityClassCall(name, pretty, _callback); - return localVarCall; + return readPriorityClassCall(name, pretty, _callback); } @@ -1197,14 +1320,31 @@ public okhttp3.Call readPriorityClassAsync(String name, String pretty, final Api */ public okhttp3.Call replacePriorityClassCall(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1221,11 +1361,10 @@ public okhttp3.Call replacePriorityClassCall(String name, V1PriorityClass body, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1236,15 +1375,16 @@ public okhttp3.Call replacePriorityClassCall(String name, V1PriorityClass body, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replacePriorityClassValidateBeforeCall(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replacePriorityClass(Async)"); @@ -1255,9 +1395,7 @@ private okhttp3.Call replacePriorityClassValidateBeforeCall(String name, V1Prior throw new ApiException("Missing the required parameter 'body' when calling replacePriorityClass(Async)"); } - - okhttp3.Call localVarCall = replacePriorityClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replacePriorityClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java index eeed1ef529..4e13e29d2d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class StorageApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public StorageApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getAPIGroup * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,8 +108,11 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -85,21 +120,19 @@ public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExcep } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIGroupCall(_callback); - return localVarCall; + return getAPIGroupCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java index c9dd673660..11b95149e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java @@ -46,9 +46,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class StorageV1Api { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public StorageV1Api() { this(Configuration.getDefaultApiClient()); @@ -66,6 +69,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for createCSIDriver * @param body (required) @@ -86,6 +105,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call createCSIDriverCall(V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -93,6 +125,10 @@ public okhttp3.Call createCSIDriverCall(V1CSIDriver body, String pretty, String List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -109,11 +145,10 @@ public okhttp3.Call createCSIDriverCall(V1CSIDriver body, String pretty, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -124,23 +159,22 @@ public okhttp3.Call createCSIDriverCall(V1CSIDriver body, String pretty, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createCSIDriverValidateBeforeCall(V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCSIDriver(Async)"); } - - okhttp3.Call localVarCall = createCSIDriverCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createCSIDriverCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -240,6 +274,19 @@ public okhttp3.Call createCSIDriverAsync(V1CSIDriver body, String pretty, String */ public okhttp3.Call createCSINodeCall(V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -247,6 +294,10 @@ public okhttp3.Call createCSINodeCall(V1CSINode body, String pretty, String dryR List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -263,11 +314,10 @@ public okhttp3.Call createCSINodeCall(V1CSINode body, String pretty, String dryR localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -278,23 +328,22 @@ public okhttp3.Call createCSINodeCall(V1CSINode body, String pretty, String dryR "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createCSINodeValidateBeforeCall(V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCSINode(Async)"); } - - okhttp3.Call localVarCall = createCSINodeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createCSINodeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -395,14 +444,31 @@ public okhttp3.Call createCSINodeAsync(V1CSINode body, String pretty, String dry */ public okhttp3.Call createNamespacedCSIStorageCapacityCall(String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -419,11 +485,10 @@ public okhttp3.Call createNamespacedCSIStorageCapacityCall(String namespace, V1C localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -434,15 +499,16 @@ public okhttp3.Call createNamespacedCSIStorageCapacityCall(String namespace, V1C "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedCSIStorageCapacity(Async)"); @@ -453,9 +519,7 @@ private okhttp3.Call createNamespacedCSIStorageCapacityValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling createNamespacedCSIStorageCapacity(Async)"); } - - okhttp3.Call localVarCall = createNamespacedCSIStorageCapacityCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createNamespacedCSIStorageCapacityCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -558,6 +622,19 @@ public okhttp3.Call createNamespacedCSIStorageCapacityAsync(String namespace, V1 */ public okhttp3.Call createStorageClassCall(V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -565,6 +642,10 @@ public okhttp3.Call createStorageClassCall(V1StorageClass body, String pretty, S List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -581,11 +662,10 @@ public okhttp3.Call createStorageClassCall(V1StorageClass body, String pretty, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -596,23 +676,22 @@ public okhttp3.Call createStorageClassCall(V1StorageClass body, String pretty, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createStorageClassValidateBeforeCall(V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createStorageClass(Async)"); } - - okhttp3.Call localVarCall = createStorageClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createStorageClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -712,6 +791,19 @@ public okhttp3.Call createStorageClassAsync(V1StorageClass body, String pretty, */ public okhttp3.Call createVolumeAttachmentCall(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -719,6 +811,10 @@ public okhttp3.Call createVolumeAttachmentCall(V1VolumeAttachment body, String p List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -735,11 +831,10 @@ public okhttp3.Call createVolumeAttachmentCall(V1VolumeAttachment body, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -750,23 +845,22 @@ public okhttp3.Call createVolumeAttachmentCall(V1VolumeAttachment body, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createVolumeAttachmentValidateBeforeCall(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttachment(Async)"); } - - okhttp3.Call localVarCall = createVolumeAttachmentCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return createVolumeAttachmentCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -867,14 +961,31 @@ public okhttp3.Call createVolumeAttachmentAsync(V1VolumeAttachment body, String */ public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/csidrivers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -895,11 +1006,10 @@ public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRu localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -910,23 +1020,22 @@ public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRu "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCSIDriver(Async)"); } - - okhttp3.Call localVarCall = deleteCSIDriverCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteCSIDriverCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1030,14 +1139,31 @@ public okhttp3.Call deleteCSIDriverAsync(String name, String pretty, String dryR */ public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/csinodes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1058,11 +1184,10 @@ public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1073,23 +1198,22 @@ public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCSINode(Async)"); } - - okhttp3.Call localVarCall = deleteCSINodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteCSINodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -1199,6 +1323,19 @@ public okhttp3.Call deleteCSINodeAsync(String name, String pretty, String dryRun */ public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -1206,6 +1343,10 @@ public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continu List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1258,11 +1399,10 @@ public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continu localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1273,18 +1413,17 @@ public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continu "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1412,6 +1551,19 @@ public okhttp3.Call deleteCollectionCSIDriverAsync(String pretty, String _contin */ public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -1419,6 +1571,10 @@ public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1471,11 +1627,10 @@ public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1486,18 +1641,17 @@ public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1626,14 +1780,31 @@ public okhttp3.Call deleteCollectionCSINodeAsync(String pretty, String _continue */ public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1686,11 +1857,10 @@ public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1701,23 +1871,22 @@ public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String name "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCSIStorageCapacity(Async)"); } - - okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionNamespacedCSIStorageCapacityCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -1848,6 +2017,19 @@ public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(String nam */ public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -1855,6 +2037,10 @@ public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _cont List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -1907,11 +2093,10 @@ public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _cont localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1922,18 +2107,17 @@ public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _cont "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -2061,6 +2245,19 @@ public okhttp3.Call deleteCollectionStorageClassAsync(String pretty, String _con */ public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables @@ -2068,6 +2265,10 @@ public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _ List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2120,11 +2321,10 @@ public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _ localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2135,18 +2335,17 @@ public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _ "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; + return deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } @@ -2269,15 +2468,32 @@ public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String */ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2298,11 +2514,10 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2313,15 +2528,16 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCSIStorageCapacity(Async)"); @@ -2332,9 +2548,7 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCSIStorageCapacity(Async)"); } - - okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2441,14 +2655,31 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String */ public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2469,11 +2700,10 @@ public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2484,23 +2714,22 @@ public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dr "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteStorageClass(Async)"); } - - okhttp3.Call localVarCall = deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2604,14 +2833,31 @@ public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String d */ public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2632,11 +2878,10 @@ public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2647,23 +2892,22 @@ public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, Strin "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); } - - okhttp3.Call localVarCall = deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + return deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); } @@ -2759,6 +3003,19 @@ public okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, Stri */ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2769,8 +3026,11 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2778,21 +3038,19 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; + return getAPIResourcesCall(_callback); } @@ -2875,6 +3133,19 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c */ public okhttp3.Call listCSIDriverCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -2882,6 +3153,10 @@ public okhttp3.Call listCSIDriverCall(String pretty, Boolean allowWatchBookmarks List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -2926,11 +3201,12 @@ public okhttp3.Call listCSIDriverCall(String pretty, Boolean allowWatchBookmarks localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2938,21 +3214,19 @@ public okhttp3.Call listCSIDriverCall(String pretty, Boolean allowWatchBookmarks } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCSIDriverValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3068,6 +3342,19 @@ public okhttp3.Call listCSIDriverAsync(String pretty, Boolean allowWatchBookmark */ public okhttp3.Call listCSINodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3075,6 +3362,10 @@ public okhttp3.Call listCSINodeCall(String pretty, Boolean allowWatchBookmarks, List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3119,11 +3410,12 @@ public okhttp3.Call listCSINodeCall(String pretty, Boolean allowWatchBookmarks, localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3131,23 +3423,21 @@ public okhttp3.Call listCSINodeCall(String pretty, Boolean allowWatchBookmarks, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCSINodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - okhttp3.Call localVarCall = listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } + } /** * @@ -3261,6 +3551,19 @@ public okhttp3.Call listCSINodeAsync(String pretty, Boolean allowWatchBookmarks, */ public okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3268,6 +3571,10 @@ public okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(Boolean allowWatc List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -3312,11 +3619,12 @@ public okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(Boolean allowWatc localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3324,21 +3632,19 @@ public okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(Boolean allowWatc } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listCSIStorageCapacityForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3455,14 +3761,31 @@ public okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(Boolean allowWat */ public okhttp3.Call listNamespacedCSIStorageCapacityCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3507,11 +3830,12 @@ public okhttp3.Call listNamespacedCSIStorageCapacityCall(String namespace, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3519,26 +3843,24 @@ public okhttp3.Call listNamespacedCSIStorageCapacityCall(String namespace, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCSIStorageCapacity(Async)"); } - - okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3657,6 +3979,19 @@ public okhttp3.Call listNamespacedCSIStorageCapacityAsync(String namespace, Stri */ public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3664,6 +3999,10 @@ public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookma List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3708,11 +4047,12 @@ public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookma localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3720,21 +4060,19 @@ public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookma } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -3850,6 +4188,19 @@ public okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBookm */ public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -3857,6 +4208,10 @@ public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBo List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -3901,11 +4256,12 @@ public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBo localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3913,21 +4269,19 @@ public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBo } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; + return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } @@ -4040,14 +4394,31 @@ public okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatchB */ public okhttp3.Call patchCSIDriverCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/csidrivers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4068,11 +4439,10 @@ public okhttp3.Call patchCSIDriverCall(String name, V1Patch body, String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4083,15 +4453,16 @@ public okhttp3.Call patchCSIDriverCall(String name, V1Patch body, String pretty, "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchCSIDriverValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCSIDriver(Async)"); @@ -4102,9 +4473,7 @@ private okhttp3.Call patchCSIDriverValidateBeforeCall(String name, V1Patch body, throw new ApiException("Missing the required parameter 'body' when calling patchCSIDriver(Async)"); } - - okhttp3.Call localVarCall = patchCSIDriverCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchCSIDriverCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4208,14 +4577,31 @@ public okhttp3.Call patchCSIDriverAsync(String name, V1Patch body, String pretty */ public okhttp3.Call patchCSINodeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/csinodes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4236,11 +4622,10 @@ public okhttp3.Call patchCSINodeCall(String name, V1Patch body, String pretty, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4251,15 +4636,16 @@ public okhttp3.Call patchCSINodeCall(String name, V1Patch body, String pretty, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchCSINodeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchCSINode(Async)"); @@ -4270,9 +4656,7 @@ private okhttp3.Call patchCSINodeValidateBeforeCall(String name, V1Patch body, S throw new ApiException("Missing the required parameter 'body' when calling patchCSINode(Async)"); } - - okhttp3.Call localVarCall = patchCSINodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchCSINodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4377,15 +4761,32 @@ public okhttp3.Call patchCSINodeAsync(String name, V1Patch body, String pretty, */ public okhttp3.Call patchNamespacedCSIStorageCapacityCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4406,11 +4807,10 @@ public okhttp3.Call patchNamespacedCSIStorageCapacityCall(String name, String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4421,15 +4821,16 @@ public okhttp3.Call patchNamespacedCSIStorageCapacityCall(String name, String na "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedCSIStorageCapacity(Async)"); @@ -4445,9 +4846,7 @@ private okhttp3.Call patchNamespacedCSIStorageCapacityValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCSIStorageCapacity(Async)"); } - - okhttp3.Call localVarCall = patchNamespacedCSIStorageCapacityCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchNamespacedCSIStorageCapacityCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4554,14 +4953,31 @@ public okhttp3.Call patchNamespacedCSIStorageCapacityAsync(String name, String n */ public okhttp3.Call patchStorageClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4582,11 +4998,10 @@ public okhttp3.Call patchStorageClassCall(String name, V1Patch body, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4597,15 +5012,16 @@ public okhttp3.Call patchStorageClassCall(String name, V1Patch body, String pret "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchStorageClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchStorageClass(Async)"); @@ -4616,9 +5032,7 @@ private okhttp3.Call patchStorageClassValidateBeforeCall(String name, V1Patch bo throw new ApiException("Missing the required parameter 'body' when calling patchStorageClass(Async)"); } - - okhttp3.Call localVarCall = patchStorageClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchStorageClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4722,14 +5136,31 @@ public okhttp3.Call patchStorageClassAsync(String name, V1Patch body, String pre */ public okhttp3.Call patchVolumeAttachmentCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4750,11 +5181,10 @@ public okhttp3.Call patchVolumeAttachmentCall(String name, V1Patch body, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4765,15 +5195,16 @@ public okhttp3.Call patchVolumeAttachmentCall(String name, V1Patch body, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttachment(Async)"); @@ -4784,9 +5215,7 @@ private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(String name, V1Patc throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachment(Async)"); } - - okhttp3.Call localVarCall = patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -4890,14 +5319,31 @@ public okhttp3.Call patchVolumeAttachmentAsync(String name, V1Patch body, String */ public okhttp3.Call patchVolumeAttachmentStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -4918,11 +5364,10 @@ public okhttp3.Call patchVolumeAttachmentStatusCall(String name, V1Patch body, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4933,15 +5378,16 @@ public okhttp3.Call patchVolumeAttachmentStatusCall(String name, V1Patch body, S "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttachmentStatus(Async)"); @@ -4952,9 +5398,7 @@ private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachmentStatus(Async)"); } - - okhttp3.Call localVarCall = patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; + return patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } @@ -5052,23 +5496,39 @@ public okhttp3.Call patchVolumeAttachmentStatusAsync(String name, V1Patch body, */ public okhttp3.Call readCSIDriverCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/csidrivers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5076,26 +5536,24 @@ public okhttp3.Call readCSIDriverCall(String name, String pretty, final ApiCallb } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readCSIDriverValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCSIDriver(Async)"); } - - okhttp3.Call localVarCall = readCSIDriverCall(name, pretty, _callback); - return localVarCall; + return readCSIDriverCall(name, pretty, _callback); } @@ -5175,23 +5633,39 @@ public okhttp3.Call readCSIDriverAsync(String name, String pretty, final ApiCall */ public okhttp3.Call readCSINodeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/csinodes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5199,26 +5673,24 @@ public okhttp3.Call readCSINodeCall(String name, String pretty, final ApiCallbac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readCSINodeValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCSINode(Async)"); } - - okhttp3.Call localVarCall = readCSINodeCall(name, pretty, _callback); - return localVarCall; + return readCSINodeCall(name, pretty, _callback); } @@ -5299,24 +5771,40 @@ public okhttp3.Call readCSINodeAsync(String name, String pretty, final ApiCallba */ public okhttp3.Call readNamespacedCSIStorageCapacityCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5324,18 +5812,18 @@ public okhttp3.Call readNamespacedCSIStorageCapacityCall(String name, String nam } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespacedCSIStorageCapacity(Async)"); @@ -5346,9 +5834,7 @@ private okhttp3.Call readNamespacedCSIStorageCapacityValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCSIStorageCapacity(Async)"); } - - okhttp3.Call localVarCall = readNamespacedCSIStorageCapacityCall(name, namespace, pretty, _callback); - return localVarCall; + return readNamespacedCSIStorageCapacityCall(name, namespace, pretty, _callback); } @@ -5431,23 +5917,39 @@ public okhttp3.Call readNamespacedCSIStorageCapacityAsync(String name, String na */ public okhttp3.Call readStorageClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5455,26 +5957,24 @@ public okhttp3.Call readStorageClassCall(String name, String pretty, final ApiCa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readStorageClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageClass(Async)"); } - - okhttp3.Call localVarCall = readStorageClassCall(name, pretty, _callback); - return localVarCall; + return readStorageClassCall(name, pretty, _callback); } @@ -5554,23 +6054,39 @@ public okhttp3.Call readStorageClassAsync(String name, String pretty, final ApiC */ public okhttp3.Call readVolumeAttachmentCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5578,26 +6094,24 @@ public okhttp3.Call readVolumeAttachmentCall(String name, String pretty, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readVolumeAttachmentValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachment(Async)"); } - - okhttp3.Call localVarCall = readVolumeAttachmentCall(name, pretty, _callback); - return localVarCall; + return readVolumeAttachmentCall(name, pretty, _callback); } @@ -5677,23 +6191,39 @@ public okhttp3.Call readVolumeAttachmentAsync(String name, String pretty, final */ public okhttp3.Call readVolumeAttachmentStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5701,26 +6231,24 @@ public okhttp3.Call readVolumeAttachmentStatusCall(String name, String pretty, f } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call readVolumeAttachmentStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachmentStatus(Async)"); } - - okhttp3.Call localVarCall = readVolumeAttachmentStatusCall(name, pretty, _callback); - return localVarCall; + return readVolumeAttachmentStatusCall(name, pretty, _callback); } @@ -5805,14 +6333,31 @@ public okhttp3.Call readVolumeAttachmentStatusAsync(String name, String pretty, */ public okhttp3.Call replaceCSIDriverCall(String name, V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/csidrivers/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5829,11 +6374,10 @@ public okhttp3.Call replaceCSIDriverCall(String name, V1CSIDriver body, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5844,15 +6388,16 @@ public okhttp3.Call replaceCSIDriverCall(String name, V1CSIDriver body, String p "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceCSIDriverValidateBeforeCall(String name, V1CSIDriver body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCSIDriver(Async)"); @@ -5863,9 +6408,7 @@ private okhttp3.Call replaceCSIDriverValidateBeforeCall(String name, V1CSIDriver throw new ApiException("Missing the required parameter 'body' when calling replaceCSIDriver(Async)"); } - - okhttp3.Call localVarCall = replaceCSIDriverCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceCSIDriverCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -5965,14 +6508,31 @@ public okhttp3.Call replaceCSIDriverAsync(String name, V1CSIDriver body, String */ public okhttp3.Call replaceCSINodeCall(String name, V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/csinodes/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -5989,11 +6549,10 @@ public okhttp3.Call replaceCSINodeCall(String name, V1CSINode body, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6004,15 +6563,16 @@ public okhttp3.Call replaceCSINodeCall(String name, V1CSINode body, String prett "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceCSINodeValidateBeforeCall(String name, V1CSINode body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceCSINode(Async)"); @@ -6023,9 +6583,7 @@ private okhttp3.Call replaceCSINodeValidateBeforeCall(String name, V1CSINode bod throw new ApiException("Missing the required parameter 'body' when calling replaceCSINode(Async)"); } - - okhttp3.Call localVarCall = replaceCSINodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceCSINodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -6126,15 +6684,32 @@ public okhttp3.Call replaceCSINodeAsync(String name, V1CSINode body, String pret */ public okhttp3.Call replaceNamespacedCSIStorageCapacityCall(String name, String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6151,11 +6726,10 @@ public okhttp3.Call replaceNamespacedCSIStorageCapacityCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6166,15 +6740,16 @@ public okhttp3.Call replaceNamespacedCSIStorageCapacityCall(String name, String "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, V1CSIStorageCapacity body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedCSIStorageCapacity(Async)"); @@ -6190,9 +6765,7 @@ private okhttp3.Call replaceNamespacedCSIStorageCapacityValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCSIStorageCapacity(Async)"); } - - okhttp3.Call localVarCall = replaceNamespacedCSIStorageCapacityCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceNamespacedCSIStorageCapacityCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -6295,14 +6868,31 @@ public okhttp3.Call replaceNamespacedCSIStorageCapacityAsync(String name, String */ public okhttp3.Call replaceStorageClassCall(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6319,11 +6909,10 @@ public okhttp3.Call replaceStorageClassCall(String name, V1StorageClass body, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6334,15 +6923,16 @@ public okhttp3.Call replaceStorageClassCall(String name, V1StorageClass body, St "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceStorageClassValidateBeforeCall(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceStorageClass(Async)"); @@ -6353,9 +6943,7 @@ private okhttp3.Call replaceStorageClassValidateBeforeCall(String name, V1Storag throw new ApiException("Missing the required parameter 'body' when calling replaceStorageClass(Async)"); } - - okhttp3.Call localVarCall = replaceStorageClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceStorageClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -6455,14 +7043,31 @@ public okhttp3.Call replaceStorageClassAsync(String name, V1StorageClass body, S */ public okhttp3.Call replaceVolumeAttachmentCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6479,11 +7084,10 @@ public okhttp3.Call replaceVolumeAttachmentCall(String name, V1VolumeAttachment localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6494,15 +7098,16 @@ public okhttp3.Call replaceVolumeAttachmentCall(String name, V1VolumeAttachment "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceVolumeAttachment(Async)"); @@ -6513,9 +7118,7 @@ private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1Vo throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttachment(Async)"); } - - okhttp3.Call localVarCall = replaceVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } @@ -6615,14 +7218,31 @@ public okhttp3.Call replaceVolumeAttachmentAsync(String name, V1VolumeAttachment */ public okhttp3.Call replaceVolumeAttachmentStatusCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } @@ -6639,11 +7259,10 @@ public okhttp3.Call replaceVolumeAttachmentStatusCall(String name, V1VolumeAttac localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6654,15 +7273,16 @@ public okhttp3.Call replaceVolumeAttachmentStatusCall(String name, V1VolumeAttac "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call replaceVolumeAttachmentStatusValidateBeforeCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling replaceVolumeAttachmentStatus(Async)"); @@ -6673,9 +7293,7 @@ private okhttp3.Call replaceVolumeAttachmentStatusValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttachmentStatus(Async)"); } - - okhttp3.Call localVarCall = replaceVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; + return replaceVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java index c2d669bcb7..a323709d5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java @@ -33,9 +33,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class VersionApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public VersionApi() { this(Configuration.getDefaultApiClient()); @@ -53,6 +56,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getCode * @param _callback Callback for upload/download progress @@ -66,6 +85,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getCodeCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -76,6 +108,7 @@ public okhttp3.Call getCodeCall(final ApiCallback _callback) throws ApiException Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { "application/json" }; @@ -85,21 +118,19 @@ public okhttp3.Call getCodeCall(final ApiCallback _callback) throws ApiException } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getCodeValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getCodeCall(_callback); - return localVarCall; + return getCodeCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java index 8c478f526b..5ca46857e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java @@ -32,9 +32,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import jakarta.ws.rs.core.GenericType; public class WellKnownApi { private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; public WellKnownApi() { this(Configuration.getDefaultApiClient()); @@ -52,6 +55,22 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + /** * Build call for getServiceAccountIssuerOpenIDConfiguration * @param _callback Callback for upload/download progress @@ -65,6 +84,19 @@ public void setApiClient(ApiClient apiClient) { */ public okhttp3.Call getServiceAccountIssuerOpenIDConfigurationCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + Object localVarPostBody = null; // create path and map variables @@ -75,6 +107,7 @@ public okhttp3.Call getServiceAccountIssuerOpenIDConfigurationCall(final ApiCall Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { "application/json" }; @@ -84,21 +117,19 @@ public okhttp3.Call getServiceAccountIssuerOpenIDConfigurationCall(final ApiCall } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getServiceAccountIssuerOpenIDConfigurationValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getServiceAccountIssuerOpenIDConfigurationCall(_callback); - return localVarCall; + return getServiceAccountIssuerOpenIDConfigurationCall(_callback); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java index 8486355235..0261b6b837 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java @@ -12,8 +12,10 @@ */ package io.kubernetes.client.openapi.auth; +import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Pair; +import java.net.URI; import java.util.Map; import java.util.List; @@ -55,7 +57,8 @@ public void setApiKeyPrefix(String apiKeyPrefix) { } @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams) { + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { if (apiKey == null) { return; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java index 4081493466..042284eb39 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java @@ -13,7 +13,9 @@ package io.kubernetes.client.openapi.auth; import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ApiException; +import java.net.URI; import java.util.Map; import java.util.List; @@ -24,6 +26,10 @@ public interface Authentication { * @param queryParams List of query parameters * @param headerParams Map of header parameters * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws ApiException if failed to update the parameters */ - void applyToParams(List queryParams, Map headerParams, Map cookieParams); + void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java index 6245494e60..694e2e0708 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java @@ -13,9 +13,11 @@ package io.kubernetes.client.openapi.auth; import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ApiException; import okhttp3.Credentials; +import java.net.URI; import java.util.Map; import java.util.List; @@ -42,7 +44,8 @@ public void setPassword(String password) { } @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams) { + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { if (username == null && password == null) { return; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java index 79a3f6ae77..c8e187cd81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java @@ -12,8 +12,10 @@ */ package io.kubernetes.client.openapi.auth; +import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Pair; +import java.net.URI; import java.util.Map; import java.util.List; @@ -45,8 +47,9 @@ public void setBearerToken(String bearerToken) { } @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams) { - if(bearerToken == null) { + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (bearerToken == null) { return; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java new file mode 100644 index 0000000000..c56ac0751c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java @@ -0,0 +1,148 @@ +/* +Copyright 2023 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.openapi.ApiException; +import java.util.Objects; +import java.lang.reflect.Type; +import java.util.Map; +import jakarta.ws.rs.core.GenericType; + +//import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-27T04:33:30.382835Z[Etc/UTC]") +public abstract class AbstractOpenApiSchema { + + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + //@JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + if (Boolean.TRUE.equals(isNullable)) { + return Boolean.TRUE; + } else { + return Boolean.FALSE; + } + } + + + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java index fc7fea0ab1..7d1dcd2ed9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceReference holds a reference to Service.legacy.k8s.io */ @@ -45,6 +68,8 @@ public class AdmissionregistrationV1ServiceReference { @SerializedName(SERIALIZED_NAME_PORT) private Integer port; + public AdmissionregistrationV1ServiceReference() { + } public AdmissionregistrationV1ServiceReference name(String name) { @@ -56,8 +81,7 @@ public AdmissionregistrationV1ServiceReference name(String name) { * `name` is the name of the service. Required * @return name **/ - @ApiModelProperty(required = true, value = "`name` is the name of the service. Required") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -78,8 +102,7 @@ public AdmissionregistrationV1ServiceReference namespace(String namespace) { * `namespace` is the namespace of the service. Required * @return namespace **/ - @ApiModelProperty(required = true, value = "`namespace` is the namespace of the service. Required") - + @jakarta.annotation.Nonnull public String getNamespace() { return namespace; } @@ -100,9 +123,7 @@ public AdmissionregistrationV1ServiceReference path(String path) { * `path` is an optional URL path which will be sent in any request to this service. * @return path **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`path` is an optional URL path which will be sent in any request to this service.") - + @jakarta.annotation.Nullable public String getPath() { return path; } @@ -123,9 +144,7 @@ public AdmissionregistrationV1ServiceReference port(Integer port) { * 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). * @return port **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") - + @jakarta.annotation.Nullable public Integer getPort() { return port; } @@ -136,8 +155,9 @@ public void setPort(Integer port) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -156,7 +176,6 @@ public int hashCode() { return Objects.hash(name, namespace, path, port); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,11 +192,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("path"); + openapiFields.add("port"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("namespace"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AdmissionregistrationV1ServiceReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!AdmissionregistrationV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdmissionregistrationV1ServiceReference is not found in the empty JSON string", AdmissionregistrationV1ServiceReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AdmissionregistrationV1ServiceReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AdmissionregistrationV1ServiceReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AdmissionregistrationV1ServiceReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AdmissionregistrationV1ServiceReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdmissionregistrationV1ServiceReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdmissionregistrationV1ServiceReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AdmissionregistrationV1ServiceReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AdmissionregistrationV1ServiceReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AdmissionregistrationV1ServiceReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of AdmissionregistrationV1ServiceReference + * @throws IOException if the JSON string is invalid with respect to AdmissionregistrationV1ServiceReference + */ + public static AdmissionregistrationV1ServiceReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdmissionregistrationV1ServiceReference.class); + } + + /** + * Convert an instance of AdmissionregistrationV1ServiceReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java index 5bdac79ff7..01be0a5bf8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * WebhookClientConfig contains the information to make a TLS connection with the webhook */ @@ -42,6 +65,8 @@ public class AdmissionregistrationV1WebhookClientConfig { @SerializedName(SERIALIZED_NAME_URL) private String url; + public AdmissionregistrationV1WebhookClientConfig() { + } public AdmissionregistrationV1WebhookClientConfig caBundle(byte[] caBundle) { @@ -53,9 +78,7 @@ public AdmissionregistrationV1WebhookClientConfig caBundle(byte[] caBundle) { * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") - + @jakarta.annotation.Nullable public byte[] getCaBundle() { return caBundle; } @@ -76,9 +99,7 @@ public AdmissionregistrationV1WebhookClientConfig service(AdmissionregistrationV * Get service * @return service **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public AdmissionregistrationV1ServiceReference getService() { return service; } @@ -99,9 +120,7 @@ public AdmissionregistrationV1WebhookClientConfig url(String url) { * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. * @return url **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") - + @jakarta.annotation.Nullable public String getUrl() { return url; } @@ -112,8 +131,9 @@ public void setUrl(String url) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -131,7 +151,6 @@ public int hashCode() { return Objects.hash(Arrays.hashCode(caBundle), service, url); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -147,11 +166,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("caBundle"); + openapiFields.add("service"); + openapiFields.add("url"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AdmissionregistrationV1WebhookClientConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!AdmissionregistrationV1WebhookClientConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdmissionregistrationV1WebhookClientConfig is not found in the empty JSON string", AdmissionregistrationV1WebhookClientConfig.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AdmissionregistrationV1WebhookClientConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AdmissionregistrationV1WebhookClientConfig` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `service` + if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { + AdmissionregistrationV1ServiceReference.validateJsonObject(jsonObj.getAsJsonObject("service")); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AdmissionregistrationV1WebhookClientConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdmissionregistrationV1WebhookClientConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdmissionregistrationV1WebhookClientConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AdmissionregistrationV1WebhookClientConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AdmissionregistrationV1WebhookClientConfig read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AdmissionregistrationV1WebhookClientConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of AdmissionregistrationV1WebhookClientConfig + * @throws IOException if the JSON string is invalid with respect to AdmissionregistrationV1WebhookClientConfig + */ + public static AdmissionregistrationV1WebhookClientConfig fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdmissionregistrationV1WebhookClientConfig.class); + } + + /** + * Convert an instance of AdmissionregistrationV1WebhookClientConfig to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java index ccf598cf5f..9b4a9ff333 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceReference holds a reference to Service.legacy.k8s.io */ @@ -45,6 +68,8 @@ public class ApiextensionsV1ServiceReference { @SerializedName(SERIALIZED_NAME_PORT) private Integer port; + public ApiextensionsV1ServiceReference() { + } public ApiextensionsV1ServiceReference name(String name) { @@ -56,8 +81,7 @@ public ApiextensionsV1ServiceReference name(String name) { * name is the name of the service. Required * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the service. Required") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -78,8 +102,7 @@ public ApiextensionsV1ServiceReference namespace(String namespace) { * namespace is the namespace of the service. Required * @return namespace **/ - @ApiModelProperty(required = true, value = "namespace is the namespace of the service. Required") - + @jakarta.annotation.Nonnull public String getNamespace() { return namespace; } @@ -100,9 +123,7 @@ public ApiextensionsV1ServiceReference path(String path) { * path is an optional URL path at which the webhook will be contacted. * @return path **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "path is an optional URL path at which the webhook will be contacted.") - + @jakarta.annotation.Nullable public String getPath() { return path; } @@ -123,9 +144,7 @@ public ApiextensionsV1ServiceReference port(Integer port) { * 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. * @return port **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getPort() { return port; } @@ -136,8 +155,9 @@ public void setPort(Integer port) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -156,7 +176,6 @@ public int hashCode() { return Objects.hash(name, namespace, path, port); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,11 +192,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("path"); + openapiFields.add("port"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("namespace"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ApiextensionsV1ServiceReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ApiextensionsV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ApiextensionsV1ServiceReference is not found in the empty JSON string", ApiextensionsV1ServiceReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ApiextensionsV1ServiceReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiextensionsV1ServiceReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ApiextensionsV1ServiceReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ApiextensionsV1ServiceReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ApiextensionsV1ServiceReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ApiextensionsV1ServiceReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ApiextensionsV1ServiceReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ApiextensionsV1ServiceReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ApiextensionsV1ServiceReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of ApiextensionsV1ServiceReference + * @throws IOException if the JSON string is invalid with respect to ApiextensionsV1ServiceReference + */ + public static ApiextensionsV1ServiceReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ApiextensionsV1ServiceReference.class); + } + + /** + * Convert an instance of ApiextensionsV1ServiceReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java index 40b736b1e7..81587c108f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * WebhookClientConfig contains the information to make a TLS connection with the webhook. */ @@ -42,6 +65,8 @@ public class ApiextensionsV1WebhookClientConfig { @SerializedName(SERIALIZED_NAME_URL) private String url; + public ApiextensionsV1WebhookClientConfig() { + } public ApiextensionsV1WebhookClientConfig caBundle(byte[] caBundle) { @@ -53,9 +78,7 @@ public ApiextensionsV1WebhookClientConfig caBundle(byte[] caBundle) { * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") - + @jakarta.annotation.Nullable public byte[] getCaBundle() { return caBundle; } @@ -76,9 +99,7 @@ public ApiextensionsV1WebhookClientConfig service(ApiextensionsV1ServiceReferenc * Get service * @return service **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public ApiextensionsV1ServiceReference getService() { return service; } @@ -99,9 +120,7 @@ public ApiextensionsV1WebhookClientConfig url(String url) { * url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. * @return url **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") - + @jakarta.annotation.Nullable public String getUrl() { return url; } @@ -112,8 +131,9 @@ public void setUrl(String url) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -131,7 +151,6 @@ public int hashCode() { return Objects.hash(Arrays.hashCode(caBundle), service, url); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -147,11 +166,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("caBundle"); + openapiFields.add("service"); + openapiFields.add("url"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ApiextensionsV1WebhookClientConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ApiextensionsV1WebhookClientConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ApiextensionsV1WebhookClientConfig is not found in the empty JSON string", ApiextensionsV1WebhookClientConfig.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ApiextensionsV1WebhookClientConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiextensionsV1WebhookClientConfig` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `service` + if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { + ApiextensionsV1ServiceReference.validateJsonObject(jsonObj.getAsJsonObject("service")); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ApiextensionsV1WebhookClientConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ApiextensionsV1WebhookClientConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ApiextensionsV1WebhookClientConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ApiextensionsV1WebhookClientConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ApiextensionsV1WebhookClientConfig read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ApiextensionsV1WebhookClientConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of ApiextensionsV1WebhookClientConfig + * @throws IOException if the JSON string is invalid with respect to ApiextensionsV1WebhookClientConfig + */ + public static ApiextensionsV1WebhookClientConfig fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ApiextensionsV1WebhookClientConfig.class); + } + + /** + * Convert an instance of ApiextensionsV1WebhookClientConfig to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java index c8ba6cde84..90a295ec68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceReference holds a reference to Service.legacy.k8s.io */ @@ -41,6 +64,8 @@ public class ApiregistrationV1ServiceReference { @SerializedName(SERIALIZED_NAME_PORT) private Integer port; + public ApiregistrationV1ServiceReference() { + } public ApiregistrationV1ServiceReference name(String name) { @@ -52,9 +77,7 @@ public ApiregistrationV1ServiceReference name(String name) { * Name is the name of the service * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name is the name of the service") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -75,9 +98,7 @@ public ApiregistrationV1ServiceReference namespace(String namespace) { * Namespace is the namespace of the service * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Namespace is the namespace of the service") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -98,9 +119,7 @@ public ApiregistrationV1ServiceReference port(Integer port) { * 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). * @return port **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") - + @jakarta.annotation.Nullable public Integer getPort() { return port; } @@ -111,8 +130,9 @@ public void setPort(Integer port) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +150,6 @@ public int hashCode() { return Objects.hash(name, namespace, port); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +165,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("port"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ApiregistrationV1ServiceReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ApiregistrationV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ApiregistrationV1ServiceReference is not found in the empty JSON string", ApiregistrationV1ServiceReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ApiregistrationV1ServiceReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiregistrationV1ServiceReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ApiregistrationV1ServiceReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ApiregistrationV1ServiceReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ApiregistrationV1ServiceReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ApiregistrationV1ServiceReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ApiregistrationV1ServiceReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ApiregistrationV1ServiceReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of ApiregistrationV1ServiceReference + * @throws IOException if the JSON string is invalid with respect to ApiregistrationV1ServiceReference + */ + public static ApiregistrationV1ServiceReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ApiregistrationV1ServiceReference.class); + } + + /** + * Convert an instance of ApiregistrationV1ServiceReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java index aba30eb3af..775c47fee8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1TokenRequestSpec; import io.kubernetes.client.openapi.models.V1TokenRequestStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TokenRequest requests a token for a given service account. */ @@ -52,6 +75,8 @@ public class AuthenticationV1TokenRequest implements io.kubernetes.client.common @SerializedName(SERIALIZED_NAME_STATUS) private V1TokenRequestStatus status; + public AuthenticationV1TokenRequest() { + } public AuthenticationV1TokenRequest apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public AuthenticationV1TokenRequest apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public AuthenticationV1TokenRequest kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public AuthenticationV1TokenRequest metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public AuthenticationV1TokenRequest spec(V1TokenRequestSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1TokenRequestSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public AuthenticationV1TokenRequest status(V1TokenRequestStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1TokenRequestStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1TokenRequestStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AuthenticationV1TokenRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!AuthenticationV1TokenRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AuthenticationV1TokenRequest is not found in the empty JSON string", AuthenticationV1TokenRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AuthenticationV1TokenRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AuthenticationV1TokenRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AuthenticationV1TokenRequest.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1TokenRequestSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1TokenRequestStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AuthenticationV1TokenRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AuthenticationV1TokenRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AuthenticationV1TokenRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AuthenticationV1TokenRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AuthenticationV1TokenRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AuthenticationV1TokenRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of AuthenticationV1TokenRequest + * @throws IOException if the JSON string is invalid with respect to AuthenticationV1TokenRequest + */ + public static AuthenticationV1TokenRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AuthenticationV1TokenRequest.class); + } + + /** + * Convert an instance of AuthenticationV1TokenRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java index a90445f3e6..a3db57f8b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EndpointPort is a tuple that describes a single port. */ @@ -45,6 +68,8 @@ public class CoreV1EndpointPort { @SerializedName(SERIALIZED_NAME_PROTOCOL) private String protocol; + public CoreV1EndpointPort() { + } public CoreV1EndpointPort appProtocol(String appProtocol) { @@ -79,9 +104,7 @@ public CoreV1EndpointPort name(String name) { * 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. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -102,8 +125,7 @@ public CoreV1EndpointPort port(Integer port) { * The port number of the endpoint. * @return port **/ - @ApiModelProperty(required = true, value = "The port number of the endpoint.") - + @jakarta.annotation.Nonnull public Integer getPort() { return port; } @@ -124,9 +146,7 @@ public CoreV1EndpointPort protocol(String protocol) { * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. * @return protocol **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.") - + @jakarta.annotation.Nullable public String getProtocol() { return protocol; } @@ -137,8 +157,9 @@ public void setProtocol(String protocol) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +178,6 @@ public int hashCode() { return Objects.hash(appProtocol, name, port, protocol); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +194,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("appProtocol"); + openapiFields.add("name"); + openapiFields.add("port"); + openapiFields.add("protocol"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("port"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CoreV1EndpointPort + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CoreV1EndpointPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CoreV1EndpointPort is not found in the empty JSON string", CoreV1EndpointPort.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!CoreV1EndpointPort.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CoreV1EndpointPort` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CoreV1EndpointPort.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("appProtocol") != null && !jsonObj.get("appProtocol").isJsonNull()) && !jsonObj.get("appProtocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `appProtocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("appProtocol").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("protocol") != null && !jsonObj.get("protocol").isJsonNull()) && !jsonObj.get("protocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CoreV1EndpointPort.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CoreV1EndpointPort' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CoreV1EndpointPort.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CoreV1EndpointPort value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public CoreV1EndpointPort read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CoreV1EndpointPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of CoreV1EndpointPort + * @throws IOException if the JSON string is invalid with respect to CoreV1EndpointPort + */ + public static CoreV1EndpointPort fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CoreV1EndpointPort.class); + } + + /** + * Convert an instance of CoreV1EndpointPort to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java index a33f420aae..3a07f5b182 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java @@ -23,11 +23,34 @@ import io.kubernetes.client.openapi.models.V1EventSource; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -102,6 +125,8 @@ public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public CoreV1Event() { + } public CoreV1Event action(String action) { @@ -113,9 +138,7 @@ public CoreV1Event action(String action) { * What action was taken/failed regarding to the Regarding object. * @return action **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "What action was taken/failed regarding to the Regarding object.") - + @jakarta.annotation.Nullable public String getAction() { return action; } @@ -136,9 +159,7 @@ public CoreV1Event apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -159,9 +180,7 @@ public CoreV1Event count(Integer count) { * The number of times this event has occurred. * @return count **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of times this event has occurred.") - + @jakarta.annotation.Nullable public Integer getCount() { return count; } @@ -182,9 +201,7 @@ public CoreV1Event eventTime(OffsetDateTime eventTime) { * Time when this Event was first observed. * @return eventTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Time when this Event was first observed.") - + @jakarta.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; } @@ -205,9 +222,7 @@ public CoreV1Event firstTimestamp(OffsetDateTime firstTimestamp) { * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) * @return firstTimestamp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)") - + @jakarta.annotation.Nullable public OffsetDateTime getFirstTimestamp() { return firstTimestamp; } @@ -228,8 +243,7 @@ public CoreV1Event involvedObject(V1ObjectReference involvedObject) { * Get involvedObject * @return involvedObject **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1ObjectReference getInvolvedObject() { return involvedObject; } @@ -250,9 +264,7 @@ public CoreV1Event kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -273,9 +285,7 @@ public CoreV1Event lastTimestamp(OffsetDateTime lastTimestamp) { * The time at which the most recent occurrence of this event was recorded. * @return lastTimestamp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The time at which the most recent occurrence of this event was recorded.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTimestamp() { return lastTimestamp; } @@ -296,9 +306,7 @@ public CoreV1Event message(String message) { * A human-readable description of the status of this operation. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human-readable description of the status of this operation.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -319,8 +327,7 @@ public CoreV1Event metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1ObjectMeta getMetadata() { return metadata; } @@ -341,9 +348,7 @@ public CoreV1Event reason(String reason) { * This should be a short, machine understandable string that gives the reason for the transition into the object's current status. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -364,9 +369,7 @@ public CoreV1Event related(V1ObjectReference related) { * Get related * @return related **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectReference getRelated() { return related; } @@ -387,9 +390,7 @@ public CoreV1Event reportingComponent(String reportingComponent) { * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. * @return reportingComponent **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.") - + @jakarta.annotation.Nullable public String getReportingComponent() { return reportingComponent; } @@ -410,9 +411,7 @@ public CoreV1Event reportingInstance(String reportingInstance) { * ID of the controller instance, e.g. `kubelet-xyzf`. * @return reportingInstance **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ID of the controller instance, e.g. `kubelet-xyzf`.") - + @jakarta.annotation.Nullable public String getReportingInstance() { return reportingInstance; } @@ -433,9 +432,7 @@ public CoreV1Event series(CoreV1EventSeries series) { * Get series * @return series **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public CoreV1EventSeries getSeries() { return series; } @@ -456,9 +453,7 @@ public CoreV1Event source(V1EventSource source) { * Get source * @return source **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1EventSource getSource() { return source; } @@ -479,9 +474,7 @@ public CoreV1Event type(String type) { * Type of this event (Normal, Warning), new types could be added in the future * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Type of this event (Normal, Warning), new types could be added in the future") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -492,8 +485,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -525,7 +519,6 @@ public int hashCode() { return Objects.hash(action, apiVersion, count, eventTime, firstTimestamp, involvedObject, kind, lastTimestamp, message, metadata, reason, related, reportingComponent, reportingInstance, series, source, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -555,11 +548,159 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("action"); + openapiFields.add("apiVersion"); + openapiFields.add("count"); + openapiFields.add("eventTime"); + openapiFields.add("firstTimestamp"); + openapiFields.add("involvedObject"); + openapiFields.add("kind"); + openapiFields.add("lastTimestamp"); + openapiFields.add("message"); + openapiFields.add("metadata"); + openapiFields.add("reason"); + openapiFields.add("related"); + openapiFields.add("reportingComponent"); + openapiFields.add("reportingInstance"); + openapiFields.add("series"); + openapiFields.add("source"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("involvedObject"); + openapiRequiredFields.add("metadata"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CoreV1Event + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CoreV1Event.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CoreV1Event is not found in the empty JSON string", CoreV1Event.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!CoreV1Event.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CoreV1Event` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CoreV1Event.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) && !jsonObj.get("action").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `action` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action").toString())); + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // validate the required field `involvedObject` + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("involvedObject")); + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + // validate the required field `metadata` + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + // validate the optional field `related` + if (jsonObj.get("related") != null && !jsonObj.get("related").isJsonNull()) { + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("related")); + } + if ((jsonObj.get("reportingComponent") != null && !jsonObj.get("reportingComponent").isJsonNull()) && !jsonObj.get("reportingComponent").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reportingComponent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportingComponent").toString())); + } + if ((jsonObj.get("reportingInstance") != null && !jsonObj.get("reportingInstance").isJsonNull()) && !jsonObj.get("reportingInstance").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reportingInstance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportingInstance").toString())); + } + // validate the optional field `series` + if (jsonObj.get("series") != null && !jsonObj.get("series").isJsonNull()) { + CoreV1EventSeries.validateJsonObject(jsonObj.getAsJsonObject("series")); + } + // validate the optional field `source` + if (jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) { + V1EventSource.validateJsonObject(jsonObj.getAsJsonObject("source")); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CoreV1Event.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CoreV1Event' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CoreV1Event.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CoreV1Event value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public CoreV1Event read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CoreV1Event given an JSON string + * + * @param jsonString JSON string + * @return An instance of CoreV1Event + * @throws IOException if the JSON string is invalid with respect to CoreV1Event + */ + public static CoreV1Event fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CoreV1Event.class); + } + + /** + * Convert an instance of CoreV1Event to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java index 8059372c40..0164f40141 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.CoreV1Event; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EventList is a list of events. */ @@ -49,6 +72,8 @@ public class CoreV1EventList implements io.kubernetes.client.common.KubernetesLi @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public CoreV1EventList() { + } public CoreV1EventList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public CoreV1EventList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public CoreV1EventList items(List items) { } public CoreV1EventList addItemsItem(CoreV1Event itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public CoreV1EventList addItemsItem(CoreV1Event itemsItem) { * List of events * @return items **/ - @ApiModelProperty(required = true, value = "List of events") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public CoreV1EventList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public CoreV1EventList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CoreV1EventList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CoreV1EventList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CoreV1EventList is not found in the empty JSON string", CoreV1EventList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!CoreV1EventList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CoreV1EventList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CoreV1EventList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + CoreV1Event.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CoreV1EventList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CoreV1EventList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CoreV1EventList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CoreV1EventList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public CoreV1EventList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CoreV1EventList given an JSON string + * + * @param jsonString JSON string + * @return An instance of CoreV1EventList + * @throws IOException if the JSON string is invalid with respect to CoreV1EventList + */ + public static CoreV1EventList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CoreV1EventList.class); + } + + /** + * Convert an instance of CoreV1EventList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java index de2b311df2..5ee70de367 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. */ @@ -38,6 +61,8 @@ public class CoreV1EventSeries { @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) private OffsetDateTime lastObservedTime; + public CoreV1EventSeries() { + } public CoreV1EventSeries count(Integer count) { @@ -49,9 +74,7 @@ public CoreV1EventSeries count(Integer count) { * Number of occurrences in this series up to the last heartbeat time * @return count **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Number of occurrences in this series up to the last heartbeat time") - + @jakarta.annotation.Nullable public Integer getCount() { return count; } @@ -72,9 +95,7 @@ public CoreV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { * Time of the last occurrence observed * @return lastObservedTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Time of the last occurrence observed") - + @jakarta.annotation.Nullable public OffsetDateTime getLastObservedTime() { return lastObservedTime; } @@ -85,8 +106,9 @@ public void setLastObservedTime(OffsetDateTime lastObservedTime) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(count, lastObservedTime); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,95 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("count"); + openapiFields.add("lastObservedTime"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CoreV1EventSeries + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CoreV1EventSeries.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CoreV1EventSeries is not found in the empty JSON string", CoreV1EventSeries.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!CoreV1EventSeries.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CoreV1EventSeries` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CoreV1EventSeries.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CoreV1EventSeries' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CoreV1EventSeries.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CoreV1EventSeries value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public CoreV1EventSeries read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CoreV1EventSeries given an JSON string + * + * @param jsonString JSON string + * @return An instance of CoreV1EventSeries + * @throws IOException if the JSON string is invalid with respect to CoreV1EventSeries + */ + public static CoreV1EventSeries fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CoreV1EventSeries.class); + } + + /** + * Convert an instance of CoreV1EventSeries to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java index f8b27d1fd7..105a17c232 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EndpointPort represents a Port used by an EndpointSlice */ @@ -45,6 +68,8 @@ public class DiscoveryV1EndpointPort { @SerializedName(SERIALIZED_NAME_PROTOCOL) private String protocol; + public DiscoveryV1EndpointPort() { + } public DiscoveryV1EndpointPort appProtocol(String appProtocol) { @@ -79,9 +104,7 @@ public DiscoveryV1EndpointPort name(String name) { * name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied 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. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied 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.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -102,9 +125,7 @@ public DiscoveryV1EndpointPort port(Integer port) { * 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. * @return port **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getPort() { return port; } @@ -125,9 +146,7 @@ public DiscoveryV1EndpointPort protocol(String protocol) { * protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. * @return protocol **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.") - + @jakarta.annotation.Nullable public String getProtocol() { return protocol; } @@ -138,8 +157,9 @@ public void setProtocol(String protocol) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +178,6 @@ public int hashCode() { return Objects.hash(appProtocol, name, port, protocol); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +194,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("appProtocol"); + openapiFields.add("name"); + openapiFields.add("port"); + openapiFields.add("protocol"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to DiscoveryV1EndpointPort + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!DiscoveryV1EndpointPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in DiscoveryV1EndpointPort is not found in the empty JSON string", DiscoveryV1EndpointPort.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!DiscoveryV1EndpointPort.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DiscoveryV1EndpointPort` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("appProtocol") != null && !jsonObj.get("appProtocol").isJsonNull()) && !jsonObj.get("appProtocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `appProtocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("appProtocol").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("protocol") != null && !jsonObj.get("protocol").isJsonNull()) && !jsonObj.get("protocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DiscoveryV1EndpointPort.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DiscoveryV1EndpointPort' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DiscoveryV1EndpointPort.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DiscoveryV1EndpointPort value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DiscoveryV1EndpointPort read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DiscoveryV1EndpointPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of DiscoveryV1EndpointPort + * @throws IOException if the JSON string is invalid with respect to DiscoveryV1EndpointPort + */ + public static DiscoveryV1EndpointPort fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DiscoveryV1EndpointPort.class); + } + + /** + * Convert an instance of DiscoveryV1EndpointPort to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java index 4424f9b545..b6f6406a24 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java @@ -23,11 +23,34 @@ import io.kubernetes.client.openapi.models.V1EventSource; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -102,6 +125,8 @@ public class EventsV1Event implements io.kubernetes.client.common.KubernetesObje @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public EventsV1Event() { + } public EventsV1Event action(String action) { @@ -113,9 +138,7 @@ public EventsV1Event action(String action) { * action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. * @return action **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getAction() { return action; } @@ -136,9 +159,7 @@ public EventsV1Event apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -159,9 +180,7 @@ public EventsV1Event deprecatedCount(Integer deprecatedCount) { * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. * @return deprecatedCount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.") - + @jakarta.annotation.Nullable public Integer getDeprecatedCount() { return deprecatedCount; } @@ -182,9 +201,7 @@ public EventsV1Event deprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTime * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. * @return deprecatedFirstTimestamp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") - + @jakarta.annotation.Nullable public OffsetDateTime getDeprecatedFirstTimestamp() { return deprecatedFirstTimestamp; } @@ -205,9 +222,7 @@ public EventsV1Event deprecatedLastTimestamp(OffsetDateTime deprecatedLastTimest * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. * @return deprecatedLastTimestamp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") - + @jakarta.annotation.Nullable public OffsetDateTime getDeprecatedLastTimestamp() { return deprecatedLastTimestamp; } @@ -228,9 +243,7 @@ public EventsV1Event deprecatedSource(V1EventSource deprecatedSource) { * Get deprecatedSource * @return deprecatedSource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1EventSource getDeprecatedSource() { return deprecatedSource; } @@ -251,8 +264,7 @@ public EventsV1Event eventTime(OffsetDateTime eventTime) { * eventTime is the time when this Event was first observed. It is required. * @return eventTime **/ - @ApiModelProperty(required = true, value = "eventTime is the time when this Event was first observed. It is required.") - + @jakarta.annotation.Nonnull public OffsetDateTime getEventTime() { return eventTime; } @@ -273,9 +285,7 @@ public EventsV1Event kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -296,9 +306,7 @@ public EventsV1Event metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -319,9 +327,7 @@ public EventsV1Event note(String note) { * note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. * @return note **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getNote() { return note; } @@ -342,9 +348,7 @@ public EventsV1Event reason(String reason) { * reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -365,9 +369,7 @@ public EventsV1Event regarding(V1ObjectReference regarding) { * Get regarding * @return regarding **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectReference getRegarding() { return regarding; } @@ -388,9 +390,7 @@ public EventsV1Event related(V1ObjectReference related) { * Get related * @return related **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectReference getRelated() { return related; } @@ -411,9 +411,7 @@ public EventsV1Event reportingController(String reportingController) { * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. * @return reportingController **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.") - + @jakarta.annotation.Nullable public String getReportingController() { return reportingController; } @@ -434,9 +432,7 @@ public EventsV1Event reportingInstance(String reportingInstance) { * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. * @return reportingInstance **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getReportingInstance() { return reportingInstance; } @@ -457,9 +453,7 @@ public EventsV1Event series(EventsV1EventSeries series) { * Get series * @return series **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public EventsV1EventSeries getSeries() { return series; } @@ -480,9 +474,7 @@ public EventsV1Event type(String type) { * type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -493,8 +485,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -526,7 +519,6 @@ public int hashCode() { return Objects.hash(action, apiVersion, deprecatedCount, deprecatedFirstTimestamp, deprecatedLastTimestamp, deprecatedSource, eventTime, kind, metadata, note, reason, regarding, related, reportingController, reportingInstance, series, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -556,11 +548,162 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("action"); + openapiFields.add("apiVersion"); + openapiFields.add("deprecatedCount"); + openapiFields.add("deprecatedFirstTimestamp"); + openapiFields.add("deprecatedLastTimestamp"); + openapiFields.add("deprecatedSource"); + openapiFields.add("eventTime"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("note"); + openapiFields.add("reason"); + openapiFields.add("regarding"); + openapiFields.add("related"); + openapiFields.add("reportingController"); + openapiFields.add("reportingInstance"); + openapiFields.add("series"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("eventTime"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to EventsV1Event + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!EventsV1Event.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in EventsV1Event is not found in the empty JSON string", EventsV1Event.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!EventsV1Event.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `EventsV1Event` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : EventsV1Event.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) && !jsonObj.get("action").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `action` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action").toString())); + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // validate the optional field `deprecatedSource` + if (jsonObj.get("deprecatedSource") != null && !jsonObj.get("deprecatedSource").isJsonNull()) { + V1EventSource.validateJsonObject(jsonObj.getAsJsonObject("deprecatedSource")); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if ((jsonObj.get("note") != null && !jsonObj.get("note").isJsonNull()) && !jsonObj.get("note").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `note` to be a primitive type in the JSON string but got `%s`", jsonObj.get("note").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + // validate the optional field `regarding` + if (jsonObj.get("regarding") != null && !jsonObj.get("regarding").isJsonNull()) { + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("regarding")); + } + // validate the optional field `related` + if (jsonObj.get("related") != null && !jsonObj.get("related").isJsonNull()) { + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("related")); + } + if ((jsonObj.get("reportingController") != null && !jsonObj.get("reportingController").isJsonNull()) && !jsonObj.get("reportingController").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reportingController` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportingController").toString())); + } + if ((jsonObj.get("reportingInstance") != null && !jsonObj.get("reportingInstance").isJsonNull()) && !jsonObj.get("reportingInstance").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reportingInstance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportingInstance").toString())); + } + // validate the optional field `series` + if (jsonObj.get("series") != null && !jsonObj.get("series").isJsonNull()) { + EventsV1EventSeries.validateJsonObject(jsonObj.getAsJsonObject("series")); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!EventsV1Event.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EventsV1Event' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(EventsV1Event.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, EventsV1Event value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public EventsV1Event read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of EventsV1Event given an JSON string + * + * @param jsonString JSON string + * @return An instance of EventsV1Event + * @throws IOException if the JSON string is invalid with respect to EventsV1Event + */ + public static EventsV1Event fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, EventsV1Event.class); + } + + /** + * Convert an instance of EventsV1Event to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java index 008d8d9aa7..8a07f9d455 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.EventsV1Event; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EventList is a list of Event objects. */ @@ -49,6 +72,8 @@ public class EventsV1EventList implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public EventsV1EventList() { + } public EventsV1EventList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public EventsV1EventList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public EventsV1EventList items(List items) { } public EventsV1EventList addItemsItem(EventsV1Event itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public EventsV1EventList addItemsItem(EventsV1Event itemsItem) { * items is a list of schema objects. * @return items **/ - @ApiModelProperty(required = true, value = "items is a list of schema objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public EventsV1EventList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public EventsV1EventList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to EventsV1EventList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!EventsV1EventList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in EventsV1EventList is not found in the empty JSON string", EventsV1EventList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!EventsV1EventList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `EventsV1EventList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : EventsV1EventList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + EventsV1Event.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!EventsV1EventList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EventsV1EventList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(EventsV1EventList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, EventsV1EventList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public EventsV1EventList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of EventsV1EventList given an JSON string + * + * @param jsonString JSON string + * @return An instance of EventsV1EventList + * @throws IOException if the JSON string is invalid with respect to EventsV1EventList + */ + public static EventsV1EventList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, EventsV1EventList.class); + } + + /** + * Convert an instance of EventsV1EventList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java index d0c0c8f5d0..8549d18498 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,6 +61,8 @@ public class EventsV1EventSeries { @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) private OffsetDateTime lastObservedTime; + public EventsV1EventSeries() { + } public EventsV1EventSeries count(Integer count) { @@ -49,8 +74,7 @@ public EventsV1EventSeries count(Integer count) { * count is the number of occurrences in this series up to the last heartbeat time. * @return count **/ - @ApiModelProperty(required = true, value = "count is the number of occurrences in this series up to the last heartbeat time.") - + @jakarta.annotation.Nonnull public Integer getCount() { return count; } @@ -71,8 +95,7 @@ public EventsV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { * lastObservedTime is the time when last Event from the series was seen before last heartbeat. * @return lastObservedTime **/ - @ApiModelProperty(required = true, value = "lastObservedTime is the time when last Event from the series was seen before last heartbeat.") - + @jakarta.annotation.Nonnull public OffsetDateTime getLastObservedTime() { return lastObservedTime; } @@ -83,8 +106,9 @@ public void setLastObservedTime(OffsetDateTime lastObservedTime) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +125,6 @@ public int hashCode() { return Objects.hash(count, lastObservedTime); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +139,104 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("count"); + openapiFields.add("lastObservedTime"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("count"); + openapiRequiredFields.add("lastObservedTime"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to EventsV1EventSeries + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!EventsV1EventSeries.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in EventsV1EventSeries is not found in the empty JSON string", EventsV1EventSeries.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!EventsV1EventSeries.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `EventsV1EventSeries` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : EventsV1EventSeries.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!EventsV1EventSeries.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EventsV1EventSeries' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(EventsV1EventSeries.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, EventsV1EventSeries value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public EventsV1EventSeries read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of EventsV1EventSeries given an JSON string + * + * @param jsonString JSON string + * @return An instance of EventsV1EventSeries + * @throws IOException if the JSON string is invalid with respect to EventsV1EventSeries + */ + public static EventsV1EventSeries fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, EventsV1EventSeries.class); + } + + /** + * Convert an instance of EventsV1EventSeries to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java index c1a74c24a5..e5d321c82c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TokenRequest contains parameters of a service account token. */ @@ -37,6 +60,8 @@ public class StorageV1TokenRequest { @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) private Long expirationSeconds; + public StorageV1TokenRequest() { + } public StorageV1TokenRequest audience(String audience) { @@ -48,8 +73,7 @@ public StorageV1TokenRequest audience(String audience) { * audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver. * @return audience **/ - @ApiModelProperty(required = true, value = "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.") - + @jakarta.annotation.Nonnull public String getAudience() { return audience; } @@ -70,9 +94,7 @@ public StorageV1TokenRequest expirationSeconds(Long expirationSeconds) { * expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\". * @return expirationSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".") - + @jakarta.annotation.Nullable public Long getExpirationSeconds() { return expirationSeconds; } @@ -83,8 +105,9 @@ public void setExpirationSeconds(Long expirationSeconds) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +124,6 @@ public int hashCode() { return Objects.hash(audience, expirationSeconds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +138,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("audience"); + openapiFields.add("expirationSeconds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("audience"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to StorageV1TokenRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!StorageV1TokenRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in StorageV1TokenRequest is not found in the empty JSON string", StorageV1TokenRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!StorageV1TokenRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `StorageV1TokenRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : StorageV1TokenRequest.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("audience").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `audience` to be a primitive type in the JSON string but got `%s`", jsonObj.get("audience").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!StorageV1TokenRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'StorageV1TokenRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(StorageV1TokenRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, StorageV1TokenRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public StorageV1TokenRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of StorageV1TokenRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of StorageV1TokenRequest + * @throws IOException if the JSON string is invalid with respect to StorageV1TokenRequest + */ + public static StorageV1TokenRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, StorageV1TokenRequest.class); + } + + /** + * Convert an instance of StorageV1TokenRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java index c43232d1d7..8fb13eef55 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery; import io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * APIGroup contains the name, the supported versions, and the preferred version of a group. */ @@ -51,12 +74,14 @@ public class V1APIGroup { public static final String SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS = "serverAddressByClientCIDRs"; @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS) - private List serverAddressByClientCIDRs = null; + private List serverAddressByClientCIDRs; public static final String SERIALIZED_NAME_VERSIONS = "versions"; @SerializedName(SERIALIZED_NAME_VERSIONS) private List versions = new ArrayList<>(); + public V1APIGroup() { + } public V1APIGroup apiVersion(String apiVersion) { @@ -68,9 +93,7 @@ public V1APIGroup apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -91,9 +114,7 @@ public V1APIGroup kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -114,8 +135,7 @@ public V1APIGroup name(String name) { * name is the name of the group. * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the group.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -136,9 +156,7 @@ public V1APIGroup preferredVersion(V1GroupVersionForDiscovery preferredVersion) * Get preferredVersion * @return preferredVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1GroupVersionForDiscovery getPreferredVersion() { return preferredVersion; } @@ -167,9 +185,7 @@ public V1APIGroup addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR * 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. * @return serverAddressByClientCIDRs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs; } @@ -187,6 +203,9 @@ public V1APIGroup versions(List versions) { } public V1APIGroup addVersionsItem(V1GroupVersionForDiscovery versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList<>(); + } this.versions.add(versionsItem); return this; } @@ -195,8 +214,7 @@ public V1APIGroup addVersionsItem(V1GroupVersionForDiscovery versionsItem) { * versions are the versions supported in this group. * @return versions **/ - @ApiModelProperty(required = true, value = "versions are the versions supported in this group.") - + @jakarta.annotation.Nonnull public List getVersions() { return versions; } @@ -207,8 +225,9 @@ public void setVersions(List versions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -229,7 +248,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, name, preferredVersion, serverAddressByClientCIDRs, versions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -248,11 +266,145 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("preferredVersion"); + openapiFields.add("serverAddressByClientCIDRs"); + openapiFields.add("versions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("versions"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIGroup + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIGroup is not found in the empty JSON string", V1APIGroup.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIGroup` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1APIGroup.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `preferredVersion` + if (jsonObj.get("preferredVersion") != null && !jsonObj.get("preferredVersion").isJsonNull()) { + V1GroupVersionForDiscovery.validateJsonObject(jsonObj.getAsJsonObject("preferredVersion")); + } + if (jsonObj.get("serverAddressByClientCIDRs") != null && !jsonObj.get("serverAddressByClientCIDRs").isJsonNull()) { + JsonArray jsonArrayserverAddressByClientCIDRs = jsonObj.getAsJsonArray("serverAddressByClientCIDRs"); + if (jsonArrayserverAddressByClientCIDRs != null) { + // ensure the json data is an array + if (!jsonObj.get("serverAddressByClientCIDRs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `serverAddressByClientCIDRs` to be an array in the JSON string but got `%s`", jsonObj.get("serverAddressByClientCIDRs").toString())); + } + + // validate the optional field `serverAddressByClientCIDRs` (array) + for (int i = 0; i < jsonArrayserverAddressByClientCIDRs.size(); i++) { + V1ServerAddressByClientCIDR.validateJsonObject(jsonArrayserverAddressByClientCIDRs.get(i).getAsJsonObject()); + }; + } + } + // ensure the json data is an array + if (!jsonObj.get("versions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); + } + + JsonArray jsonArrayversions = jsonObj.getAsJsonArray("versions"); + // validate the required field `versions` (array) + for (int i = 0; i < jsonArrayversions.size(); i++) { + V1GroupVersionForDiscovery.validateJsonObject(jsonArrayversions.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIGroup read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIGroup given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIGroup + * @throws IOException if the JSON string is invalid with respect to V1APIGroup + */ + public static V1APIGroup fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIGroup.class); + } + + /** + * Convert an instance of V1APIGroup to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java index ddf380bd1c..3f1b2e29cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1APIGroup; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. */ @@ -44,6 +67,8 @@ public class V1APIGroupList { @SerializedName(SERIALIZED_NAME_KIND) private String kind; + public V1APIGroupList() { + } public V1APIGroupList apiVersion(String apiVersion) { @@ -55,9 +80,7 @@ public V1APIGroupList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -75,6 +98,9 @@ public V1APIGroupList groups(List groups) { } public V1APIGroupList addGroupsItem(V1APIGroup groupsItem) { + if (this.groups == null) { + this.groups = new ArrayList<>(); + } this.groups.add(groupsItem); return this; } @@ -83,8 +109,7 @@ public V1APIGroupList addGroupsItem(V1APIGroup groupsItem) { * groups is a list of APIGroup. * @return groups **/ - @ApiModelProperty(required = true, value = "groups is a list of APIGroup.") - + @jakarta.annotation.Nonnull public List getGroups() { return groups; } @@ -105,9 +130,7 @@ public V1APIGroupList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -118,8 +141,9 @@ public void setKind(String kind) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -137,7 +161,6 @@ public int hashCode() { return Objects.hash(apiVersion, groups, kind); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,11 +176,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("groups"); + openapiFields.add("kind"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("groups"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIGroupList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIGroupList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIGroupList is not found in the empty JSON string", V1APIGroupList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIGroupList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIGroupList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1APIGroupList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + + JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); + // validate the required field `groups` (array) + for (int i = 0; i < jsonArraygroups.size(); i++) { + V1APIGroup.validateJsonObject(jsonArraygroups.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIGroupList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIGroupList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIGroupList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIGroupList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIGroupList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIGroupList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIGroupList + * @throws IOException if the JSON string is invalid with respect to V1APIGroupList + */ + public static V1APIGroupList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIGroupList.class); + } + + /** + * Convert an instance of V1APIGroupList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java index f696e1e689..112b931c1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * APIResource specifies the name of a resource and whether it is namespaced. */ @@ -33,7 +56,7 @@ public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) - private List categories = null; + private List categories; public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -53,7 +76,7 @@ public class V1APIResource { public static final String SERIALIZED_NAME_SHORT_NAMES = "shortNames"; @SerializedName(SERIALIZED_NAME_SHORT_NAMES) - private List shortNames = null; + private List shortNames; public static final String SERIALIZED_NAME_SINGULAR_NAME = "singularName"; @SerializedName(SERIALIZED_NAME_SINGULAR_NAME) @@ -71,6 +94,8 @@ public class V1APIResource { @SerializedName(SERIALIZED_NAME_VERSION) private String version; + public V1APIResource() { + } public V1APIResource categories(List categories) { @@ -90,9 +115,7 @@ public V1APIResource addCategoriesItem(String categoriesItem) { * categories is a list of the grouped resources this resource belongs to (e.g. 'all') * @return categories **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "categories is a list of the grouped resources this resource belongs to (e.g. 'all')") - + @jakarta.annotation.Nullable public List getCategories() { return categories; } @@ -113,9 +136,7 @@ public V1APIResource group(String group) { * 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\". * @return group **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public String getGroup() { return group; } @@ -136,8 +157,7 @@ public V1APIResource kind(String kind) { * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') * @return kind **/ - @ApiModelProperty(required = true, value = "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -158,8 +178,7 @@ public V1APIResource name(String name) { * name is the plural name of the resource. * @return name **/ - @ApiModelProperty(required = true, value = "name is the plural name of the resource.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -180,8 +199,7 @@ public V1APIResource namespaced(Boolean namespaced) { * namespaced indicates if a resource is namespaced or not. * @return namespaced **/ - @ApiModelProperty(required = true, value = "namespaced indicates if a resource is namespaced or not.") - + @jakarta.annotation.Nonnull public Boolean getNamespaced() { return namespaced; } @@ -210,9 +228,7 @@ public V1APIResource addShortNamesItem(String shortNamesItem) { * shortNames is a list of suggested short names of the resource. * @return shortNames **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "shortNames is a list of suggested short names of the resource.") - + @jakarta.annotation.Nullable public List getShortNames() { return shortNames; } @@ -233,8 +249,7 @@ public V1APIResource singularName(String singularName) { * 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. * @return singularName **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getSingularName() { return singularName; } @@ -255,9 +270,7 @@ public V1APIResource storageVersionHash(String storageVersionHash) { * 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. * @return storageVersionHash **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getStorageVersionHash() { return storageVersionHash; } @@ -275,6 +288,9 @@ public V1APIResource verbs(List verbs) { } public V1APIResource addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } this.verbs.add(verbsItem); return this; } @@ -283,8 +299,7 @@ public V1APIResource addVerbsItem(String verbsItem) { * verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) * @return verbs **/ - @ApiModelProperty(required = true, value = "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)") - + @jakarta.annotation.Nonnull public List getVerbs() { return verbs; } @@ -305,9 +320,7 @@ public V1APIResource version(String version) { * 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)\". * @return version **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)\".") - + @jakarta.annotation.Nullable public String getVersion() { return version; } @@ -318,8 +331,9 @@ public void setVersion(String version) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -344,7 +358,6 @@ public int hashCode() { return Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -367,11 +380,147 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("categories"); + openapiFields.add("group"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("namespaced"); + openapiFields.add("shortNames"); + openapiFields.add("singularName"); + openapiFields.add("storageVersionHash"); + openapiFields.add("verbs"); + openapiFields.add("version"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("namespaced"); + openapiRequiredFields.add("singularName"); + openapiRequiredFields.add("verbs"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIResource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIResource is not found in the empty JSON string", V1APIResource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIResource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIResource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1APIResource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("categories") != null && !jsonObj.get("categories").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `categories` to be an array in the JSON string but got `%s`", jsonObj.get("categories").toString())); + } + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("shortNames") != null && !jsonObj.get("shortNames").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `shortNames` to be an array in the JSON string but got `%s`", jsonObj.get("shortNames").toString())); + } + if (!jsonObj.get("singularName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `singularName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("singularName").toString())); + } + if ((jsonObj.get("storageVersionHash") != null && !jsonObj.get("storageVersionHash").isJsonNull()) && !jsonObj.get("storageVersionHash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storageVersionHash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storageVersionHash").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIResource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIResource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIResource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIResource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIResource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIResource + * @throws IOException if the JSON string is invalid with respect to V1APIResource + */ + public static V1APIResource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIResource.class); + } + + /** + * Convert an instance of V1APIResource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java index 653971d4a0..485aedefbc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1APIResource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -48,6 +71,8 @@ public class V1APIResourceList { @SerializedName(SERIALIZED_NAME_RESOURCES) private List resources = new ArrayList<>(); + public V1APIResourceList() { + } public V1APIResourceList apiVersion(String apiVersion) { @@ -59,9 +84,7 @@ public V1APIResourceList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -82,8 +105,7 @@ public V1APIResourceList groupVersion(String groupVersion) { * groupVersion is the group and version this APIResourceList is for. * @return groupVersion **/ - @ApiModelProperty(required = true, value = "groupVersion is the group and version this APIResourceList is for.") - + @jakarta.annotation.Nonnull public String getGroupVersion() { return groupVersion; } @@ -104,9 +126,7 @@ public V1APIResourceList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -124,6 +144,9 @@ public V1APIResourceList resources(List resources) { } public V1APIResourceList addResourcesItem(V1APIResource resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } this.resources.add(resourcesItem); return this; } @@ -132,8 +155,7 @@ public V1APIResourceList addResourcesItem(V1APIResource resourcesItem) { * resources contains the name of the resources and if they are namespaced. * @return resources **/ - @ApiModelProperty(required = true, value = "resources contains the name of the resources and if they are namespaced.") - + @jakarta.annotation.Nonnull public List getResources() { return resources; } @@ -144,8 +166,9 @@ public void setResources(List resources) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -164,7 +187,6 @@ public int hashCode() { return Objects.hash(apiVersion, groupVersion, kind, resources); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -181,11 +203,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("groupVersion"); + openapiFields.add("kind"); + openapiFields.add("resources"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("groupVersion"); + openapiRequiredFields.add("resources"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIResourceList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIResourceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIResourceList is not found in the empty JSON string", V1APIResourceList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIResourceList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIResourceList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1APIResourceList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (!jsonObj.get("groupVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `groupVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("groupVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + + JsonArray jsonArrayresources = jsonObj.getAsJsonArray("resources"); + // validate the required field `resources` (array) + for (int i = 0; i < jsonArrayresources.size(); i++) { + V1APIResource.validateJsonObject(jsonArrayresources.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIResourceList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIResourceList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIResourceList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIResourceList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIResourceList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIResourceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIResourceList + * @throws IOException if the JSON string is invalid with respect to V1APIResourceList + */ + public static V1APIResourceList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIResourceList.class); + } + + /** + * Convert an instance of V1APIResourceList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java index bf192cefab..ec9dfb641a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1APIServiceSpec; import io.kubernetes.client.openapi.models.V1APIServiceStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * APIService represents a server for a particular GroupVersion. Name must be \"version.group\". */ @@ -52,6 +75,8 @@ public class V1APIService implements io.kubernetes.client.common.KubernetesObjec @SerializedName(SERIALIZED_NAME_STATUS) private V1APIServiceStatus status; + public V1APIService() { + } public V1APIService apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1APIService apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1APIService kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1APIService metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1APIService spec(V1APIServiceSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1APIServiceSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1APIService status(V1APIServiceStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1APIServiceStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1APIServiceStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIService + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIService.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIService is not found in the empty JSON string", V1APIService.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIService.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIService` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1APIServiceSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1APIServiceStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIService.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIService' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIService.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIService value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIService read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIService given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIService + * @throws IOException if the JSON string is invalid with respect to V1APIService + */ + public static V1APIService fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIService.class); + } + + /** + * Convert an instance of V1APIService to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java index 4615faf53c..e020314b91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * APIServiceCondition describes the state of an APIService at a particular point */ @@ -50,6 +73,8 @@ public class V1APIServiceCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1APIServiceCondition() { + } public V1APIServiceCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1APIServiceCondition lastTransitionTime(OffsetDateTime lastTransitionTim * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1APIServiceCondition message(String message) { * Human-readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Human-readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1APIServiceCondition reason(String reason) { * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,8 +149,7 @@ public V1APIServiceCondition status(String status) { * Status is the status of the condition. Can be True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -152,8 +170,7 @@ public V1APIServiceCondition type(String type) { * Type is the type of the condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type is the type of the condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -164,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIServiceCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIServiceCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIServiceCondition is not found in the empty JSON string", V1APIServiceCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIServiceCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIServiceCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1APIServiceCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIServiceCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIServiceCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIServiceCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIServiceCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIServiceCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIServiceCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIServiceCondition + * @throws IOException if the JSON string is invalid with respect to V1APIServiceCondition + */ + public static V1APIServiceCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIServiceCondition.class); + } + + /** + * Convert an instance of V1APIServiceCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java index 3e83cb254c..5d6c9eec89 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1APIService; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * APIServiceList is a list of APIService objects. */ @@ -49,6 +72,8 @@ public class V1APIServiceList implements io.kubernetes.client.common.KubernetesL @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1APIServiceList() { + } public V1APIServiceList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1APIServiceList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1APIServiceList items(List items) { } public V1APIServiceList addItemsItem(V1APIService itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1APIServiceList addItemsItem(V1APIService itemsItem) { * Items is the list of APIService * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of APIService") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1APIServiceList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1APIServiceList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIServiceList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIServiceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIServiceList is not found in the empty JSON string", V1APIServiceList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIServiceList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIServiceList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1APIServiceList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1APIService.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIServiceList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIServiceList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIServiceList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIServiceList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIServiceList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIServiceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIServiceList + * @throws IOException if the JSON string is invalid with respect to V1APIServiceList + */ + public static V1APIServiceList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIServiceList.class); + } + + /** + * Convert an instance of V1APIServiceList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java index f2f03ebb76..34a45921e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. */ @@ -58,6 +81,8 @@ public class V1APIServiceSpec { @SerializedName(SERIALIZED_NAME_VERSION_PRIORITY) private Integer versionPriority; + public V1APIServiceSpec() { + } public V1APIServiceSpec caBundle(byte[] caBundle) { @@ -69,9 +94,7 @@ public V1APIServiceSpec caBundle(byte[] caBundle) { * 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. * @return caBundle **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public byte[] getCaBundle() { return caBundle; } @@ -92,9 +115,7 @@ public V1APIServiceSpec group(String group) { * Group is the API group name this server hosts * @return group **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Group is the API group name this server hosts") - + @jakarta.annotation.Nullable public String getGroup() { return group; } @@ -115,8 +136,7 @@ public V1APIServiceSpec groupPriorityMinimum(Integer groupPriorityMinimum) { * GroupPriorityMininum 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 GroupPriorityMininum 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 * @return groupPriorityMinimum **/ - @ApiModelProperty(required = true, value = "GroupPriorityMininum 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 GroupPriorityMininum 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") - + @jakarta.annotation.Nonnull public Integer getGroupPriorityMinimum() { return groupPriorityMinimum; } @@ -137,9 +157,7 @@ public V1APIServiceSpec insecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. * @return insecureSkipTLSVerify **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.") - + @jakarta.annotation.Nullable public Boolean getInsecureSkipTLSVerify() { return insecureSkipTLSVerify; } @@ -160,9 +178,7 @@ public V1APIServiceSpec service(ApiregistrationV1ServiceReference service) { * Get service * @return service **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public ApiregistrationV1ServiceReference getService() { return service; } @@ -183,9 +199,7 @@ public V1APIServiceSpec version(String version) { * Version is the API version this server hosts. For example, \"v1\" * @return version **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Version is the API version this server hosts. For example, \"v1\"") - + @jakarta.annotation.Nullable public String getVersion() { return version; } @@ -206,8 +220,7 @@ public V1APIServiceSpec versionPriority(Integer versionPriority) { * 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. * @return versionPriority **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public Integer getVersionPriority() { return versionPriority; } @@ -218,8 +231,9 @@ public void setVersionPriority(Integer versionPriority) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -241,7 +255,6 @@ public int hashCode() { return Objects.hash(Arrays.hashCode(caBundle), group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -261,11 +274,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("caBundle"); + openapiFields.add("group"); + openapiFields.add("groupPriorityMinimum"); + openapiFields.add("insecureSkipTLSVerify"); + openapiFields.add("service"); + openapiFields.add("version"); + openapiFields.add("versionPriority"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("groupPriorityMinimum"); + openapiRequiredFields.add("versionPriority"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIServiceSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIServiceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIServiceSpec is not found in the empty JSON string", V1APIServiceSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIServiceSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIServiceSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1APIServiceSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + // validate the optional field `service` + if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { + ApiregistrationV1ServiceReference.validateJsonObject(jsonObj.getAsJsonObject("service")); + } + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIServiceSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIServiceSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIServiceSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIServiceSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIServiceSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIServiceSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIServiceSpec + * @throws IOException if the JSON string is invalid with respect to V1APIServiceSpec + */ + public static V1APIServiceSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIServiceSpec.class); + } + + /** + * Convert an instance of V1APIServiceSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java index 41893aac58..94d0f826ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1APIServiceCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * APIServiceStatus contains derived information about an API server */ @@ -34,8 +57,10 @@ public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; + public V1APIServiceStatus() { + } public V1APIServiceStatus conditions(List conditions) { @@ -55,9 +80,7 @@ public V1APIServiceStatus addConditionsItem(V1APIServiceCondition conditionsItem * Current service state of apiService. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Current service state of apiService.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -68,8 +91,9 @@ public void setConditions(List conditions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(conditions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIServiceStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIServiceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIServiceStatus is not found in the empty JSON string", V1APIServiceStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIServiceStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIServiceStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1APIServiceCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIServiceStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIServiceStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIServiceStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIServiceStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIServiceStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIServiceStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIServiceStatus + * @throws IOException if the JSON string is invalid with respect to V1APIServiceStatus + */ + public static V1APIServiceStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIServiceStatus.class); + } + + /** + * Convert an instance of V1APIServiceStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java index ab009ed0f3..97b29f3384 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -48,6 +71,8 @@ public class V1APIVersions { @SerializedName(SERIALIZED_NAME_VERSIONS) private List versions = new ArrayList<>(); + public V1APIVersions() { + } public V1APIVersions apiVersion(String apiVersion) { @@ -59,9 +84,7 @@ public V1APIVersions apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -82,9 +105,7 @@ public V1APIVersions kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -102,6 +123,9 @@ public V1APIVersions serverAddressByClientCIDRs(List(); + } this.serverAddressByClientCIDRs.add(serverAddressByClientCIDRsItem); return this; } @@ -110,8 +134,7 @@ public V1APIVersions addServerAddressByClientCIDRsItem(V1ServerAddressByClientCI * 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. * @return serverAddressByClientCIDRs **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs; } @@ -129,6 +152,9 @@ public V1APIVersions versions(List versions) { } public V1APIVersions addVersionsItem(String versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList<>(); + } this.versions.add(versionsItem); return this; } @@ -137,8 +163,7 @@ public V1APIVersions addVersionsItem(String versionsItem) { * versions are the api versions that are available. * @return versions **/ - @ApiModelProperty(required = true, value = "versions are the api versions that are available.") - + @jakarta.annotation.Nonnull public List getVersions() { return versions; } @@ -149,8 +174,9 @@ public void setVersions(List versions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -169,7 +195,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -186,11 +211,128 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("serverAddressByClientCIDRs"); + openapiFields.add("versions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("serverAddressByClientCIDRs"); + openapiRequiredFields.add("versions"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1APIVersions + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1APIVersions.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1APIVersions is not found in the empty JSON string", V1APIVersions.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1APIVersions.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1APIVersions` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1APIVersions.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("serverAddressByClientCIDRs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `serverAddressByClientCIDRs` to be an array in the JSON string but got `%s`", jsonObj.get("serverAddressByClientCIDRs").toString())); + } + + JsonArray jsonArrayserverAddressByClientCIDRs = jsonObj.getAsJsonArray("serverAddressByClientCIDRs"); + // validate the required field `serverAddressByClientCIDRs` (array) + for (int i = 0; i < jsonArrayserverAddressByClientCIDRs.size(); i++) { + V1ServerAddressByClientCIDR.validateJsonObject(jsonArrayserverAddressByClientCIDRs.get(i).getAsJsonObject()); + }; + // ensure the required json array is present + if (jsonObj.get("versions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("versions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1APIVersions.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1APIVersions' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1APIVersions.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1APIVersions value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1APIVersions read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1APIVersions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1APIVersions + * @throws IOException if the JSON string is invalid with respect to V1APIVersions + */ + public static V1APIVersions fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1APIVersions.class); + } + + /** + * Convert an instance of V1APIVersions to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java index 74d2aab968..833d5a9180 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -45,6 +68,8 @@ public class V1AWSElasticBlockStoreVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_I_D) private String volumeID; + public V1AWSElasticBlockStoreVolumeSource() { + } public V1AWSElasticBlockStoreVolumeSource fsType(String fsType) { @@ -56,9 +81,7 @@ public V1AWSElasticBlockStoreVolumeSource fsType(String fsType) { * 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 * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -79,9 +102,7 @@ public V1AWSElasticBlockStoreVolumeSource partition(Integer partition) { * 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). * @return partition **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public Integer getPartition() { return partition; } @@ -102,9 +123,7 @@ public V1AWSElasticBlockStoreVolumeSource readOnly(Boolean readOnly) { * readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -125,8 +144,7 @@ public V1AWSElasticBlockStoreVolumeSource volumeID(String volumeID) { * volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore * @return volumeID **/ - @ApiModelProperty(required = true, value = "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") - + @jakarta.annotation.Nonnull public String getVolumeID() { return volumeID; } @@ -137,8 +155,9 @@ public void setVolumeID(String volumeID) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +176,6 @@ public int hashCode() { return Objects.hash(fsType, partition, readOnly, volumeID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +192,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("partition"); + openapiFields.add("readOnly"); + openapiFields.add("volumeID"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("volumeID"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1AWSElasticBlockStoreVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1AWSElasticBlockStoreVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1AWSElasticBlockStoreVolumeSource is not found in the empty JSON string", V1AWSElasticBlockStoreVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1AWSElasticBlockStoreVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AWSElasticBlockStoreVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1AWSElasticBlockStoreVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("volumeID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeID").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1AWSElasticBlockStoreVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1AWSElasticBlockStoreVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1AWSElasticBlockStoreVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1AWSElasticBlockStoreVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1AWSElasticBlockStoreVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1AWSElasticBlockStoreVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AWSElasticBlockStoreVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1AWSElasticBlockStoreVolumeSource + */ + public static V1AWSElasticBlockStoreVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1AWSElasticBlockStoreVolumeSource.class); + } + + /** + * Convert an instance of V1AWSElasticBlockStoreVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java index ed846f0032..12fba97773 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1NodeAffinity; import io.kubernetes.client.openapi.models.V1PodAffinity; import io.kubernetes.client.openapi.models.V1PodAntiAffinity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Affinity is a group of affinity scheduling rules. */ @@ -44,6 +67,8 @@ public class V1Affinity { @SerializedName(SERIALIZED_NAME_POD_ANTI_AFFINITY) private V1PodAntiAffinity podAntiAffinity; + public V1Affinity() { + } public V1Affinity nodeAffinity(V1NodeAffinity nodeAffinity) { @@ -55,9 +80,7 @@ public V1Affinity nodeAffinity(V1NodeAffinity nodeAffinity) { * Get nodeAffinity * @return nodeAffinity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeAffinity getNodeAffinity() { return nodeAffinity; } @@ -78,9 +101,7 @@ public V1Affinity podAffinity(V1PodAffinity podAffinity) { * Get podAffinity * @return podAffinity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodAffinity getPodAffinity() { return podAffinity; } @@ -101,9 +122,7 @@ public V1Affinity podAntiAffinity(V1PodAntiAffinity podAntiAffinity) { * Get podAntiAffinity * @return podAntiAffinity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodAntiAffinity getPodAntiAffinity() { return podAntiAffinity; } @@ -114,8 +133,9 @@ public void setPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -133,7 +153,6 @@ public int hashCode() { return Objects.hash(nodeAffinity, podAffinity, podAntiAffinity); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -149,11 +168,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nodeAffinity"); + openapiFields.add("podAffinity"); + openapiFields.add("podAntiAffinity"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Affinity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Affinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Affinity is not found in the empty JSON string", V1Affinity.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Affinity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Affinity` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `nodeAffinity` + if (jsonObj.get("nodeAffinity") != null && !jsonObj.get("nodeAffinity").isJsonNull()) { + V1NodeAffinity.validateJsonObject(jsonObj.getAsJsonObject("nodeAffinity")); + } + // validate the optional field `podAffinity` + if (jsonObj.get("podAffinity") != null && !jsonObj.get("podAffinity").isJsonNull()) { + V1PodAffinity.validateJsonObject(jsonObj.getAsJsonObject("podAffinity")); + } + // validate the optional field `podAntiAffinity` + if (jsonObj.get("podAntiAffinity") != null && !jsonObj.get("podAntiAffinity").isJsonNull()) { + V1PodAntiAffinity.validateJsonObject(jsonObj.getAsJsonObject("podAntiAffinity")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Affinity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Affinity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Affinity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Affinity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Affinity read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Affinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Affinity + * @throws IOException if the JSON string is invalid with respect to V1Affinity + */ + public static V1Affinity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Affinity.class); + } + + /** + * Convert an instance of V1Affinity to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java index e6a8d9090e..799684c94b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ @@ -34,8 +57,10 @@ public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) - private List clusterRoleSelectors = null; + private List clusterRoleSelectors; + public V1AggregationRule() { + } public V1AggregationRule clusterRoleSelectors(List clusterRoleSelectors) { @@ -55,9 +80,7 @@ public V1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector clusterRole * 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 * @return clusterRoleSelectors **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getClusterRoleSelectors() { return clusterRoleSelectors; } @@ -68,8 +91,9 @@ public void setClusterRoleSelectors(List clusterRoleSelectors) } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(clusterRoleSelectors); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("clusterRoleSelectors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1AggregationRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1AggregationRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1AggregationRule is not found in the empty JSON string", V1AggregationRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1AggregationRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AggregationRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("clusterRoleSelectors") != null && !jsonObj.get("clusterRoleSelectors").isJsonNull()) { + JsonArray jsonArrayclusterRoleSelectors = jsonObj.getAsJsonArray("clusterRoleSelectors"); + if (jsonArrayclusterRoleSelectors != null) { + // ensure the json data is an array + if (!jsonObj.get("clusterRoleSelectors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `clusterRoleSelectors` to be an array in the JSON string but got `%s`", jsonObj.get("clusterRoleSelectors").toString())); + } + + // validate the optional field `clusterRoleSelectors` (array) + for (int i = 0; i < jsonArrayclusterRoleSelectors.size(); i++) { + V1LabelSelector.validateJsonObject(jsonArrayclusterRoleSelectors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1AggregationRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1AggregationRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1AggregationRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1AggregationRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1AggregationRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1AggregationRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AggregationRule + * @throws IOException if the JSON string is invalid with respect to V1AggregationRule + */ + public static V1AggregationRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1AggregationRule.class); + } + + /** + * Convert an instance of V1AggregationRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java index 7130b0643f..6663e796d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * AttachedVolume describes a volume attached to a node */ @@ -37,6 +60,8 @@ public class V1AttachedVolume { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1AttachedVolume() { + } public V1AttachedVolume devicePath(String devicePath) { @@ -48,8 +73,7 @@ public V1AttachedVolume devicePath(String devicePath) { * DevicePath represents the device path where the volume should be available * @return devicePath **/ - @ApiModelProperty(required = true, value = "DevicePath represents the device path where the volume should be available") - + @jakarta.annotation.Nonnull public String getDevicePath() { return devicePath; } @@ -70,8 +94,7 @@ public V1AttachedVolume name(String name) { * Name of the attached volume * @return name **/ - @ApiModelProperty(required = true, value = "Name of the attached volume") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -82,8 +105,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(devicePath, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("devicePath"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("devicePath"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1AttachedVolume + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1AttachedVolume.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1AttachedVolume is not found in the empty JSON string", V1AttachedVolume.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1AttachedVolume.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AttachedVolume` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1AttachedVolume.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("devicePath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `devicePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("devicePath").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1AttachedVolume.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1AttachedVolume' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1AttachedVolume.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1AttachedVolume value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1AttachedVolume read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1AttachedVolume given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AttachedVolume + * @throws IOException if the JSON string is invalid with respect to V1AttachedVolume + */ + public static V1AttachedVolume fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1AttachedVolume.class); + } + + /** + * Convert an instance of V1AttachedVolume to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java index 1780c3032b..b4c1a40d97 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. */ @@ -53,6 +76,8 @@ public class V1AzureDiskVolumeSource { @SerializedName(SERIALIZED_NAME_READ_ONLY) private Boolean readOnly; + public V1AzureDiskVolumeSource() { + } public V1AzureDiskVolumeSource cachingMode(String cachingMode) { @@ -64,9 +89,7 @@ public V1AzureDiskVolumeSource cachingMode(String cachingMode) { * cachingMode is the Host Caching mode: None, Read Only, Read Write. * @return cachingMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "cachingMode is the Host Caching mode: None, Read Only, Read Write.") - + @jakarta.annotation.Nullable public String getCachingMode() { return cachingMode; } @@ -87,8 +110,7 @@ public V1AzureDiskVolumeSource diskName(String diskName) { * diskName is the Name of the data disk in the blob storage * @return diskName **/ - @ApiModelProperty(required = true, value = "diskName is the Name of the data disk in the blob storage") - + @jakarta.annotation.Nonnull public String getDiskName() { return diskName; } @@ -109,8 +131,7 @@ public V1AzureDiskVolumeSource diskURI(String diskURI) { * diskURI is the URI of data disk in the blob storage * @return diskURI **/ - @ApiModelProperty(required = true, value = "diskURI is the URI of data disk in the blob storage") - + @jakarta.annotation.Nonnull public String getDiskURI() { return diskURI; } @@ -131,9 +152,7 @@ public V1AzureDiskVolumeSource fsType(String fsType) { * fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -154,9 +173,7 @@ public V1AzureDiskVolumeSource kind(String kind) { * 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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -177,9 +194,7 @@ public V1AzureDiskVolumeSource readOnly(Boolean readOnly) { * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -190,8 +205,9 @@ public void setReadOnly(Boolean readOnly) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -212,7 +228,6 @@ public int hashCode() { return Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -231,11 +246,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("cachingMode"); + openapiFields.add("diskName"); + openapiFields.add("diskURI"); + openapiFields.add("fsType"); + openapiFields.add("kind"); + openapiFields.add("readOnly"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("diskName"); + openapiRequiredFields.add("diskURI"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1AzureDiskVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1AzureDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1AzureDiskVolumeSource is not found in the empty JSON string", V1AzureDiskVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1AzureDiskVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AzureDiskVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1AzureDiskVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("cachingMode") != null && !jsonObj.get("cachingMode").isJsonNull()) && !jsonObj.get("cachingMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cachingMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cachingMode").toString())); + } + if (!jsonObj.get("diskName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `diskName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("diskName").toString())); + } + if (!jsonObj.get("diskURI").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `diskURI` to be a primitive type in the JSON string but got `%s`", jsonObj.get("diskURI").toString())); + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1AzureDiskVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1AzureDiskVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1AzureDiskVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1AzureDiskVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1AzureDiskVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1AzureDiskVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AzureDiskVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1AzureDiskVolumeSource + */ + public static V1AzureDiskVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1AzureDiskVolumeSource.class); + } + + /** + * Convert an instance of V1AzureDiskVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java index 6fee031cd3..f4649619af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @@ -45,6 +68,8 @@ public class V1AzureFilePersistentVolumeSource { @SerializedName(SERIALIZED_NAME_SHARE_NAME) private String shareName; + public V1AzureFilePersistentVolumeSource() { + } public V1AzureFilePersistentVolumeSource readOnly(Boolean readOnly) { @@ -56,9 +81,7 @@ public V1AzureFilePersistentVolumeSource readOnly(Boolean readOnly) { * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -79,8 +102,7 @@ public V1AzureFilePersistentVolumeSource secretName(String secretName) { * secretName is the name of secret that contains Azure Storage Account Name and Key * @return secretName **/ - @ApiModelProperty(required = true, value = "secretName is the name of secret that contains Azure Storage Account Name and Key") - + @jakarta.annotation.Nonnull public String getSecretName() { return secretName; } @@ -101,9 +123,7 @@ public V1AzureFilePersistentVolumeSource secretNamespace(String secretNamespace) * secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod * @return secretNamespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod") - + @jakarta.annotation.Nullable public String getSecretNamespace() { return secretNamespace; } @@ -124,8 +144,7 @@ public V1AzureFilePersistentVolumeSource shareName(String shareName) { * shareName is the azure Share Name * @return shareName **/ - @ApiModelProperty(required = true, value = "shareName is the azure Share Name") - + @jakarta.annotation.Nonnull public String getShareName() { return shareName; } @@ -136,8 +155,9 @@ public void setShareName(String shareName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -156,7 +176,6 @@ public int hashCode() { return Objects.hash(readOnly, secretName, secretNamespace, shareName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,11 +192,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("readOnly"); + openapiFields.add("secretName"); + openapiFields.add("secretNamespace"); + openapiFields.add("shareName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("secretName"); + openapiRequiredFields.add("shareName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1AzureFilePersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1AzureFilePersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1AzureFilePersistentVolumeSource is not found in the empty JSON string", V1AzureFilePersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1AzureFilePersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AzureFilePersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1AzureFilePersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("secretName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `secretName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretName").toString())); + } + if ((jsonObj.get("secretNamespace") != null && !jsonObj.get("secretNamespace").isJsonNull()) && !jsonObj.get("secretNamespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `secretNamespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretNamespace").toString())); + } + if (!jsonObj.get("shareName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shareName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1AzureFilePersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1AzureFilePersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1AzureFilePersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1AzureFilePersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1AzureFilePersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1AzureFilePersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AzureFilePersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1AzureFilePersistentVolumeSource + */ + public static V1AzureFilePersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1AzureFilePersistentVolumeSource.class); + } + + /** + * Convert an instance of V1AzureFilePersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java index 5999aa88cf..745273758a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @@ -41,6 +64,8 @@ public class V1AzureFileVolumeSource { @SerializedName(SERIALIZED_NAME_SHARE_NAME) private String shareName; + public V1AzureFileVolumeSource() { + } public V1AzureFileVolumeSource readOnly(Boolean readOnly) { @@ -52,9 +77,7 @@ public V1AzureFileVolumeSource readOnly(Boolean readOnly) { * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -75,8 +98,7 @@ public V1AzureFileVolumeSource secretName(String secretName) { * secretName is the name of secret that contains Azure Storage Account Name and Key * @return secretName **/ - @ApiModelProperty(required = true, value = "secretName is the name of secret that contains Azure Storage Account Name and Key") - + @jakarta.annotation.Nonnull public String getSecretName() { return secretName; } @@ -97,8 +119,7 @@ public V1AzureFileVolumeSource shareName(String shareName) { * shareName is the azure share Name * @return shareName **/ - @ApiModelProperty(required = true, value = "shareName is the azure share Name") - + @jakarta.annotation.Nonnull public String getShareName() { return shareName; } @@ -109,8 +130,9 @@ public void setShareName(String shareName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(readOnly, secretName, shareName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("readOnly"); + openapiFields.add("secretName"); + openapiFields.add("shareName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("secretName"); + openapiRequiredFields.add("shareName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1AzureFileVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1AzureFileVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1AzureFileVolumeSource is not found in the empty JSON string", V1AzureFileVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1AzureFileVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AzureFileVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1AzureFileVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("secretName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `secretName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretName").toString())); + } + if (!jsonObj.get("shareName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shareName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1AzureFileVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1AzureFileVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1AzureFileVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1AzureFileVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1AzureFileVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1AzureFileVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1AzureFileVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1AzureFileVolumeSource + */ + public static V1AzureFileVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1AzureFileVolumeSource.class); + } + + /** + * Convert an instance of V1AzureFileVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java index 07b3a7fcaf..a960a1c51b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -47,6 +70,8 @@ public class V1Binding implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_TARGET) private V1ObjectReference target; + public V1Binding() { + } public V1Binding apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1Binding apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1Binding kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1Binding metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,8 +146,7 @@ public V1Binding target(V1ObjectReference target) { * Get target * @return target **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1ObjectReference getTarget() { return target; } @@ -139,8 +157,9 @@ public void setTarget(V1ObjectReference target) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, target); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +194,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("target"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("target"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Binding + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Binding.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Binding is not found in the empty JSON string", V1Binding.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Binding.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Binding` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Binding.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `target` + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("target")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Binding.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Binding' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Binding.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Binding value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Binding read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Binding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Binding + * @throws IOException if the JSON string is invalid with respect to V1Binding + */ + public static V1Binding fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Binding.class); + } + + /** + * Convert an instance of V1Binding to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java index 917259989d..1c9c91f01b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * BoundObjectReference is a reference to an object that a token is bound to. */ @@ -45,6 +68,8 @@ public class V1BoundObjectReference { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1BoundObjectReference() { + } public V1BoundObjectReference apiVersion(String apiVersion) { @@ -56,9 +81,7 @@ public V1BoundObjectReference apiVersion(String apiVersion) { * API version of the referent. * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "API version of the referent.") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -79,9 +102,7 @@ public V1BoundObjectReference kind(String kind) { * Kind of the referent. Valid kinds are 'Pod' and 'Secret'. * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -102,9 +123,7 @@ public V1BoundObjectReference name(String name) { * Name of the referent. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -125,9 +144,7 @@ public V1BoundObjectReference uid(String uid) { * UID of the referent. * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "UID of the referent.") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -138,8 +155,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +176,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, name, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +192,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1BoundObjectReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1BoundObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1BoundObjectReference is not found in the empty JSON string", V1BoundObjectReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1BoundObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1BoundObjectReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1BoundObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1BoundObjectReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1BoundObjectReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1BoundObjectReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1BoundObjectReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1BoundObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1BoundObjectReference + * @throws IOException if the JSON string is invalid with respect to V1BoundObjectReference + */ + public static V1BoundObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1BoundObjectReference.class); + } + + /** + * Convert an instance of V1BoundObjectReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java index 0e8983a64f..679598a8bc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSIDriverSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -47,6 +70,8 @@ public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject @SerializedName(SERIALIZED_NAME_SPEC) private V1CSIDriverSpec spec; + public V1CSIDriver() { + } public V1CSIDriver apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1CSIDriver apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1CSIDriver kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1CSIDriver metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,8 +146,7 @@ public V1CSIDriver spec(V1CSIDriverSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1CSIDriverSpec getSpec() { return spec; } @@ -139,8 +157,9 @@ public void setSpec(V1CSIDriverSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +194,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSIDriver + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSIDriver.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSIDriver is not found in the empty JSON string", V1CSIDriver.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSIDriver.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSIDriver` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSIDriver.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1CSIDriverSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSIDriver.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSIDriver' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSIDriver.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSIDriver value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSIDriver read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSIDriver given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIDriver + * @throws IOException if the JSON string is invalid with respect to V1CSIDriver + */ + public static V1CSIDriver fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSIDriver.class); + } + + /** + * Convert an instance of V1CSIDriver to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java index 3f09cf1dc9..7a54bc6cf3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSIDriver; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CSIDriverList is a collection of CSIDriver objects. */ @@ -49,6 +72,8 @@ public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesLi @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1CSIDriverList() { + } public V1CSIDriverList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1CSIDriverList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1CSIDriverList items(List items) { } public V1CSIDriverList addItemsItem(V1CSIDriver itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1CSIDriverList addItemsItem(V1CSIDriver itemsItem) { * items is the list of CSIDriver * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of CSIDriver") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1CSIDriverList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1CSIDriverList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSIDriverList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSIDriverList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSIDriverList is not found in the empty JSON string", V1CSIDriverList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSIDriverList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSIDriverList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSIDriverList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1CSIDriver.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSIDriverList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSIDriverList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSIDriverList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSIDriverList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSIDriverList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSIDriverList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIDriverList + * @throws IOException if the JSON string is invalid with respect to V1CSIDriverList + */ + public static V1CSIDriverList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSIDriverList.class); + } + + /** + * Convert an instance of V1CSIDriverList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java index 235919c122..3fa5c23a46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.StorageV1TokenRequest; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CSIDriverSpec is the specification of a CSIDriver. */ @@ -58,12 +81,14 @@ public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_TOKEN_REQUESTS = "tokenRequests"; @SerializedName(SERIALIZED_NAME_TOKEN_REQUESTS) - private List tokenRequests = null; + private List tokenRequests; public static final String SERIALIZED_NAME_VOLUME_LIFECYCLE_MODES = "volumeLifecycleModes"; @SerializedName(SERIALIZED_NAME_VOLUME_LIFECYCLE_MODES) - private List volumeLifecycleModes = null; + private List volumeLifecycleModes; + public V1CSIDriverSpec() { + } public V1CSIDriverSpec attachRequired(Boolean attachRequired) { @@ -75,9 +100,7 @@ public V1CSIDriverSpec attachRequired(Boolean attachRequired) { * 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. * @return attachRequired **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getAttachRequired() { return attachRequired; } @@ -98,9 +121,7 @@ public V1CSIDriverSpec fsGroupPolicy(String fsGroupPolicy) { * 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 is immutable. 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. * @return fsGroupPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 is immutable. 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.") - + @jakarta.annotation.Nullable public String getFsGroupPolicy() { return fsGroupPolicy; } @@ -121,9 +142,7 @@ public V1CSIDriverSpec podInfoOnMount(Boolean podInfoOnMount) { * 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 VolumeConext 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 is immutable. * @return podInfoOnMount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 VolumeConext 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 is immutable.") - + @jakarta.annotation.Nullable public Boolean getPodInfoOnMount() { return podInfoOnMount; } @@ -144,9 +163,7 @@ public V1CSIDriverSpec requiresRepublish(Boolean requiresRepublish) { * 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. * @return requiresRepublish **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getRequiresRepublish() { return requiresRepublish; } @@ -167,9 +184,7 @@ public V1CSIDriverSpec seLinuxMount(Boolean seLinuxMount) { * 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\". * @return seLinuxMount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public Boolean getSeLinuxMount() { return seLinuxMount; } @@ -190,9 +205,7 @@ public V1CSIDriverSpec storageCapacity(Boolean storageCapacity) { * 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. * @return storageCapacity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getStorageCapacity() { return storageCapacity; } @@ -221,9 +234,7 @@ public V1CSIDriverSpec addTokenRequestsItem(StorageV1TokenRequest tokenRequestsI * 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\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } 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. * @return tokenRequests **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getTokenRequests() { return tokenRequests; } @@ -252,9 +263,7 @@ public V1CSIDriverSpec addVolumeLifecycleModesItem(String volumeLifecycleModesIt * 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. * @return volumeLifecycleModes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getVolumeLifecycleModes() { return volumeLifecycleModes; } @@ -265,8 +274,9 @@ public void setVolumeLifecycleModes(List volumeLifecycleModes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -289,7 +299,6 @@ public int hashCode() { return Objects.hash(attachRequired, fsGroupPolicy, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -310,11 +319,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attachRequired"); + openapiFields.add("fsGroupPolicy"); + openapiFields.add("podInfoOnMount"); + openapiFields.add("requiresRepublish"); + openapiFields.add("seLinuxMount"); + openapiFields.add("storageCapacity"); + openapiFields.add("tokenRequests"); + openapiFields.add("volumeLifecycleModes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSIDriverSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSIDriverSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSIDriverSpec is not found in the empty JSON string", V1CSIDriverSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSIDriverSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSIDriverSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("fsGroupPolicy") != null && !jsonObj.get("fsGroupPolicy").isJsonNull()) && !jsonObj.get("fsGroupPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsGroupPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsGroupPolicy").toString())); + } + if (jsonObj.get("tokenRequests") != null && !jsonObj.get("tokenRequests").isJsonNull()) { + JsonArray jsonArraytokenRequests = jsonObj.getAsJsonArray("tokenRequests"); + if (jsonArraytokenRequests != null) { + // ensure the json data is an array + if (!jsonObj.get("tokenRequests").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tokenRequests` to be an array in the JSON string but got `%s`", jsonObj.get("tokenRequests").toString())); + } + + // validate the optional field `tokenRequests` (array) + for (int i = 0; i < jsonArraytokenRequests.size(); i++) { + StorageV1TokenRequest.validateJsonObject(jsonArraytokenRequests.get(i).getAsJsonObject()); + }; + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("volumeLifecycleModes") != null && !jsonObj.get("volumeLifecycleModes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeLifecycleModes` to be an array in the JSON string but got `%s`", jsonObj.get("volumeLifecycleModes").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSIDriverSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSIDriverSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSIDriverSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSIDriverSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSIDriverSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSIDriverSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIDriverSpec + * @throws IOException if the JSON string is invalid with respect to V1CSIDriverSpec + */ + public static V1CSIDriverSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSIDriverSpec.class); + } + + /** + * Convert an instance of V1CSIDriverSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java index 29109284d9..8b9b909a2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSINodeSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -47,6 +70,8 @@ public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_SPEC) private V1CSINodeSpec spec; + public V1CSINode() { + } public V1CSINode apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1CSINode apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1CSINode kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1CSINode metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,8 +146,7 @@ public V1CSINode spec(V1CSINodeSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1CSINodeSpec getSpec() { return spec; } @@ -139,8 +157,9 @@ public void setSpec(V1CSINodeSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +194,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSINode + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSINode.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSINode is not found in the empty JSON string", V1CSINode.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSINode.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSINode` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSINode.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1CSINodeSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSINode.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSINode' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSINode.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSINode value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSINode read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSINode given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINode + * @throws IOException if the JSON string is invalid with respect to V1CSINode + */ + public static V1CSINode fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSINode.class); + } + + /** + * Convert an instance of V1CSINode to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java index ef43d000b5..3aa80ce8e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1VolumeNodeResources; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CSINodeDriver holds information about the specification of one CSI driver installed on a node */ @@ -46,8 +69,10 @@ public class V1CSINodeDriver { public static final String SERIALIZED_NAME_TOPOLOGY_KEYS = "topologyKeys"; @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEYS) - private List topologyKeys = null; + private List topologyKeys; + public V1CSINodeDriver() { + } public V1CSINodeDriver allocatable(V1VolumeNodeResources allocatable) { @@ -59,9 +84,7 @@ public V1CSINodeDriver allocatable(V1VolumeNodeResources allocatable) { * Get allocatable * @return allocatable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1VolumeNodeResources getAllocatable() { return allocatable; } @@ -82,8 +105,7 @@ public V1CSINodeDriver name(String name) { * 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. * @return name **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -104,8 +126,7 @@ public V1CSINodeDriver nodeID(String nodeID) { * 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. * @return nodeID **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getNodeID() { return nodeID; } @@ -134,9 +155,7 @@ public V1CSINodeDriver addTopologyKeysItem(String topologyKeysItem) { * 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. * @return topologyKeys **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getTopologyKeys() { return topologyKeys; } @@ -147,8 +166,9 @@ public void setTopologyKeys(List topologyKeys) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -167,7 +187,6 @@ public int hashCode() { return Objects.hash(allocatable, name, nodeID, topologyKeys); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -184,11 +203,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allocatable"); + openapiFields.add("name"); + openapiFields.add("nodeID"); + openapiFields.add("topologyKeys"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("nodeID"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSINodeDriver + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSINodeDriver.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSINodeDriver is not found in the empty JSON string", V1CSINodeDriver.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSINodeDriver.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSINodeDriver` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSINodeDriver.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `allocatable` + if (jsonObj.get("allocatable") != null && !jsonObj.get("allocatable").isJsonNull()) { + V1VolumeNodeResources.validateJsonObject(jsonObj.getAsJsonObject("allocatable")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("nodeID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeID").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("topologyKeys") != null && !jsonObj.get("topologyKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `topologyKeys` to be an array in the JSON string but got `%s`", jsonObj.get("topologyKeys").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSINodeDriver.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSINodeDriver' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSINodeDriver.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSINodeDriver value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSINodeDriver read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSINodeDriver given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINodeDriver + * @throws IOException if the JSON string is invalid with respect to V1CSINodeDriver + */ + public static V1CSINodeDriver fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSINodeDriver.class); + } + + /** + * Convert an instance of V1CSINodeDriver to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java index 55b59ea8b8..bfeed3946a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSINode; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CSINodeList is a collection of CSINode objects. */ @@ -49,6 +72,8 @@ public class V1CSINodeList implements io.kubernetes.client.common.KubernetesList @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1CSINodeList() { + } public V1CSINodeList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1CSINodeList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1CSINodeList items(List items) { } public V1CSINodeList addItemsItem(V1CSINode itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1CSINodeList addItemsItem(V1CSINode itemsItem) { * items is the list of CSINode * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of CSINode") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1CSINodeList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1CSINodeList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSINodeList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSINodeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSINodeList is not found in the empty JSON string", V1CSINodeList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSINodeList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSINodeList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSINodeList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1CSINode.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSINodeList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSINodeList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSINodeList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSINodeList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSINodeList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSINodeList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINodeList + * @throws IOException if the JSON string is invalid with respect to V1CSINodeList + */ + public static V1CSINodeList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSINodeList.class); + } + + /** + * Convert an instance of V1CSINodeList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java index 31704bbc27..8f92ed389d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSINodeDriver; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CSINodeSpec holds information about the specification of all CSI drivers installed on a node */ @@ -36,6 +59,8 @@ public class V1CSINodeSpec { @SerializedName(SERIALIZED_NAME_DRIVERS) private List drivers = new ArrayList<>(); + public V1CSINodeSpec() { + } public V1CSINodeSpec drivers(List drivers) { @@ -44,6 +69,9 @@ public V1CSINodeSpec drivers(List drivers) { } public V1CSINodeSpec addDriversItem(V1CSINodeDriver driversItem) { + if (this.drivers == null) { + this.drivers = new ArrayList<>(); + } this.drivers.add(driversItem); return this; } @@ -52,8 +80,7 @@ public V1CSINodeSpec addDriversItem(V1CSINodeDriver driversItem) { * 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. * @return drivers **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getDrivers() { return drivers; } @@ -64,8 +91,9 @@ public void setDrivers(List drivers) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -81,7 +109,6 @@ public int hashCode() { return Objects.hash(drivers); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,11 +122,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("drivers"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("drivers"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSINodeSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSINodeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSINodeSpec is not found in the empty JSON string", V1CSINodeSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSINodeSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSINodeSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSINodeSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (!jsonObj.get("drivers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `drivers` to be an array in the JSON string but got `%s`", jsonObj.get("drivers").toString())); + } + + JsonArray jsonArraydrivers = jsonObj.getAsJsonArray("drivers"); + // validate the required field `drivers` (array) + for (int i = 0; i < jsonArraydrivers.size(); i++) { + V1CSINodeDriver.validateJsonObject(jsonArraydrivers.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSINodeSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSINodeSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSINodeSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSINodeSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSINodeSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSINodeSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINodeSpec + * @throws IOException if the JSON string is invalid with respect to V1CSINodeSpec + */ + public static V1CSINodeSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSINodeSpec.class); + } + + /** + * Convert an instance of V1CSINodeSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java index 8e57e5031d..916a1fa68f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * Represents storage that is managed by an external CSI volume driver (Beta feature) @@ -67,12 +89,14 @@ public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES = "volumeAttributes"; @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES) - private Map volumeAttributes = null; + private Map volumeAttributes = new HashMap<>(); public static final String SERIALIZED_NAME_VOLUME_HANDLE = "volumeHandle"; @SerializedName(SERIALIZED_NAME_VOLUME_HANDLE) private String volumeHandle; + public V1CSIPersistentVolumeSource() { + } public V1CSIPersistentVolumeSource controllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { @@ -84,9 +108,7 @@ public V1CSIPersistentVolumeSource controllerExpandSecretRef(V1SecretReference c * Get controllerExpandSecretRef * @return controllerExpandSecretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getControllerExpandSecretRef() { return controllerExpandSecretRef; } @@ -107,9 +129,7 @@ public V1CSIPersistentVolumeSource controllerPublishSecretRef(V1SecretReference * Get controllerPublishSecretRef * @return controllerPublishSecretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getControllerPublishSecretRef() { return controllerPublishSecretRef; } @@ -130,8 +150,7 @@ public V1CSIPersistentVolumeSource driver(String driver) { * driver is the name of the driver to use for this volume. Required. * @return driver **/ - @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume. Required.") - + @jakarta.annotation.Nonnull public String getDriver() { return driver; } @@ -152,9 +171,7 @@ public V1CSIPersistentVolumeSource fsType(String fsType) { * fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -175,9 +192,7 @@ public V1CSIPersistentVolumeSource nodeExpandSecretRef(V1SecretReference nodeExp * Get nodeExpandSecretRef * @return nodeExpandSecretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getNodeExpandSecretRef() { return nodeExpandSecretRef; } @@ -198,9 +213,7 @@ public V1CSIPersistentVolumeSource nodePublishSecretRef(V1SecretReference nodePu * Get nodePublishSecretRef * @return nodePublishSecretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getNodePublishSecretRef() { return nodePublishSecretRef; } @@ -221,9 +234,7 @@ public V1CSIPersistentVolumeSource nodeStageSecretRef(V1SecretReference nodeStag * Get nodeStageSecretRef * @return nodeStageSecretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getNodeStageSecretRef() { return nodeStageSecretRef; } @@ -244,9 +255,7 @@ public V1CSIPersistentVolumeSource readOnly(Boolean readOnly) { * readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -275,9 +284,7 @@ public V1CSIPersistentVolumeSource putVolumeAttributesItem(String key, String vo * volumeAttributes of the volume to publish. * @return volumeAttributes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeAttributes of the volume to publish.") - + @jakarta.annotation.Nullable public Map getVolumeAttributes() { return volumeAttributes; } @@ -298,8 +305,7 @@ public V1CSIPersistentVolumeSource volumeHandle(String volumeHandle) { * volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. * @return volumeHandle **/ - @ApiModelProperty(required = true, value = "volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.") - + @jakarta.annotation.Nonnull public String getVolumeHandle() { return volumeHandle; } @@ -310,8 +316,9 @@ public void setVolumeHandle(String volumeHandle) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -336,7 +343,6 @@ public int hashCode() { return Objects.hash(controllerExpandSecretRef, controllerPublishSecretRef, driver, fsType, nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -359,11 +365,141 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("controllerExpandSecretRef"); + openapiFields.add("controllerPublishSecretRef"); + openapiFields.add("driver"); + openapiFields.add("fsType"); + openapiFields.add("nodeExpandSecretRef"); + openapiFields.add("nodePublishSecretRef"); + openapiFields.add("nodeStageSecretRef"); + openapiFields.add("readOnly"); + openapiFields.add("volumeAttributes"); + openapiFields.add("volumeHandle"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("driver"); + openapiRequiredFields.add("volumeHandle"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSIPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSIPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSIPersistentVolumeSource is not found in the empty JSON string", V1CSIPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSIPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSIPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSIPersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `controllerExpandSecretRef` + if (jsonObj.get("controllerExpandSecretRef") != null && !jsonObj.get("controllerExpandSecretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("controllerExpandSecretRef")); + } + // validate the optional field `controllerPublishSecretRef` + if (jsonObj.get("controllerPublishSecretRef") != null && !jsonObj.get("controllerPublishSecretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("controllerPublishSecretRef")); + } + if (!jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // validate the optional field `nodeExpandSecretRef` + if (jsonObj.get("nodeExpandSecretRef") != null && !jsonObj.get("nodeExpandSecretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("nodeExpandSecretRef")); + } + // validate the optional field `nodePublishSecretRef` + if (jsonObj.get("nodePublishSecretRef") != null && !jsonObj.get("nodePublishSecretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("nodePublishSecretRef")); + } + // validate the optional field `nodeStageSecretRef` + if (jsonObj.get("nodeStageSecretRef") != null && !jsonObj.get("nodeStageSecretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("nodeStageSecretRef")); + } + if (!jsonObj.get("volumeHandle").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeHandle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeHandle").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSIPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSIPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSIPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSIPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSIPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSIPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CSIPersistentVolumeSource + */ + public static V1CSIPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSIPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1CSIPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java index bbe02c992e..82fec71558 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java @@ -22,10 +22,33 @@ import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -60,6 +83,8 @@ public class V1CSIStorageCapacity implements io.kubernetes.client.common.Kuberne @SerializedName(SERIALIZED_NAME_STORAGE_CLASS_NAME) private String storageClassName; + public V1CSIStorageCapacity() { + } public V1CSIStorageCapacity apiVersion(String apiVersion) { @@ -71,9 +96,7 @@ public V1CSIStorageCapacity apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -94,9 +117,7 @@ public V1CSIStorageCapacity capacity(Quantity capacity) { * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return capacity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") - + @jakarta.annotation.Nullable public Quantity getCapacity() { return capacity; } @@ -117,9 +138,7 @@ public V1CSIStorageCapacity kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -140,9 +159,7 @@ public V1CSIStorageCapacity maximumVolumeSize(Quantity maximumVolumeSize) { * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return maximumVolumeSize **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") - + @jakarta.annotation.Nullable public Quantity getMaximumVolumeSize() { return maximumVolumeSize; } @@ -163,9 +180,7 @@ public V1CSIStorageCapacity metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -186,9 +201,7 @@ public V1CSIStorageCapacity nodeTopology(V1LabelSelector nodeTopology) { * Get nodeTopology * @return nodeTopology **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getNodeTopology() { return nodeTopology; } @@ -209,8 +222,7 @@ public V1CSIStorageCapacity storageClassName(String storageClassName) { * 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. * @return storageClassName **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getStorageClassName() { return storageClassName; } @@ -221,8 +233,9 @@ public void setStorageClassName(String storageClassName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -244,7 +257,6 @@ public int hashCode() { return Objects.hash(apiVersion, capacity, kind, maximumVolumeSize, metadata, nodeTopology, storageClassName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -264,11 +276,131 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("capacity"); + openapiFields.add("kind"); + openapiFields.add("maximumVolumeSize"); + openapiFields.add("metadata"); + openapiFields.add("nodeTopology"); + openapiFields.add("storageClassName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("storageClassName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSIStorageCapacity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSIStorageCapacity.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSIStorageCapacity is not found in the empty JSON string", V1CSIStorageCapacity.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSIStorageCapacity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSIStorageCapacity` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSIStorageCapacity.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) && !jsonObj.get("capacity").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `capacity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacity").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if ((jsonObj.get("maximumVolumeSize") != null && !jsonObj.get("maximumVolumeSize").isJsonNull()) && !jsonObj.get("maximumVolumeSize").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `maximumVolumeSize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maximumVolumeSize").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `nodeTopology` + if (jsonObj.get("nodeTopology") != null && !jsonObj.get("nodeTopology").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("nodeTopology")); + } + if (!jsonObj.get("storageClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storageClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storageClassName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSIStorageCapacity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSIStorageCapacity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSIStorageCapacity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSIStorageCapacity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSIStorageCapacity read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSIStorageCapacity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIStorageCapacity + * @throws IOException if the JSON string is invalid with respect to V1CSIStorageCapacity + */ + public static V1CSIStorageCapacity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSIStorageCapacity.class); + } + + /** + * Convert an instance of V1CSIStorageCapacity to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java index 955757c4f4..7367227a76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSIStorageCapacity; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. */ @@ -49,6 +72,8 @@ public class V1CSIStorageCapacityList implements io.kubernetes.client.common.Kub @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1CSIStorageCapacityList() { + } public V1CSIStorageCapacityList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1CSIStorageCapacityList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1CSIStorageCapacityList items(List items) { } public V1CSIStorageCapacityList addItemsItem(V1CSIStorageCapacity itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1CSIStorageCapacityList addItemsItem(V1CSIStorageCapacity itemsItem) { * items is the list of CSIStorageCapacity objects. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of CSIStorageCapacity objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1CSIStorageCapacityList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1CSIStorageCapacityList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSIStorageCapacityList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSIStorageCapacityList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSIStorageCapacityList is not found in the empty JSON string", V1CSIStorageCapacityList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSIStorageCapacityList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSIStorageCapacityList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSIStorageCapacityList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1CSIStorageCapacity.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSIStorageCapacityList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSIStorageCapacityList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSIStorageCapacityList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSIStorageCapacityList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSIStorageCapacityList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSIStorageCapacityList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIStorageCapacityList + * @throws IOException if the JSON string is invalid with respect to V1CSIStorageCapacityList + */ + public static V1CSIStorageCapacityList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSIStorageCapacityList.class); + } + + /** + * Convert an instance of V1CSIStorageCapacityList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java index da205e73dd..5b24d278c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * Represents a source location of a volume to mount, managed by an external CSI driver @@ -51,8 +73,10 @@ public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES = "volumeAttributes"; @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES) - private Map volumeAttributes = null; + private Map volumeAttributes = new HashMap<>(); + public V1CSIVolumeSource() { + } public V1CSIVolumeSource driver(String driver) { @@ -64,8 +88,7 @@ public V1CSIVolumeSource driver(String driver) { * 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. * @return driver **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getDriver() { return driver; } @@ -86,9 +109,7 @@ public V1CSIVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -109,9 +130,7 @@ public V1CSIVolumeSource nodePublishSecretRef(V1LocalObjectReference nodePublish * Get nodePublishSecretRef * @return nodePublishSecretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LocalObjectReference getNodePublishSecretRef() { return nodePublishSecretRef; } @@ -132,9 +151,7 @@ public V1CSIVolumeSource readOnly(Boolean readOnly) { * readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -163,9 +180,7 @@ public V1CSIVolumeSource putVolumeAttributesItem(String key, String volumeAttrib * volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. * @return volumeAttributes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.") - + @jakarta.annotation.Nullable public Map getVolumeAttributes() { return volumeAttributes; } @@ -176,8 +191,9 @@ public void setVolumeAttributes(Map volumeAttributes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -197,7 +213,6 @@ public int hashCode() { return Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -215,11 +230,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("driver"); + openapiFields.add("fsType"); + openapiFields.add("nodePublishSecretRef"); + openapiFields.add("readOnly"); + openapiFields.add("volumeAttributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("driver"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CSIVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CSIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CSIVolumeSource is not found in the empty JSON string", V1CSIVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CSIVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CSIVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CSIVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // validate the optional field `nodePublishSecretRef` + if (jsonObj.get("nodePublishSecretRef") != null && !jsonObj.get("nodePublishSecretRef").isJsonNull()) { + V1LocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("nodePublishSecretRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSIVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSIVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSIVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSIVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSIVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSIVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSIVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CSIVolumeSource + */ + public static V1CSIVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSIVolumeSource.class); + } + + /** + * Convert an instance of V1CSIVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java index 75b71f8575..f1deea0bdb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Adds and removes POSIX capabilities from running containers. */ @@ -33,12 +56,14 @@ public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) - private List add = null; + private List add; public static final String SERIALIZED_NAME_DROP = "drop"; @SerializedName(SERIALIZED_NAME_DROP) - private List drop = null; + private List drop; + public V1Capabilities() { + } public V1Capabilities add(List add) { @@ -58,9 +83,7 @@ public V1Capabilities addAddItem(String addItem) { * Added capabilities * @return add **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Added capabilities") - + @jakarta.annotation.Nullable public List getAdd() { return add; } @@ -89,9 +112,7 @@ public V1Capabilities addDropItem(String dropItem) { * Removed capabilities * @return drop **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Removed capabilities") - + @jakarta.annotation.Nullable public List getDrop() { return drop; } @@ -102,8 +123,9 @@ public void setDrop(List drop) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -120,7 +142,6 @@ public int hashCode() { return Objects.hash(add, drop); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -135,11 +156,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("add"); + openapiFields.add("drop"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Capabilities + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Capabilities.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Capabilities is not found in the empty JSON string", V1Capabilities.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Capabilities.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Capabilities` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("add") != null && !jsonObj.get("add").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `add` to be an array in the JSON string but got `%s`", jsonObj.get("add").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("drop") != null && !jsonObj.get("drop").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `drop` to be an array in the JSON string but got `%s`", jsonObj.get("drop").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Capabilities.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Capabilities' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Capabilities.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Capabilities value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Capabilities read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Capabilities given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Capabilities + * @throws IOException if the JSON string is invalid with respect to V1Capabilities + */ + public static V1Capabilities fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Capabilities.class); + } + + /** + * Convert an instance of V1Capabilities to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java index a9252663d7..53741f5068 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @@ -56,6 +79,8 @@ public class V1CephFSPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_USER) private String user; + public V1CephFSPersistentVolumeSource() { + } public V1CephFSPersistentVolumeSource monitors(List monitors) { @@ -64,6 +89,9 @@ public V1CephFSPersistentVolumeSource monitors(List monitors) { } public V1CephFSPersistentVolumeSource addMonitorsItem(String monitorsItem) { + if (this.monitors == null) { + this.monitors = new ArrayList<>(); + } this.monitors.add(monitorsItem); return this; } @@ -72,8 +100,7 @@ public V1CephFSPersistentVolumeSource addMonitorsItem(String monitorsItem) { * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return monitors **/ - @ApiModelProperty(required = true, value = "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") - + @jakarta.annotation.Nonnull public List getMonitors() { return monitors; } @@ -94,9 +121,7 @@ public V1CephFSPersistentVolumeSource path(String path) { * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / * @return path **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /") - + @jakarta.annotation.Nullable public String getPath() { return path; } @@ -117,9 +142,7 @@ public V1CephFSPersistentVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -140,9 +163,7 @@ public V1CephFSPersistentVolumeSource secretFile(String secretFile) { * 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 * @return secretFile **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getSecretFile() { return secretFile; } @@ -163,9 +184,7 @@ public V1CephFSPersistentVolumeSource secretRef(V1SecretReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getSecretRef() { return secretRef; } @@ -186,9 +205,7 @@ public V1CephFSPersistentVolumeSource user(String user) { * 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 * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getUser() { return user; } @@ -199,8 +216,9 @@ public void setUser(String user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -221,7 +239,6 @@ public int hashCode() { return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -240,11 +257,126 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("monitors"); + openapiFields.add("path"); + openapiFields.add("readOnly"); + openapiFields.add("secretFile"); + openapiFields.add("secretRef"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("monitors"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CephFSPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CephFSPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CephFSPersistentVolumeSource is not found in the empty JSON string", V1CephFSPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CephFSPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CephFSPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CephFSPersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("monitors") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("monitors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `monitors` to be an array in the JSON string but got `%s`", jsonObj.get("monitors").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("secretFile") != null && !jsonObj.get("secretFile").isJsonNull()) && !jsonObj.get("secretFile").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `secretFile` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretFile").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if ((jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CephFSPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CephFSPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CephFSPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CephFSPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CephFSPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CephFSPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CephFSPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CephFSPersistentVolumeSource + */ + public static V1CephFSPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CephFSPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1CephFSPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java index a3b880e7a9..1159f12fd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @@ -56,6 +79,8 @@ public class V1CephFSVolumeSource { @SerializedName(SERIALIZED_NAME_USER) private String user; + public V1CephFSVolumeSource() { + } public V1CephFSVolumeSource monitors(List monitors) { @@ -64,6 +89,9 @@ public V1CephFSVolumeSource monitors(List monitors) { } public V1CephFSVolumeSource addMonitorsItem(String monitorsItem) { + if (this.monitors == null) { + this.monitors = new ArrayList<>(); + } this.monitors.add(monitorsItem); return this; } @@ -72,8 +100,7 @@ public V1CephFSVolumeSource addMonitorsItem(String monitorsItem) { * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it * @return monitors **/ - @ApiModelProperty(required = true, value = "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") - + @jakarta.annotation.Nonnull public List getMonitors() { return monitors; } @@ -94,9 +121,7 @@ public V1CephFSVolumeSource path(String path) { * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / * @return path **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /") - + @jakarta.annotation.Nullable public String getPath() { return path; } @@ -117,9 +142,7 @@ public V1CephFSVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -140,9 +163,7 @@ public V1CephFSVolumeSource secretFile(String secretFile) { * 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 * @return secretFile **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getSecretFile() { return secretFile; } @@ -163,9 +184,7 @@ public V1CephFSVolumeSource secretRef(V1LocalObjectReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -186,9 +205,7 @@ public V1CephFSVolumeSource user(String user) { * 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 * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getUser() { return user; } @@ -199,8 +216,9 @@ public void setUser(String user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -221,7 +239,6 @@ public int hashCode() { return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -240,11 +257,126 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("monitors"); + openapiFields.add("path"); + openapiFields.add("readOnly"); + openapiFields.add("secretFile"); + openapiFields.add("secretRef"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("monitors"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CephFSVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CephFSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CephFSVolumeSource is not found in the empty JSON string", V1CephFSVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CephFSVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CephFSVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CephFSVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("monitors") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("monitors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `monitors` to be an array in the JSON string but got `%s`", jsonObj.get("monitors").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("secretFile") != null && !jsonObj.get("secretFile").isJsonNull()) && !jsonObj.get("secretFile").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `secretFile` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretFile").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1LocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if ((jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CephFSVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CephFSVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CephFSVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CephFSVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CephFSVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CephFSVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CephFSVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CephFSVolumeSource + */ + public static V1CephFSVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CephFSVolumeSource.class); + } + + /** + * Convert an instance of V1CephFSVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java index 349ce3fefc..770409530f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec; import io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1CertificateSigningRequest implements io.kubernetes.client.common. @SerializedName(SERIALIZED_NAME_STATUS) private V1CertificateSigningRequestStatus status; + public V1CertificateSigningRequest() { + } public V1CertificateSigningRequest apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1CertificateSigningRequest apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1CertificateSigningRequest kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1CertificateSigningRequest metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1CertificateSigningRequest spec(V1CertificateSigningRequestSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1CertificateSigningRequestSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1CertificateSigningRequest status(V1CertificateSigningRequestStatus stat * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CertificateSigningRequestStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1CertificateSigningRequestStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CertificateSigningRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CertificateSigningRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CertificateSigningRequest is not found in the empty JSON string", V1CertificateSigningRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CertificateSigningRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CertificateSigningRequest.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1CertificateSigningRequestSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1CertificateSigningRequestStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CertificateSigningRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CertificateSigningRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CertificateSigningRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CertificateSigningRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CertificateSigningRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CertificateSigningRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequest + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequest + */ + public static V1CertificateSigningRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequest.class); + } + + /** + * Convert an instance of V1CertificateSigningRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java index 34eaeba92e..3a181ff849 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object */ @@ -54,6 +77,8 @@ public class V1CertificateSigningRequestCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1CertificateSigningRequestCondition() { + } public V1CertificateSigningRequestCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -65,9 +90,7 @@ public V1CertificateSigningRequestCondition lastTransitionTime(OffsetDateTime la * 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. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -88,9 +111,7 @@ public V1CertificateSigningRequestCondition lastUpdateTime(OffsetDateTime lastUp * lastUpdateTime is the time of the last update to this condition * @return lastUpdateTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "lastUpdateTime is the time of the last update to this condition") - + @jakarta.annotation.Nullable public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } @@ -111,9 +132,7 @@ public V1CertificateSigningRequestCondition message(String message) { * message contains a human readable message with details about the request state * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "message contains a human readable message with details about the request state") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -134,9 +153,7 @@ public V1CertificateSigningRequestCondition reason(String reason) { * reason indicates a brief reason for the request state * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "reason indicates a brief reason for the request state") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -157,8 +174,7 @@ public V1CertificateSigningRequestCondition status(String status) { * status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". * @return status **/ - @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -179,8 +195,7 @@ public V1CertificateSigningRequestCondition type(String type) { * 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. * @return type **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -191,8 +206,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -213,7 +229,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -232,11 +247,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("lastUpdateTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CertificateSigningRequestCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CertificateSigningRequestCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CertificateSigningRequestCondition is not found in the empty JSON string", V1CertificateSigningRequestCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CertificateSigningRequestCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequestCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CertificateSigningRequestCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CertificateSigningRequestCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CertificateSigningRequestCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CertificateSigningRequestCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CertificateSigningRequestCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CertificateSigningRequestCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CertificateSigningRequestCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequestCondition + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestCondition + */ + public static V1CertificateSigningRequestCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequestCondition.class); + } + + /** + * Convert an instance of V1CertificateSigningRequestCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java index b3c393b490..ae149e1a7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CertificateSigningRequest; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CertificateSigningRequestList is a collection of CertificateSigningRequest objects */ @@ -49,6 +72,8 @@ public class V1CertificateSigningRequestList implements io.kubernetes.client.com @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1CertificateSigningRequestList() { + } public V1CertificateSigningRequestList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1CertificateSigningRequestList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1CertificateSigningRequestList items(List i } public V1CertificateSigningRequestList addItemsItem(V1CertificateSigningRequest itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1CertificateSigningRequestList addItemsItem(V1CertificateSigningRequest * items is a collection of CertificateSigningRequest objects * @return items **/ - @ApiModelProperty(required = true, value = "items is a collection of CertificateSigningRequest objects") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1CertificateSigningRequestList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1CertificateSigningRequestList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CertificateSigningRequestList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CertificateSigningRequestList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CertificateSigningRequestList is not found in the empty JSON string", V1CertificateSigningRequestList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CertificateSigningRequestList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequestList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CertificateSigningRequestList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1CertificateSigningRequest.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CertificateSigningRequestList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CertificateSigningRequestList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CertificateSigningRequestList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CertificateSigningRequestList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CertificateSigningRequestList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CertificateSigningRequestList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequestList + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestList + */ + public static V1CertificateSigningRequestList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequestList.class); + } + + /** + * Convert an instance of V1CertificateSigningRequestList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java index 95032a4dde..0a76d28ec3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java @@ -19,14 +19,37 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CertificateSigningRequestSpec contains the certificate request. */ @@ -39,11 +62,11 @@ public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) - private Map> extra = null; + private Map> extra = new HashMap<>(); public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) - private List groups = null; + private List groups; public static final String SERIALIZED_NAME_REQUEST = "request"; @SerializedName(SERIALIZED_NAME_REQUEST) @@ -59,12 +82,14 @@ public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_USAGES = "usages"; @SerializedName(SERIALIZED_NAME_USAGES) - private List usages = null; + private List usages; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) private String username; + public V1CertificateSigningRequestSpec() { + } public V1CertificateSigningRequestSpec expirationSeconds(Integer expirationSeconds) { @@ -76,9 +101,7 @@ public V1CertificateSigningRequestSpec expirationSeconds(Integer expirationSecon * 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. * @return expirationSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getExpirationSeconds() { return expirationSeconds; } @@ -107,9 +130,7 @@ public V1CertificateSigningRequestSpec putExtraItem(String key, List ext * extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. * @return extra **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") - + @jakarta.annotation.Nullable public Map> getExtra() { return extra; } @@ -138,9 +159,7 @@ public V1CertificateSigningRequestSpec addGroupsItem(String groupsItem) { * groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. * @return groups **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") - + @jakarta.annotation.Nullable public List getGroups() { return groups; } @@ -161,8 +180,7 @@ public V1CertificateSigningRequestSpec request(byte[] request) { * 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. * @return request **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public byte[] getRequest() { return request; } @@ -183,8 +201,7 @@ public V1CertificateSigningRequestSpec signerName(String signerName) { * 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. * @return signerName **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getSignerName() { return signerName; } @@ -205,9 +222,7 @@ public V1CertificateSigningRequestSpec uid(String uid) { * uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -236,9 +251,7 @@ public V1CertificateSigningRequestSpec addUsagesItem(String usagesItem) { * 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\" * @return usages **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"") - + @jakarta.annotation.Nullable public List getUsages() { return usages; } @@ -259,9 +272,7 @@ public V1CertificateSigningRequestSpec username(String username) { * username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. * @return username **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") - + @jakarta.annotation.Nullable public String getUsername() { return username; } @@ -272,8 +283,9 @@ public void setUsername(String username) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -296,7 +308,6 @@ public int hashCode() { return Objects.hash(expirationSeconds, extra, groups, Arrays.hashCode(request), signerName, uid, usages, username); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -317,11 +328,127 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expirationSeconds"); + openapiFields.add("extra"); + openapiFields.add("groups"); + openapiFields.add("request"); + openapiFields.add("signerName"); + openapiFields.add("uid"); + openapiFields.add("usages"); + openapiFields.add("username"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("request"); + openapiRequiredFields.add("signerName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CertificateSigningRequestSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CertificateSigningRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CertificateSigningRequestSpec is not found in the empty JSON string", V1CertificateSigningRequestSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CertificateSigningRequestSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequestSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CertificateSigningRequestSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + if (!jsonObj.get("signerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerName").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("usages") != null && !jsonObj.get("usages").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `usages` to be an array in the JSON string but got `%s`", jsonObj.get("usages").toString())); + } + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CertificateSigningRequestSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CertificateSigningRequestSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CertificateSigningRequestSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CertificateSigningRequestSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CertificateSigningRequestSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CertificateSigningRequestSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequestSpec + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestSpec + */ + public static V1CertificateSigningRequestSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequestSpec.class); + } + + /** + * Convert an instance of V1CertificateSigningRequestSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java index 30c9036963..0fea90f766 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. */ @@ -38,8 +61,10 @@ public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; + public V1CertificateSigningRequestStatus() { + } public V1CertificateSigningRequestStatus certificate(byte[] certificate) { @@ -51,9 +76,7 @@ public V1CertificateSigningRequestStatus certificate(byte[] certificate) { * 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----- ) * @return certificate **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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----- )") - + @jakarta.annotation.Nullable public byte[] getCertificate() { return certificate; } @@ -82,9 +105,7 @@ public V1CertificateSigningRequestStatus addConditionsItem(V1CertificateSigningR * conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\". * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -95,8 +116,9 @@ public void setConditions(List conditions) } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -113,7 +135,6 @@ public int hashCode() { return Objects.hash(Arrays.hashCode(certificate), conditions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -128,11 +149,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("certificate"); + openapiFields.add("conditions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CertificateSigningRequestStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CertificateSigningRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CertificateSigningRequestStatus is not found in the empty JSON string", V1CertificateSigningRequestStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CertificateSigningRequestStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequestStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1CertificateSigningRequestCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CertificateSigningRequestStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CertificateSigningRequestStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CertificateSigningRequestStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CertificateSigningRequestStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CertificateSigningRequestStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CertificateSigningRequestStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CertificateSigningRequestStatus + * @throws IOException if the JSON string is invalid with respect to V1CertificateSigningRequestStatus + */ + public static V1CertificateSigningRequestStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CertificateSigningRequestStatus.class); + } + + /** + * Convert an instance of V1CertificateSigningRequestStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java index e41a91bc2c..ff8c6f37dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -46,6 +69,8 @@ public class V1CinderPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_I_D) private String volumeID; + public V1CinderPersistentVolumeSource() { + } public V1CinderPersistentVolumeSource fsType(String fsType) { @@ -57,9 +82,7 @@ public V1CinderPersistentVolumeSource fsType(String fsType) { * 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 * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -80,9 +103,7 @@ public V1CinderPersistentVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -103,9 +124,7 @@ public V1CinderPersistentVolumeSource secretRef(V1SecretReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getSecretRef() { return secretRef; } @@ -126,8 +145,7 @@ public V1CinderPersistentVolumeSource volumeID(String volumeID) { * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @return volumeID **/ - @ApiModelProperty(required = true, value = "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") - + @jakarta.annotation.Nonnull public String getVolumeID() { return volumeID; } @@ -138,8 +156,9 @@ public void setVolumeID(String volumeID) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +177,6 @@ public int hashCode() { return Objects.hash(fsType, readOnly, secretRef, volumeID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +193,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("volumeID"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("volumeID"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CinderPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CinderPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CinderPersistentVolumeSource is not found in the empty JSON string", V1CinderPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CinderPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CinderPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CinderPersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if (!jsonObj.get("volumeID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeID").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CinderPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CinderPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CinderPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CinderPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CinderPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CinderPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CinderPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CinderPersistentVolumeSource + */ + public static V1CinderPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CinderPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1CinderPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java index be825ce93d..6b5cdab803 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -46,6 +69,8 @@ public class V1CinderVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_I_D) private String volumeID; + public V1CinderVolumeSource() { + } public V1CinderVolumeSource fsType(String fsType) { @@ -57,9 +82,7 @@ public V1CinderVolumeSource fsType(String fsType) { * 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 * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -80,9 +103,7 @@ public V1CinderVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -103,9 +124,7 @@ public V1CinderVolumeSource secretRef(V1LocalObjectReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -126,8 +145,7 @@ public V1CinderVolumeSource volumeID(String volumeID) { * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @return volumeID **/ - @ApiModelProperty(required = true, value = "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") - + @jakarta.annotation.Nonnull public String getVolumeID() { return volumeID; } @@ -138,8 +156,9 @@ public void setVolumeID(String volumeID) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +177,6 @@ public int hashCode() { return Objects.hash(fsType, readOnly, secretRef, volumeID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +193,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("volumeID"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("volumeID"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CinderVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CinderVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CinderVolumeSource is not found in the empty JSON string", V1CinderVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CinderVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CinderVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CinderVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1LocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if (!jsonObj.get("volumeID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeID").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CinderVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CinderVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CinderVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CinderVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CinderVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CinderVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CinderVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1CinderVolumeSource + */ + public static V1CinderVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CinderVolumeSource.class); + } + + /** + * Convert an instance of V1CinderVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java index 9c5b50c5fc..012afb730a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -37,6 +60,8 @@ public class V1ClaimSource { @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME) private String resourceClaimTemplateName; + public V1ClaimSource() { + } public V1ClaimSource resourceClaimName(String resourceClaimName) { @@ -48,9 +73,7 @@ public V1ClaimSource resourceClaimName(String resourceClaimName) { * ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. * @return resourceClaimName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.") - + @jakarta.annotation.Nullable public String getResourceClaimName() { return resourceClaimName; } @@ -84,8 +107,9 @@ public void setResourceClaimTemplateName(String resourceClaimTemplateName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +126,6 @@ public int hashCode() { return Objects.hash(resourceClaimName, resourceClaimTemplateName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +140,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("resourceClaimName"); + openapiFields.add("resourceClaimTemplateName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ClaimSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ClaimSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ClaimSource is not found in the empty JSON string", V1ClaimSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ClaimSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ClaimSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("resourceClaimName") != null && !jsonObj.get("resourceClaimName").isJsonNull()) && !jsonObj.get("resourceClaimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); + } + if ((jsonObj.get("resourceClaimTemplateName") != null && !jsonObj.get("resourceClaimTemplateName").isJsonNull()) && !jsonObj.get("resourceClaimTemplateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceClaimTemplateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimTemplateName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ClaimSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClaimSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClaimSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ClaimSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ClaimSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ClaimSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClaimSource + * @throws IOException if the JSON string is invalid with respect to V1ClaimSource + */ + public static V1ClaimSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClaimSource.class); + } + + /** + * Convert an instance of V1ClaimSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java index 4a78bc42b0..b0945607d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClientIPConfig represents the configurations of Client IP based session affinity. */ @@ -33,6 +56,8 @@ public class V1ClientIPConfig { @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) private Integer timeoutSeconds; + public V1ClientIPConfig() { + } public V1ClientIPConfig timeoutSeconds(Integer timeoutSeconds) { @@ -44,9 +69,7 @@ public V1ClientIPConfig timeoutSeconds(Integer timeoutSeconds) { * 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). * @return timeoutSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public Integer getTimeoutSeconds() { return timeoutSeconds; } @@ -57,8 +80,9 @@ public void setTimeoutSeconds(Integer timeoutSeconds) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -74,7 +98,6 @@ public int hashCode() { return Objects.hash(timeoutSeconds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -88,11 +111,94 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("timeoutSeconds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ClientIPConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ClientIPConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ClientIPConfig is not found in the empty JSON string", V1ClientIPConfig.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ClientIPConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ClientIPConfig` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ClientIPConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClientIPConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClientIPConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ClientIPConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ClientIPConfig read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ClientIPConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClientIPConfig + * @throws IOException if the JSON string is invalid with respect to V1ClientIPConfig + */ + public static V1ClientIPConfig fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClientIPConfig.class); + } + + /** + * Convert an instance of V1ClientIPConfig to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java index d838732e2c..1d187a94ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1AggregationRule; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PolicyRule; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ @@ -52,8 +75,10 @@ public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObje public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) - private List rules = null; + private List rules; + public V1ClusterRole() { + } public V1ClusterRole aggregationRule(V1AggregationRule aggregationRule) { @@ -65,9 +90,7 @@ public V1ClusterRole aggregationRule(V1AggregationRule aggregationRule) { * Get aggregationRule * @return aggregationRule **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1AggregationRule getAggregationRule() { return aggregationRule; } @@ -88,9 +111,7 @@ public V1ClusterRole apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -111,9 +132,7 @@ public V1ClusterRole kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -134,9 +153,7 @@ public V1ClusterRole metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -165,9 +182,7 @@ public V1ClusterRole addRulesItem(V1PolicyRule rulesItem) { * Rules holds all the PolicyRules for this ClusterRole * @return rules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Rules holds all the PolicyRules for this ClusterRole") - + @jakarta.annotation.Nullable public List getRules() { return rules; } @@ -178,8 +193,9 @@ public void setRules(List rules) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -199,7 +215,6 @@ public int hashCode() { return Objects.hash(aggregationRule, apiVersion, kind, metadata, rules); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -217,11 +232,126 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("aggregationRule"); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("rules"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ClusterRole + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ClusterRole.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ClusterRole is not found in the empty JSON string", V1ClusterRole.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ClusterRole.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ClusterRole` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `aggregationRule` + if (jsonObj.get("aggregationRule") != null && !jsonObj.get("aggregationRule").isJsonNull()) { + V1AggregationRule.validateJsonObject(jsonObj.getAsJsonObject("aggregationRule")); + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + V1PolicyRule.validateJsonObject(jsonArrayrules.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ClusterRole.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClusterRole' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClusterRole.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ClusterRole value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ClusterRole read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ClusterRole given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterRole + * @throws IOException if the JSON string is invalid with respect to V1ClusterRole + */ + public static V1ClusterRole fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClusterRole.class); + } + + /** + * Convert an instance of V1ClusterRole to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java index df51b731c4..3c5c621ccb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1RoleRef; import io.kubernetes.client.openapi.models.V1Subject; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ @@ -52,8 +75,10 @@ public class V1ClusterRoleBinding implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) - private List subjects = null; + private List subjects; + public V1ClusterRoleBinding() { + } public V1ClusterRoleBinding apiVersion(String apiVersion) { @@ -65,9 +90,7 @@ public V1ClusterRoleBinding apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -88,9 +111,7 @@ public V1ClusterRoleBinding kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -111,9 +132,7 @@ public V1ClusterRoleBinding metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -134,8 +153,7 @@ public V1ClusterRoleBinding roleRef(V1RoleRef roleRef) { * Get roleRef * @return roleRef **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1RoleRef getRoleRef() { return roleRef; } @@ -164,9 +182,7 @@ public V1ClusterRoleBinding addSubjectsItem(V1Subject subjectsItem) { * Subjects holds references to the objects the role applies to. * @return subjects **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") - + @jakarta.annotation.Nullable public List getSubjects() { return subjects; } @@ -177,8 +193,9 @@ public void setSubjects(List subjects) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -198,7 +215,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -216,11 +232,132 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("roleRef"); + openapiFields.add("subjects"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("roleRef"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ClusterRoleBinding + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ClusterRoleBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ClusterRoleBinding is not found in the empty JSON string", V1ClusterRoleBinding.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ClusterRoleBinding.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ClusterRoleBinding` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ClusterRoleBinding.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `roleRef` + V1RoleRef.validateJsonObject(jsonObj.getAsJsonObject("roleRef")); + if (jsonObj.get("subjects") != null && !jsonObj.get("subjects").isJsonNull()) { + JsonArray jsonArraysubjects = jsonObj.getAsJsonArray("subjects"); + if (jsonArraysubjects != null) { + // ensure the json data is an array + if (!jsonObj.get("subjects").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `subjects` to be an array in the JSON string but got `%s`", jsonObj.get("subjects").toString())); + } + + // validate the optional field `subjects` (array) + for (int i = 0; i < jsonArraysubjects.size(); i++) { + V1Subject.validateJsonObject(jsonArraysubjects.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ClusterRoleBinding.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClusterRoleBinding' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClusterRoleBinding.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ClusterRoleBinding value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ClusterRoleBinding read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ClusterRoleBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterRoleBinding + * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleBinding + */ + public static V1ClusterRoleBinding fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClusterRoleBinding.class); + } + + /** + * Convert an instance of V1ClusterRoleBinding to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java index c09a50b5b1..cde74f449e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ClusterRoleBinding; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @@ -49,6 +72,8 @@ public class V1ClusterRoleBindingList implements io.kubernetes.client.common.Kub @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ClusterRoleBindingList() { + } public V1ClusterRoleBindingList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ClusterRoleBindingList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ClusterRoleBindingList items(List items) { } public V1ClusterRoleBindingList addItemsItem(V1ClusterRoleBinding itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ClusterRoleBindingList addItemsItem(V1ClusterRoleBinding itemsItem) { * Items is a list of ClusterRoleBindings * @return items **/ - @ApiModelProperty(required = true, value = "Items is a list of ClusterRoleBindings") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ClusterRoleBindingList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ClusterRoleBindingList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ClusterRoleBindingList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ClusterRoleBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ClusterRoleBindingList is not found in the empty JSON string", V1ClusterRoleBindingList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ClusterRoleBindingList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ClusterRoleBindingList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ClusterRoleBindingList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ClusterRoleBinding.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ClusterRoleBindingList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClusterRoleBindingList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClusterRoleBindingList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ClusterRoleBindingList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ClusterRoleBindingList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ClusterRoleBindingList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterRoleBindingList + * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleBindingList + */ + public static V1ClusterRoleBindingList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClusterRoleBindingList.class); + } + + /** + * Convert an instance of V1ClusterRoleBindingList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java index ebba85c580..68f6eb69cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ClusterRole; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterRoleList is a collection of ClusterRoles */ @@ -49,6 +72,8 @@ public class V1ClusterRoleList implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ClusterRoleList() { + } public V1ClusterRoleList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ClusterRoleList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ClusterRoleList items(List items) { } public V1ClusterRoleList addItemsItem(V1ClusterRole itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ClusterRoleList addItemsItem(V1ClusterRole itemsItem) { * Items is a list of ClusterRoles * @return items **/ - @ApiModelProperty(required = true, value = "Items is a list of ClusterRoles") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ClusterRoleList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ClusterRoleList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ClusterRoleList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ClusterRoleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ClusterRoleList is not found in the empty JSON string", V1ClusterRoleList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ClusterRoleList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ClusterRoleList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ClusterRoleList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ClusterRole.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ClusterRoleList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClusterRoleList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClusterRoleList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ClusterRoleList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ClusterRoleList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ClusterRoleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ClusterRoleList + * @throws IOException if the JSON string is invalid with respect to V1ClusterRoleList + */ + public static V1ClusterRoleList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClusterRoleList.class); + } + + /** + * Convert an instance of V1ClusterRoleList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java index 989e95419a..c20b2e67f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Information about the condition of a component. */ @@ -45,6 +68,8 @@ public class V1ComponentCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1ComponentCondition() { + } public V1ComponentCondition error(String error) { @@ -56,9 +81,7 @@ public V1ComponentCondition error(String error) { * Condition error code for a component. For example, a health check error code. * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Condition error code for a component. For example, a health check error code.") - + @jakarta.annotation.Nullable public String getError() { return error; } @@ -79,9 +102,7 @@ public V1ComponentCondition message(String message) { * Message about the condition for a component. For example, information about a health check. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Message about the condition for a component. For example, information about a health check.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -102,8 +123,7 @@ public V1ComponentCondition status(String status) { * Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -124,8 +144,7 @@ public V1ComponentCondition type(String type) { * Type of condition for a component. Valid value: \"Healthy\" * @return type **/ - @ApiModelProperty(required = true, value = "Type of condition for a component. Valid value: \"Healthy\"") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -136,8 +155,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -156,7 +176,6 @@ public int hashCode() { return Objects.hash(error, message, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,11 +192,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("error"); + openapiFields.add("message"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ComponentCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ComponentCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ComponentCondition is not found in the empty JSON string", V1ComponentCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ComponentCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ComponentCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ComponentCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ComponentCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ComponentCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ComponentCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ComponentCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ComponentCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ComponentCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ComponentCondition + * @throws IOException if the JSON string is invalid with respect to V1ComponentCondition + */ + public static V1ComponentCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ComponentCondition.class); + } + + /** + * Convert an instance of V1ComponentCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java index 5287862af4..827e52f797 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ComponentCondition; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ */ @@ -39,7 +62,7 @@ public class V1ComponentStatus implements io.kubernetes.client.common.Kubernetes public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -49,6 +72,8 @@ public class V1ComponentStatus implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_METADATA) private V1ObjectMeta metadata; + public V1ComponentStatus() { + } public V1ComponentStatus apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ComponentStatus apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -91,9 +114,7 @@ public V1ComponentStatus addConditionsItem(V1ComponentCondition conditionsItem) * List of component conditions observed * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of component conditions observed") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -114,9 +135,7 @@ public V1ComponentStatus kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -137,9 +156,7 @@ public V1ComponentStatus metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -150,8 +167,9 @@ public void setMetadata(V1ObjectMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, conditions, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("conditions"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ComponentStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ComponentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ComponentStatus is not found in the empty JSON string", V1ComponentStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ComponentStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ComponentStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1ComponentCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ComponentStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ComponentStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ComponentStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ComponentStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ComponentStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ComponentStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ComponentStatus + * @throws IOException if the JSON string is invalid with respect to V1ComponentStatus + */ + public static V1ComponentStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ComponentStatus.class); + } + + /** + * Convert an instance of V1ComponentStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java index 5053405c51..70917285b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ComponentStatus; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ */ @@ -49,6 +72,8 @@ public class V1ComponentStatusList implements io.kubernetes.client.common.Kubern @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ComponentStatusList() { + } public V1ComponentStatusList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ComponentStatusList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ComponentStatusList items(List items) { } public V1ComponentStatusList addItemsItem(V1ComponentStatus itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ComponentStatusList addItemsItem(V1ComponentStatus itemsItem) { * List of ComponentStatus objects. * @return items **/ - @ApiModelProperty(required = true, value = "List of ComponentStatus objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ComponentStatusList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ComponentStatusList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ComponentStatusList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ComponentStatusList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ComponentStatusList is not found in the empty JSON string", V1ComponentStatusList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ComponentStatusList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ComponentStatusList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ComponentStatusList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ComponentStatus.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ComponentStatusList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ComponentStatusList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ComponentStatusList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ComponentStatusList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ComponentStatusList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ComponentStatusList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ComponentStatusList + * @throws IOException if the JSON string is invalid with respect to V1ComponentStatusList + */ + public static V1ComponentStatusList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ComponentStatusList.class); + } + + /** + * Convert an instance of V1ComponentStatusList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java index 96eb043e11..66f37371cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Condition contains details for one aspect of the current state of this API Resource. */ @@ -54,6 +77,8 @@ public class V1Condition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1Condition() { + } public V1Condition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -65,8 +90,7 @@ public V1Condition lastTransitionTime(OffsetDateTime lastTransitionTime) { * 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. * @return lastTransitionTime **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -87,8 +111,7 @@ public V1Condition message(String message) { * message is a human readable message indicating details about the transition. This may be an empty string. * @return message **/ - @ApiModelProperty(required = true, value = "message is a human readable message indicating details about the transition. This may be an empty string.") - + @jakarta.annotation.Nonnull public String getMessage() { return message; } @@ -109,9 +132,7 @@ public V1Condition observedGeneration(Long observedGeneration) { * observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -132,8 +153,7 @@ public V1Condition reason(String reason) { * 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. * @return reason **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getReason() { return reason; } @@ -154,8 +174,7 @@ public V1Condition status(String status) { * status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -176,8 +195,7 @@ public V1Condition type(String type) { * type of condition in CamelCase or in foo.example.com/CamelCase. * @return type **/ - @ApiModelProperty(required = true, value = "type of condition in CamelCase or in foo.example.com/CamelCase.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -188,8 +206,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -210,7 +229,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -229,11 +247,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("observedGeneration"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("lastTransitionTime"); + openapiRequiredFields.add("message"); + openapiRequiredFields.add("reason"); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Condition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Condition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Condition is not found in the empty JSON string", V1Condition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Condition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Condition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Condition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if (!jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Condition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Condition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Condition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Condition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Condition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Condition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Condition + * @throws IOException if the JSON string is invalid with respect to V1Condition + */ + public static V1Condition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Condition.class); + } + + /** + * Convert an instance of V1Condition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java index bb96f9d75b..f03622b51e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * ConfigMap holds configuration data for pods to consume. @@ -39,11 +61,11 @@ public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject public static final String SERIALIZED_NAME_BINARY_DATA = "binaryData"; @SerializedName(SERIALIZED_NAME_BINARY_DATA) - private Map binaryData = null; + private Map binaryData = new HashMap<>(); public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private Map data = null; + private Map data = new HashMap<>(); public static final String SERIALIZED_NAME_IMMUTABLE = "immutable"; @SerializedName(SERIALIZED_NAME_IMMUTABLE) @@ -57,6 +79,8 @@ public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject @SerializedName(SERIALIZED_NAME_METADATA) private V1ObjectMeta metadata; + public V1ConfigMap() { + } public V1ConfigMap apiVersion(String apiVersion) { @@ -68,9 +92,7 @@ public V1ConfigMap apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -99,9 +121,7 @@ public V1ConfigMap putBinaryDataItem(String key, byte[] binaryDataItem) { * 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. * @return binaryData **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getBinaryData() { return binaryData; } @@ -130,9 +150,7 @@ public V1ConfigMap putDataItem(String key, String dataItem) { * 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. * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getData() { return data; } @@ -153,9 +171,7 @@ public V1ConfigMap immutable(Boolean immutable) { * 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. * @return immutable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getImmutable() { return immutable; } @@ -176,9 +192,7 @@ public V1ConfigMap kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -199,9 +213,7 @@ public V1ConfigMap metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -212,8 +224,9 @@ public void setMetadata(V1ObjectMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -234,7 +247,6 @@ public int hashCode() { return Objects.hash(apiVersion, binaryData, data, immutable, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -253,11 +265,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("binaryData"); + openapiFields.add("data"); + openapiFields.add("immutable"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ConfigMap + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ConfigMap.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ConfigMap is not found in the empty JSON string", V1ConfigMap.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ConfigMap.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ConfigMap` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ConfigMap.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ConfigMap' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ConfigMap.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ConfigMap value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ConfigMap read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ConfigMap given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMap + * @throws IOException if the JSON string is invalid with respect to V1ConfigMap + */ + public static V1ConfigMap fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ConfigMap.class); + } + + /** + * Convert an instance of V1ConfigMap to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java index 31bd3ab18b..9738025e94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -37,6 +60,8 @@ public class V1ConfigMapEnvSource { @SerializedName(SERIALIZED_NAME_OPTIONAL) private Boolean optional; + public V1ConfigMapEnvSource() { + } public V1ConfigMapEnvSource name(String name) { @@ -48,9 +73,7 @@ public V1ConfigMapEnvSource name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -71,9 +94,7 @@ public V1ConfigMapEnvSource optional(Boolean optional) { * Specify whether the ConfigMap must be defined * @return optional **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Specify whether the ConfigMap must be defined") - + @jakarta.annotation.Nullable public Boolean getOptional() { return optional; } @@ -84,8 +105,9 @@ public void setOptional(Boolean optional) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(name, optional); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("optional"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ConfigMapEnvSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ConfigMapEnvSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ConfigMapEnvSource is not found in the empty JSON string", V1ConfigMapEnvSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ConfigMapEnvSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ConfigMapEnvSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ConfigMapEnvSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ConfigMapEnvSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ConfigMapEnvSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ConfigMapEnvSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ConfigMapEnvSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ConfigMapEnvSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapEnvSource + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapEnvSource + */ + public static V1ConfigMapEnvSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ConfigMapEnvSource.class); + } + + /** + * Convert an instance of V1ConfigMapEnvSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java index 5fe7763cff..b83c17db8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Selects a key from a ConfigMap. */ @@ -41,6 +64,8 @@ public class V1ConfigMapKeySelector { @SerializedName(SERIALIZED_NAME_OPTIONAL) private Boolean optional; + public V1ConfigMapKeySelector() { + } public V1ConfigMapKeySelector key(String key) { @@ -52,8 +77,7 @@ public V1ConfigMapKeySelector key(String key) { * The key to select. * @return key **/ - @ApiModelProperty(required = true, value = "The key to select.") - + @jakarta.annotation.Nonnull public String getKey() { return key; } @@ -74,9 +98,7 @@ public V1ConfigMapKeySelector name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -97,9 +119,7 @@ public V1ConfigMapKeySelector optional(Boolean optional) { * Specify whether the ConfigMap or its key must be defined * @return optional **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Specify whether the ConfigMap or its key must be defined") - + @jakarta.annotation.Nullable public Boolean getOptional() { return optional; } @@ -110,8 +130,9 @@ public void setOptional(Boolean optional) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -129,7 +150,6 @@ public int hashCode() { return Objects.hash(key, name, optional); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -145,11 +165,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("name"); + openapiFields.add("optional"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ConfigMapKeySelector + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ConfigMapKeySelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ConfigMapKeySelector is not found in the empty JSON string", V1ConfigMapKeySelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ConfigMapKeySelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ConfigMapKeySelector` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ConfigMapKeySelector.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ConfigMapKeySelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ConfigMapKeySelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ConfigMapKeySelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ConfigMapKeySelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ConfigMapKeySelector read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ConfigMapKeySelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapKeySelector + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapKeySelector + */ + public static V1ConfigMapKeySelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ConfigMapKeySelector.class); + } + + /** + * Convert an instance of V1ConfigMapKeySelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java index b74ec8139b..aad6a612c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ConfigMap; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ConfigMapList is a resource containing a list of ConfigMap objects. */ @@ -49,6 +72,8 @@ public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesLi @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ConfigMapList() { + } public V1ConfigMapList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ConfigMapList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ConfigMapList items(List items) { } public V1ConfigMapList addItemsItem(V1ConfigMap itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ConfigMapList addItemsItem(V1ConfigMap itemsItem) { * Items is the list of ConfigMaps. * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of ConfigMaps.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ConfigMapList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ConfigMapList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ConfigMapList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ConfigMapList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ConfigMapList is not found in the empty JSON string", V1ConfigMapList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ConfigMapList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ConfigMapList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ConfigMapList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ConfigMap.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ConfigMapList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ConfigMapList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ConfigMapList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ConfigMapList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ConfigMapList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ConfigMapList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapList + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapList + */ + public static V1ConfigMapList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ConfigMapList.class); + } + + /** + * Convert an instance of V1ConfigMapList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java index 25a1a0b5d0..d2cb3602bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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 */ @@ -49,6 +72,8 @@ public class V1ConfigMapNodeConfigSource { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1ConfigMapNodeConfigSource() { + } public V1ConfigMapNodeConfigSource kubeletConfigKey(String kubeletConfigKey) { @@ -60,8 +85,7 @@ public V1ConfigMapNodeConfigSource kubeletConfigKey(String kubeletConfigKey) { * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. * @return kubeletConfigKey **/ - @ApiModelProperty(required = true, value = "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.") - + @jakarta.annotation.Nonnull public String getKubeletConfigKey() { return kubeletConfigKey; } @@ -82,8 +106,7 @@ public V1ConfigMapNodeConfigSource name(String name) { * Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. * @return name **/ - @ApiModelProperty(required = true, value = "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -104,8 +127,7 @@ public V1ConfigMapNodeConfigSource namespace(String namespace) { * Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. * @return namespace **/ - @ApiModelProperty(required = true, value = "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.") - + @jakarta.annotation.Nonnull public String getNamespace() { return namespace; } @@ -126,9 +148,7 @@ public V1ConfigMapNodeConfigSource resourceVersion(String resourceVersion) { * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. * @return resourceVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.") - + @jakarta.annotation.Nullable public String getResourceVersion() { return resourceVersion; } @@ -149,9 +169,7 @@ public V1ConfigMapNodeConfigSource uid(String uid) { * UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -162,8 +180,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -183,7 +202,6 @@ public int hashCode() { return Objects.hash(kubeletConfigKey, name, namespace, resourceVersion, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -201,11 +219,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("kubeletConfigKey"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("resourceVersion"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kubeletConfigKey"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("namespace"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ConfigMapNodeConfigSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ConfigMapNodeConfigSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ConfigMapNodeConfigSource is not found in the empty JSON string", V1ConfigMapNodeConfigSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ConfigMapNodeConfigSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ConfigMapNodeConfigSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ConfigMapNodeConfigSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("kubeletConfigKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kubeletConfigKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kubeletConfigKey").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if ((jsonObj.get("resourceVersion") != null && !jsonObj.get("resourceVersion").isJsonNull()) && !jsonObj.get("resourceVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceVersion").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ConfigMapNodeConfigSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ConfigMapNodeConfigSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ConfigMapNodeConfigSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ConfigMapNodeConfigSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ConfigMapNodeConfigSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ConfigMapNodeConfigSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapNodeConfigSource + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapNodeConfigSource + */ + public static V1ConfigMapNodeConfigSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ConfigMapNodeConfigSource.class); + } + + /** + * Convert an instance of V1ConfigMapNodeConfigSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java index 5296bfc44e..38d1e337a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1KeyToPath; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -34,7 +57,7 @@ public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; + private List items; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -44,6 +67,8 @@ public class V1ConfigMapProjection { @SerializedName(SERIALIZED_NAME_OPTIONAL) private Boolean optional; + public V1ConfigMapProjection() { + } public V1ConfigMapProjection items(List items) { @@ -63,9 +88,7 @@ public V1ConfigMapProjection addItemsItem(V1KeyToPath itemsItem) { * 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 '..'. * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 '..'.") - + @jakarta.annotation.Nullable public List getItems() { return items; } @@ -86,9 +109,7 @@ public V1ConfigMapProjection name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -109,9 +130,7 @@ public V1ConfigMapProjection optional(Boolean optional) { * optional specify whether the ConfigMap or its keys must be defined * @return optional **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "optional specify whether the ConfigMap or its keys must be defined") - + @jakarta.annotation.Nullable public Boolean getOptional() { return optional; } @@ -122,8 +141,9 @@ public void setOptional(Boolean optional) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -141,7 +161,6 @@ public int hashCode() { return Objects.hash(items, name, optional); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -157,11 +176,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("items"); + openapiFields.add("name"); + openapiFields.add("optional"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ConfigMapProjection + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ConfigMapProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ConfigMapProjection is not found in the empty JSON string", V1ConfigMapProjection.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ConfigMapProjection.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ConfigMapProjection` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + if (jsonArrayitems != null) { + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + // validate the optional field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1KeyToPath.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ConfigMapProjection.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ConfigMapProjection' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ConfigMapProjection.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ConfigMapProjection value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ConfigMapProjection read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ConfigMapProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapProjection + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapProjection + */ + public static V1ConfigMapProjection fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ConfigMapProjection.class); + } + + /** + * Convert an instance of V1ConfigMapProjection to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java index 1fb19ce484..6265f84846 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1KeyToPath; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,7 +61,7 @@ public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; + private List items; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -48,6 +71,8 @@ public class V1ConfigMapVolumeSource { @SerializedName(SERIALIZED_NAME_OPTIONAL) private Boolean optional; + public V1ConfigMapVolumeSource() { + } public V1ConfigMapVolumeSource defaultMode(Integer defaultMode) { @@ -59,9 +84,7 @@ public V1ConfigMapVolumeSource defaultMode(Integer defaultMode) { * 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. * @return defaultMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getDefaultMode() { return defaultMode; } @@ -90,9 +113,7 @@ public V1ConfigMapVolumeSource addItemsItem(V1KeyToPath itemsItem) { * 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 '..'. * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 '..'.") - + @jakarta.annotation.Nullable public List getItems() { return items; } @@ -113,9 +134,7 @@ public V1ConfigMapVolumeSource name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -136,9 +155,7 @@ public V1ConfigMapVolumeSource optional(Boolean optional) { * optional specify whether the ConfigMap or its keys must be defined * @return optional **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "optional specify whether the ConfigMap or its keys must be defined") - + @jakarta.annotation.Nullable public Boolean getOptional() { return optional; } @@ -149,8 +166,9 @@ public void setOptional(Boolean optional) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -169,7 +187,6 @@ public int hashCode() { return Objects.hash(defaultMode, items, name, optional); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -186,11 +203,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("defaultMode"); + openapiFields.add("items"); + openapiFields.add("name"); + openapiFields.add("optional"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ConfigMapVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ConfigMapVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ConfigMapVolumeSource is not found in the empty JSON string", V1ConfigMapVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ConfigMapVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ConfigMapVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + if (jsonArrayitems != null) { + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + // validate the optional field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1KeyToPath.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ConfigMapVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ConfigMapVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ConfigMapVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ConfigMapVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ConfigMapVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ConfigMapVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ConfigMapVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ConfigMapVolumeSource + */ + public static V1ConfigMapVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ConfigMapVolumeSource.class); + } + + /** + * Convert an instance of V1ConfigMapVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java index a5c23dca8f..7aa950cd20 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java @@ -29,12 +29,35 @@ import io.kubernetes.client.openapi.models.V1SecurityContext; import io.kubernetes.client.openapi.models.V1VolumeDevice; import io.kubernetes.client.openapi.models.V1VolumeMount; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * A single application container that you want to run within a pod. */ @@ -43,19 +66,19 @@ public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) - private List args = null; + private List args; public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) - private List command = null; + private List command; public static final String SERIALIZED_NAME_ENV = "env"; @SerializedName(SERIALIZED_NAME_ENV) - private List env = null; + private List env; public static final String SERIALIZED_NAME_ENV_FROM = "envFrom"; @SerializedName(SERIALIZED_NAME_ENV_FROM) - private List envFrom = null; + private List envFrom; public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) @@ -79,7 +102,7 @@ public class V1Container { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; public static final String SERIALIZED_NAME_READINESS_PROBE = "readinessProbe"; @SerializedName(SERIALIZED_NAME_READINESS_PROBE) @@ -87,7 +110,7 @@ public class V1Container { public static final String SERIALIZED_NAME_RESIZE_POLICY = "resizePolicy"; @SerializedName(SERIALIZED_NAME_RESIZE_POLICY) - private List resizePolicy = null; + private List resizePolicy; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) @@ -127,16 +150,18 @@ public class V1Container { public static final String SERIALIZED_NAME_VOLUME_DEVICES = "volumeDevices"; @SerializedName(SERIALIZED_NAME_VOLUME_DEVICES) - private List volumeDevices = null; + private List volumeDevices; public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts"; @SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS) - private List volumeMounts = null; + private List volumeMounts; public static final String SERIALIZED_NAME_WORKING_DIR = "workingDir"; @SerializedName(SERIALIZED_NAME_WORKING_DIR) private String workingDir; + public V1Container() { + } public V1Container args(List args) { @@ -156,9 +181,7 @@ public V1Container addArgsItem(String argsItem) { * 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 * @return args **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getArgs() { return args; } @@ -187,9 +210,7 @@ public V1Container addCommandItem(String commandItem) { * 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 * @return command **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getCommand() { return command; } @@ -218,9 +239,7 @@ public V1Container addEnvItem(V1EnvVar envItem) { * List of environment variables to set in the container. Cannot be updated. * @return env **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of environment variables to set in the container. Cannot be updated.") - + @jakarta.annotation.Nullable public List getEnv() { return env; } @@ -249,9 +268,7 @@ public V1Container addEnvFromItem(V1EnvFromSource envFromItem) { * 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. * @return envFrom **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getEnvFrom() { return envFrom; } @@ -272,9 +289,7 @@ public V1Container image(String image) { * 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. * @return image **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getImage() { return image; } @@ -295,9 +310,7 @@ public V1Container imagePullPolicy(String imagePullPolicy) { * 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 * @return imagePullPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getImagePullPolicy() { return imagePullPolicy; } @@ -318,9 +331,7 @@ public V1Container lifecycle(V1Lifecycle lifecycle) { * Get lifecycle * @return lifecycle **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Lifecycle getLifecycle() { return lifecycle; } @@ -341,9 +352,7 @@ public V1Container livenessProbe(V1Probe livenessProbe) { * Get livenessProbe * @return livenessProbe **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Probe getLivenessProbe() { return livenessProbe; } @@ -364,8 +373,7 @@ public V1Container name(String name) { * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. * @return name **/ - @ApiModelProperty(required = true, value = "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -394,9 +402,7 @@ public V1Container addPortsItem(V1ContainerPort portsItem) { * 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. * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -417,9 +423,7 @@ public V1Container readinessProbe(V1Probe readinessProbe) { * Get readinessProbe * @return readinessProbe **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Probe getReadinessProbe() { return readinessProbe; } @@ -448,9 +452,7 @@ public V1Container addResizePolicyItem(V1ContainerResizePolicy resizePolicyItem) * Resources resize policy for the container. * @return resizePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resources resize policy for the container.") - + @jakarta.annotation.Nullable public List getResizePolicy() { return resizePolicy; } @@ -471,9 +473,7 @@ public V1Container resources(V1ResourceRequirements resources) { * Get resources * @return resources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceRequirements getResources() { return resources; } @@ -517,9 +517,7 @@ public V1Container securityContext(V1SecurityContext securityContext) { * Get securityContext * @return securityContext **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecurityContext getSecurityContext() { return securityContext; } @@ -540,9 +538,7 @@ public V1Container startupProbe(V1Probe startupProbe) { * Get startupProbe * @return startupProbe **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Probe getStartupProbe() { return startupProbe; } @@ -563,9 +559,7 @@ public V1Container stdin(Boolean stdin) { * 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. * @return stdin **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getStdin() { return stdin; } @@ -586,9 +580,7 @@ public V1Container stdinOnce(Boolean stdinOnce) { * 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 * @return stdinOnce **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getStdinOnce() { return stdinOnce; } @@ -609,9 +601,7 @@ public V1Container terminationMessagePath(String terminationMessagePath) { * 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. * @return terminationMessagePath **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getTerminationMessagePath() { return terminationMessagePath; } @@ -632,9 +622,7 @@ public V1Container terminationMessagePolicy(String terminationMessagePolicy) { * 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. * @return terminationMessagePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getTerminationMessagePolicy() { return terminationMessagePolicy; } @@ -655,9 +643,7 @@ public V1Container tty(Boolean tty) { * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. * @return tty **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.") - + @jakarta.annotation.Nullable public Boolean getTty() { return tty; } @@ -686,9 +672,7 @@ public V1Container addVolumeDevicesItem(V1VolumeDevice volumeDevicesItem) { * volumeDevices is the list of block devices to be used by the container. * @return volumeDevices **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeDevices is the list of block devices to be used by the container.") - + @jakarta.annotation.Nullable public List getVolumeDevices() { return volumeDevices; } @@ -717,9 +701,7 @@ public V1Container addVolumeMountsItem(V1VolumeMount volumeMountsItem) { * Pod volumes to mount into the container's filesystem. Cannot be updated. * @return volumeMounts **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Pod volumes to mount into the container's filesystem. Cannot be updated.") - + @jakarta.annotation.Nullable public List getVolumeMounts() { return volumeMounts; } @@ -740,9 +722,7 @@ public V1Container workingDir(String workingDir) { * 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. * @return workingDir **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getWorkingDir() { return workingDir; } @@ -753,8 +733,9 @@ public void setWorkingDir(String workingDir) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -793,7 +774,6 @@ public int hashCode() { return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, securityContext, startupProbe, stdin, stdinOnce, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -830,11 +810,262 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("args"); + openapiFields.add("command"); + openapiFields.add("env"); + openapiFields.add("envFrom"); + openapiFields.add("image"); + openapiFields.add("imagePullPolicy"); + openapiFields.add("lifecycle"); + openapiFields.add("livenessProbe"); + openapiFields.add("name"); + openapiFields.add("ports"); + openapiFields.add("readinessProbe"); + openapiFields.add("resizePolicy"); + openapiFields.add("resources"); + openapiFields.add("restartPolicy"); + openapiFields.add("securityContext"); + openapiFields.add("startupProbe"); + openapiFields.add("stdin"); + openapiFields.add("stdinOnce"); + openapiFields.add("terminationMessagePath"); + openapiFields.add("terminationMessagePolicy"); + openapiFields.add("tty"); + openapiFields.add("volumeDevices"); + openapiFields.add("volumeMounts"); + openapiFields.add("workingDir"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Container + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Container.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Container is not found in the empty JSON string", V1Container.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Container.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Container` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Container.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("args") != null && !jsonObj.get("args").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `args` to be an array in the JSON string but got `%s`", jsonObj.get("args").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("command") != null && !jsonObj.get("command").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `command` to be an array in the JSON string but got `%s`", jsonObj.get("command").toString())); + } + if (jsonObj.get("env") != null && !jsonObj.get("env").isJsonNull()) { + JsonArray jsonArrayenv = jsonObj.getAsJsonArray("env"); + if (jsonArrayenv != null) { + // ensure the json data is an array + if (!jsonObj.get("env").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `env` to be an array in the JSON string but got `%s`", jsonObj.get("env").toString())); + } + + // validate the optional field `env` (array) + for (int i = 0; i < jsonArrayenv.size(); i++) { + V1EnvVar.validateJsonObject(jsonArrayenv.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("envFrom") != null && !jsonObj.get("envFrom").isJsonNull()) { + JsonArray jsonArrayenvFrom = jsonObj.getAsJsonArray("envFrom"); + if (jsonArrayenvFrom != null) { + // ensure the json data is an array + if (!jsonObj.get("envFrom").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `envFrom` to be an array in the JSON string but got `%s`", jsonObj.get("envFrom").toString())); + } + + // validate the optional field `envFrom` (array) + for (int i = 0; i < jsonArrayenvFrom.size(); i++) { + V1EnvFromSource.validateJsonObject(jsonArrayenvFrom.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("image") != null && !jsonObj.get("image").isJsonNull()) && !jsonObj.get("image").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image").toString())); + } + if ((jsonObj.get("imagePullPolicy") != null && !jsonObj.get("imagePullPolicy").isJsonNull()) && !jsonObj.get("imagePullPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `imagePullPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("imagePullPolicy").toString())); + } + // validate the optional field `lifecycle` + if (jsonObj.get("lifecycle") != null && !jsonObj.get("lifecycle").isJsonNull()) { + V1Lifecycle.validateJsonObject(jsonObj.getAsJsonObject("lifecycle")); + } + // validate the optional field `livenessProbe` + if (jsonObj.get("livenessProbe") != null && !jsonObj.get("livenessProbe").isJsonNull()) { + V1Probe.validateJsonObject(jsonObj.getAsJsonObject("livenessProbe")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + V1ContainerPort.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `readinessProbe` + if (jsonObj.get("readinessProbe") != null && !jsonObj.get("readinessProbe").isJsonNull()) { + V1Probe.validateJsonObject(jsonObj.getAsJsonObject("readinessProbe")); + } + if (jsonObj.get("resizePolicy") != null && !jsonObj.get("resizePolicy").isJsonNull()) { + JsonArray jsonArrayresizePolicy = jsonObj.getAsJsonArray("resizePolicy"); + if (jsonArrayresizePolicy != null) { + // ensure the json data is an array + if (!jsonObj.get("resizePolicy").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resizePolicy` to be an array in the JSON string but got `%s`", jsonObj.get("resizePolicy").toString())); + } + + // validate the optional field `resizePolicy` (array) + for (int i = 0; i < jsonArrayresizePolicy.size(); i++) { + V1ContainerResizePolicy.validateJsonObject(jsonArrayresizePolicy.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `resources` + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { + V1ResourceRequirements.validateJsonObject(jsonObj.getAsJsonObject("resources")); + } + if ((jsonObj.get("restartPolicy") != null && !jsonObj.get("restartPolicy").isJsonNull()) && !jsonObj.get("restartPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); + } + // validate the optional field `securityContext` + if (jsonObj.get("securityContext") != null && !jsonObj.get("securityContext").isJsonNull()) { + V1SecurityContext.validateJsonObject(jsonObj.getAsJsonObject("securityContext")); + } + // validate the optional field `startupProbe` + if (jsonObj.get("startupProbe") != null && !jsonObj.get("startupProbe").isJsonNull()) { + V1Probe.validateJsonObject(jsonObj.getAsJsonObject("startupProbe")); + } + if ((jsonObj.get("terminationMessagePath") != null && !jsonObj.get("terminationMessagePath").isJsonNull()) && !jsonObj.get("terminationMessagePath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `terminationMessagePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("terminationMessagePath").toString())); + } + if ((jsonObj.get("terminationMessagePolicy") != null && !jsonObj.get("terminationMessagePolicy").isJsonNull()) && !jsonObj.get("terminationMessagePolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `terminationMessagePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("terminationMessagePolicy").toString())); + } + if (jsonObj.get("volumeDevices") != null && !jsonObj.get("volumeDevices").isJsonNull()) { + JsonArray jsonArrayvolumeDevices = jsonObj.getAsJsonArray("volumeDevices"); + if (jsonArrayvolumeDevices != null) { + // ensure the json data is an array + if (!jsonObj.get("volumeDevices").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeDevices` to be an array in the JSON string but got `%s`", jsonObj.get("volumeDevices").toString())); + } + + // validate the optional field `volumeDevices` (array) + for (int i = 0; i < jsonArrayvolumeDevices.size(); i++) { + V1VolumeDevice.validateJsonObject(jsonArrayvolumeDevices.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("volumeMounts") != null && !jsonObj.get("volumeMounts").isJsonNull()) { + JsonArray jsonArrayvolumeMounts = jsonObj.getAsJsonArray("volumeMounts"); + if (jsonArrayvolumeMounts != null) { + // ensure the json data is an array + if (!jsonObj.get("volumeMounts").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeMounts` to be an array in the JSON string but got `%s`", jsonObj.get("volumeMounts").toString())); + } + + // validate the optional field `volumeMounts` (array) + for (int i = 0; i < jsonArrayvolumeMounts.size(); i++) { + V1VolumeMount.validateJsonObject(jsonArrayvolumeMounts.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("workingDir") != null && !jsonObj.get("workingDir").isJsonNull()) && !jsonObj.get("workingDir").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `workingDir` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workingDir").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Container.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Container' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Container.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Container value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Container read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Container given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Container + * @throws IOException if the JSON string is invalid with respect to V1Container + */ + public static V1Container fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Container.class); + } + + /** + * Convert an instance of V1Container to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java index feebac88f3..bede5565fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Describe a container image */ @@ -33,12 +56,14 @@ public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) - private List names = null; + private List names; public static final String SERIALIZED_NAME_SIZE_BYTES = "sizeBytes"; @SerializedName(SERIALIZED_NAME_SIZE_BYTES) private Long sizeBytes; + public V1ContainerImage() { + } public V1ContainerImage names(List names) { @@ -58,9 +83,7 @@ public V1ContainerImage addNamesItem(String namesItem) { * 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\"] * @return names **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"]") - + @jakarta.annotation.Nullable public List getNames() { return names; } @@ -81,9 +104,7 @@ public V1ContainerImage sizeBytes(Long sizeBytes) { * The size of the image in bytes. * @return sizeBytes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The size of the image in bytes.") - + @jakarta.annotation.Nullable public Long getSizeBytes() { return sizeBytes; } @@ -94,8 +115,9 @@ public void setSizeBytes(Long sizeBytes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -112,7 +134,6 @@ public int hashCode() { return Objects.hash(names, sizeBytes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,11 +148,99 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("names"); + openapiFields.add("sizeBytes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ContainerImage + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ContainerImage.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerImage is not found in the empty JSON string", V1ContainerImage.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ContainerImage.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerImage` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("names") != null && !jsonObj.get("names").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `names` to be an array in the JSON string but got `%s`", jsonObj.get("names").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerImage.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerImage' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerImage.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerImage value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerImage read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerImage given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerImage + * @throws IOException if the JSON string is invalid with respect to V1ContainerImage + */ + public static V1ContainerImage fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerImage.class); + } + + /** + * Convert an instance of V1ContainerImage to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java index d93bdd31d3..50a11d3350 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ContainerPort represents a network port in a single container. */ @@ -49,6 +72,8 @@ public class V1ContainerPort { @SerializedName(SERIALIZED_NAME_PROTOCOL) private String protocol; + public V1ContainerPort() { + } public V1ContainerPort containerPort(Integer containerPort) { @@ -60,8 +85,7 @@ public V1ContainerPort containerPort(Integer containerPort) { * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. * @return containerPort **/ - @ApiModelProperty(required = true, value = "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.") - + @jakarta.annotation.Nonnull public Integer getContainerPort() { return containerPort; } @@ -82,9 +106,7 @@ public V1ContainerPort hostIP(String hostIP) { * What host IP to bind the external port to. * @return hostIP **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "What host IP to bind the external port to.") - + @jakarta.annotation.Nullable public String getHostIP() { return hostIP; } @@ -105,9 +127,7 @@ public V1ContainerPort hostPort(Integer hostPort) { * 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. * @return hostPort **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getHostPort() { return hostPort; } @@ -128,9 +148,7 @@ public V1ContainerPort name(String name) { * 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. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -151,9 +169,7 @@ public V1ContainerPort protocol(String protocol) { * Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". * @return protocol **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".") - + @jakarta.annotation.Nullable public String getProtocol() { return protocol; } @@ -164,8 +180,9 @@ public void setProtocol(String protocol) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +202,6 @@ public int hashCode() { return Objects.hash(containerPort, hostIP, hostPort, name, protocol); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +219,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("containerPort"); + openapiFields.add("hostIP"); + openapiFields.add("hostPort"); + openapiFields.add("name"); + openapiFields.add("protocol"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("containerPort"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ContainerPort + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ContainerPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerPort is not found in the empty JSON string", V1ContainerPort.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ContainerPort.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerPort` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ContainerPort.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("hostIP") != null && !jsonObj.get("hostIP").isJsonNull()) && !jsonObj.get("hostIP").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `hostIP` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostIP").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("protocol") != null && !jsonObj.get("protocol").isJsonNull()) && !jsonObj.get("protocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerPort.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerPort' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerPort.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerPort value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerPort read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerPort + * @throws IOException if the JSON string is invalid with respect to V1ContainerPort + */ + public static V1ContainerPort fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerPort.class); + } + + /** + * Convert an instance of V1ContainerPort to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java index 3ddffa6695..dd77ad55d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ContainerResizePolicy represents resource resize policy for the container. */ @@ -37,6 +60,8 @@ public class V1ContainerResizePolicy { @SerializedName(SERIALIZED_NAME_RESTART_POLICY) private String restartPolicy; + public V1ContainerResizePolicy() { + } public V1ContainerResizePolicy resourceName(String resourceName) { @@ -48,8 +73,7 @@ public V1ContainerResizePolicy resourceName(String resourceName) { * Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. * @return resourceName **/ - @ApiModelProperty(required = true, value = "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.") - + @jakarta.annotation.Nonnull public String getResourceName() { return resourceName; } @@ -70,8 +94,7 @@ public V1ContainerResizePolicy restartPolicy(String restartPolicy) { * Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. * @return restartPolicy **/ - @ApiModelProperty(required = true, value = "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.") - + @jakarta.annotation.Nonnull public String getRestartPolicy() { return restartPolicy; } @@ -82,8 +105,9 @@ public void setRestartPolicy(String restartPolicy) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(resourceName, restartPolicy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("resourceName"); + openapiFields.add("restartPolicy"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("resourceName"); + openapiRequiredFields.add("restartPolicy"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ContainerResizePolicy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ContainerResizePolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerResizePolicy is not found in the empty JSON string", V1ContainerResizePolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ContainerResizePolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerResizePolicy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ContainerResizePolicy.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("resourceName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceName").toString())); + } + if (!jsonObj.get("restartPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerResizePolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerResizePolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerResizePolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerResizePolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerResizePolicy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerResizePolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerResizePolicy + * @throws IOException if the JSON string is invalid with respect to V1ContainerResizePolicy + */ + public static V1ContainerResizePolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerResizePolicy.class); + } + + /** + * Convert an instance of V1ContainerResizePolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java index fce803ffb8..d951b9f920 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ContainerStateRunning; import io.kubernetes.client.openapi.models.V1ContainerStateTerminated; import io.kubernetes.client.openapi.models.V1ContainerStateWaiting; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -44,6 +67,8 @@ public class V1ContainerState { @SerializedName(SERIALIZED_NAME_WAITING) private V1ContainerStateWaiting waiting; + public V1ContainerState() { + } public V1ContainerState running(V1ContainerStateRunning running) { @@ -55,9 +80,7 @@ public V1ContainerState running(V1ContainerStateRunning running) { * Get running * @return running **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ContainerStateRunning getRunning() { return running; } @@ -78,9 +101,7 @@ public V1ContainerState terminated(V1ContainerStateTerminated terminated) { * Get terminated * @return terminated **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ContainerStateTerminated getTerminated() { return terminated; } @@ -101,9 +122,7 @@ public V1ContainerState waiting(V1ContainerStateWaiting waiting) { * Get waiting * @return waiting **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ContainerStateWaiting getWaiting() { return waiting; } @@ -114,8 +133,9 @@ public void setWaiting(V1ContainerStateWaiting waiting) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -133,7 +153,6 @@ public int hashCode() { return Objects.hash(running, terminated, waiting); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -149,11 +168,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("running"); + openapiFields.add("terminated"); + openapiFields.add("waiting"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ContainerState + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ContainerState.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerState is not found in the empty JSON string", V1ContainerState.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ContainerState.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerState` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `running` + if (jsonObj.get("running") != null && !jsonObj.get("running").isJsonNull()) { + V1ContainerStateRunning.validateJsonObject(jsonObj.getAsJsonObject("running")); + } + // validate the optional field `terminated` + if (jsonObj.get("terminated") != null && !jsonObj.get("terminated").isJsonNull()) { + V1ContainerStateTerminated.validateJsonObject(jsonObj.getAsJsonObject("terminated")); + } + // validate the optional field `waiting` + if (jsonObj.get("waiting") != null && !jsonObj.get("waiting").isJsonNull()) { + V1ContainerStateWaiting.validateJsonObject(jsonObj.getAsJsonObject("waiting")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerState.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerState' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerState.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerState value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerState read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerState given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerState + * @throws IOException if the JSON string is invalid with respect to V1ContainerState + */ + public static V1ContainerState fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerState.class); + } + + /** + * Convert an instance of V1ContainerState to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java index b8d847dc97..1aeef71069 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ContainerStateRunning is a running state of a container. */ @@ -34,6 +57,8 @@ public class V1ContainerStateRunning { @SerializedName(SERIALIZED_NAME_STARTED_AT) private OffsetDateTime startedAt; + public V1ContainerStateRunning() { + } public V1ContainerStateRunning startedAt(OffsetDateTime startedAt) { @@ -45,9 +70,7 @@ public V1ContainerStateRunning startedAt(OffsetDateTime startedAt) { * Time at which the container was last (re-)started * @return startedAt **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Time at which the container was last (re-)started") - + @jakarta.annotation.Nullable public OffsetDateTime getStartedAt() { return startedAt; } @@ -58,8 +81,9 @@ public void setStartedAt(OffsetDateTime startedAt) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(startedAt); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,94 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("startedAt"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ContainerStateRunning + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ContainerStateRunning.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerStateRunning is not found in the empty JSON string", V1ContainerStateRunning.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ContainerStateRunning.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerStateRunning` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerStateRunning.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerStateRunning' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerStateRunning.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerStateRunning value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerStateRunning read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerStateRunning given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerStateRunning + * @throws IOException if the JSON string is invalid with respect to V1ContainerStateRunning + */ + public static V1ContainerStateRunning fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerStateRunning.class); + } + + /** + * Convert an instance of V1ContainerStateRunning to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java index 4f09d47fb1..01b9503b30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ContainerStateTerminated is a terminated state of a container. */ @@ -58,6 +81,8 @@ public class V1ContainerStateTerminated { @SerializedName(SERIALIZED_NAME_STARTED_AT) private OffsetDateTime startedAt; + public V1ContainerStateTerminated() { + } public V1ContainerStateTerminated containerID(String containerID) { @@ -69,9 +94,7 @@ public V1ContainerStateTerminated containerID(String containerID) { * Container's ID in the format '<type>://<container_id>' * @return containerID **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Container's ID in the format '://'") - + @jakarta.annotation.Nullable public String getContainerID() { return containerID; } @@ -92,8 +115,7 @@ public V1ContainerStateTerminated exitCode(Integer exitCode) { * Exit status from the last termination of the container * @return exitCode **/ - @ApiModelProperty(required = true, value = "Exit status from the last termination of the container") - + @jakarta.annotation.Nonnull public Integer getExitCode() { return exitCode; } @@ -114,9 +136,7 @@ public V1ContainerStateTerminated finishedAt(OffsetDateTime finishedAt) { * Time at which the container last terminated * @return finishedAt **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Time at which the container last terminated") - + @jakarta.annotation.Nullable public OffsetDateTime getFinishedAt() { return finishedAt; } @@ -137,9 +157,7 @@ public V1ContainerStateTerminated message(String message) { * Message regarding the last termination of the container * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Message regarding the last termination of the container") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -160,9 +178,7 @@ public V1ContainerStateTerminated reason(String reason) { * (brief) reason from the last termination of the container * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "(brief) reason from the last termination of the container") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -183,9 +199,7 @@ public V1ContainerStateTerminated signal(Integer signal) { * Signal from the last termination of the container * @return signal **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Signal from the last termination of the container") - + @jakarta.annotation.Nullable public Integer getSignal() { return signal; } @@ -206,9 +220,7 @@ public V1ContainerStateTerminated startedAt(OffsetDateTime startedAt) { * Time at which previous execution of the container started * @return startedAt **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Time at which previous execution of the container started") - + @jakarta.annotation.Nullable public OffsetDateTime getStartedAt() { return startedAt; } @@ -219,8 +231,9 @@ public void setStartedAt(OffsetDateTime startedAt) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -242,7 +255,6 @@ public int hashCode() { return Objects.hash(containerID, exitCode, finishedAt, message, reason, signal, startedAt); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -262,11 +274,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("containerID"); + openapiFields.add("exitCode"); + openapiFields.add("finishedAt"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("signal"); + openapiFields.add("startedAt"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("exitCode"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ContainerStateTerminated + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ContainerStateTerminated.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerStateTerminated is not found in the empty JSON string", V1ContainerStateTerminated.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ContainerStateTerminated.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerStateTerminated` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ContainerStateTerminated.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("containerID") != null && !jsonObj.get("containerID").isJsonNull()) && !jsonObj.get("containerID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `containerID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerID").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerStateTerminated.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerStateTerminated' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerStateTerminated.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerStateTerminated value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerStateTerminated read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerStateTerminated given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerStateTerminated + * @throws IOException if the JSON string is invalid with respect to V1ContainerStateTerminated + */ + public static V1ContainerStateTerminated fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerStateTerminated.class); + } + + /** + * Convert an instance of V1ContainerStateTerminated to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java index 1737589cc2..1200f04062 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ContainerStateWaiting is a waiting state of a container. */ @@ -37,6 +60,8 @@ public class V1ContainerStateWaiting { @SerializedName(SERIALIZED_NAME_REASON) private String reason; + public V1ContainerStateWaiting() { + } public V1ContainerStateWaiting message(String message) { @@ -48,9 +73,7 @@ public V1ContainerStateWaiting message(String message) { * Message regarding why the container is not yet running. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Message regarding why the container is not yet running.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -71,9 +94,7 @@ public V1ContainerStateWaiting reason(String reason) { * (brief) reason the container is not yet running. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "(brief) reason the container is not yet running.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -84,8 +105,9 @@ public void setReason(String reason) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(message, reason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("message"); + openapiFields.add("reason"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ContainerStateWaiting + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ContainerStateWaiting.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerStateWaiting is not found in the empty JSON string", V1ContainerStateWaiting.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ContainerStateWaiting.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerStateWaiting` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerStateWaiting.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerStateWaiting' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerStateWaiting.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerStateWaiting value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerStateWaiting read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerStateWaiting given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerStateWaiting + * @throws IOException if the JSON string is invalid with respect to V1ContainerStateWaiting + */ + public static V1ContainerStateWaiting fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerStateWaiting.class); + } + + /** + * Convert an instance of V1ContainerStateWaiting to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java index 6e7ee95d81..7771747cd6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java @@ -22,12 +22,34 @@ import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ContainerState; import io.kubernetes.client.openapi.models.V1ResourceRequirements; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * ContainerStatus contains details for the current status of this container. @@ -37,7 +59,7 @@ public class V1ContainerStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) - private Map allocatedResources = null; + private Map allocatedResources = new HashMap<>(); public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) @@ -79,6 +101,8 @@ public class V1ContainerStatus { @SerializedName(SERIALIZED_NAME_STATE) private V1ContainerState state; + public V1ContainerStatus() { + } public V1ContainerStatus allocatedResources(Map allocatedResources) { @@ -98,9 +122,7 @@ public V1ContainerStatus putAllocatedResourcesItem(String key, Quantity allocate * 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. * @return allocatedResources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getAllocatedResources() { return allocatedResources; } @@ -121,9 +143,7 @@ public V1ContainerStatus containerID(String containerID) { * ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). * @return containerID **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\").") - + @jakarta.annotation.Nullable public String getContainerID() { return containerID; } @@ -144,8 +164,7 @@ public V1ContainerStatus image(String image) { * 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. * @return image **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getImage() { return image; } @@ -166,8 +185,7 @@ public V1ContainerStatus imageID(String imageID) { * 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. * @return imageID **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getImageID() { return imageID; } @@ -188,9 +206,7 @@ public V1ContainerStatus lastState(V1ContainerState lastState) { * Get lastState * @return lastState **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ContainerState getLastState() { return lastState; } @@ -211,8 +227,7 @@ public V1ContainerStatus name(String name) { * 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. * @return name **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -233,8 +248,7 @@ public V1ContainerStatus ready(Boolean ready) { * 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. * @return ready **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public Boolean getReady() { return ready; } @@ -255,9 +269,7 @@ public V1ContainerStatus resources(V1ResourceRequirements resources) { * Get resources * @return resources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceRequirements getResources() { return resources; } @@ -278,8 +290,7 @@ public V1ContainerStatus restartCount(Integer restartCount) { * 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. * @return restartCount **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public Integer getRestartCount() { return restartCount; } @@ -300,9 +311,7 @@ public V1ContainerStatus started(Boolean started) { * 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. * @return started **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getStarted() { return started; } @@ -323,9 +332,7 @@ public V1ContainerStatus state(V1ContainerState state) { * Get state * @return state **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ContainerState getState() { return state; } @@ -336,8 +343,9 @@ public void setState(V1ContainerState state) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -363,7 +371,6 @@ public int hashCode() { return Objects.hash(allocatedResources, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -387,11 +394,140 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allocatedResources"); + openapiFields.add("containerID"); + openapiFields.add("image"); + openapiFields.add("imageID"); + openapiFields.add("lastState"); + openapiFields.add("name"); + openapiFields.add("ready"); + openapiFields.add("resources"); + openapiFields.add("restartCount"); + openapiFields.add("started"); + openapiFields.add("state"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("image"); + openapiRequiredFields.add("imageID"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("ready"); + openapiRequiredFields.add("restartCount"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ContainerStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ContainerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerStatus is not found in the empty JSON string", V1ContainerStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ContainerStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ContainerStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("containerID") != null && !jsonObj.get("containerID").isJsonNull()) && !jsonObj.get("containerID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `containerID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerID").toString())); + } + if (!jsonObj.get("image").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image").toString())); + } + if (!jsonObj.get("imageID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `imageID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("imageID").toString())); + } + // validate the optional field `lastState` + if (jsonObj.get("lastState") != null && !jsonObj.get("lastState").isJsonNull()) { + V1ContainerState.validateJsonObject(jsonObj.getAsJsonObject("lastState")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `resources` + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { + V1ResourceRequirements.validateJsonObject(jsonObj.getAsJsonObject("resources")); + } + // validate the optional field `state` + if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { + V1ContainerState.validateJsonObject(jsonObj.getAsJsonObject("state")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerStatus + * @throws IOException if the JSON string is invalid with respect to V1ContainerStatus + */ + public static V1ContainerStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerStatus.class); + } + + /** + * Convert an instance of V1ContainerStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java index 809e13d138..0f9746ec1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -50,6 +73,8 @@ public class V1ControllerRevision implements io.kubernetes.client.common.Kuberne @SerializedName(SERIALIZED_NAME_REVISION) private Long revision; + public V1ControllerRevision() { + } public V1ControllerRevision apiVersion(String apiVersion) { @@ -61,9 +86,7 @@ public V1ControllerRevision apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -84,9 +107,7 @@ public V1ControllerRevision data(Object data) { * Data is the serialized representation of the state. * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Data is the serialized representation of the state.") - + @jakarta.annotation.Nullable public Object getData() { return data; } @@ -107,9 +128,7 @@ public V1ControllerRevision kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -130,9 +149,7 @@ public V1ControllerRevision metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -153,8 +170,7 @@ public V1ControllerRevision revision(Long revision) { * Revision indicates the revision of the state represented by Data. * @return revision **/ - @ApiModelProperty(required = true, value = "Revision indicates the revision of the state represented by Data.") - + @jakarta.annotation.Nonnull public Long getRevision() { return revision; } @@ -165,8 +181,9 @@ public void setRevision(Long revision) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -186,7 +203,6 @@ public int hashCode() { return Objects.hash(apiVersion, data, kind, metadata, revision); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -204,11 +220,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("data"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("revision"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("revision"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ControllerRevision + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ControllerRevision.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ControllerRevision is not found in the empty JSON string", V1ControllerRevision.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ControllerRevision.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ControllerRevision` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ControllerRevision.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ControllerRevision.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ControllerRevision' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ControllerRevision.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ControllerRevision value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ControllerRevision read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ControllerRevision given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ControllerRevision + * @throws IOException if the JSON string is invalid with respect to V1ControllerRevision + */ + public static V1ControllerRevision fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ControllerRevision.class); + } + + /** + * Convert an instance of V1ControllerRevision to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java index d5cf5d9820..7593acab81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ControllerRevision; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @@ -49,6 +72,8 @@ public class V1ControllerRevisionList implements io.kubernetes.client.common.Kub @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ControllerRevisionList() { + } public V1ControllerRevisionList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ControllerRevisionList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ControllerRevisionList items(List items) { } public V1ControllerRevisionList addItemsItem(V1ControllerRevision itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ControllerRevisionList addItemsItem(V1ControllerRevision itemsItem) { * Items is the list of ControllerRevisions * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of ControllerRevisions") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ControllerRevisionList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ControllerRevisionList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ControllerRevisionList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ControllerRevisionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ControllerRevisionList is not found in the empty JSON string", V1ControllerRevisionList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ControllerRevisionList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ControllerRevisionList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ControllerRevisionList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ControllerRevision.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ControllerRevisionList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ControllerRevisionList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ControllerRevisionList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ControllerRevisionList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ControllerRevisionList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ControllerRevisionList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ControllerRevisionList + * @throws IOException if the JSON string is invalid with respect to V1ControllerRevisionList + */ + public static V1ControllerRevisionList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ControllerRevisionList.class); + } + + /** + * Convert an instance of V1ControllerRevisionList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java index 2d34dce261..c3444b69ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1CronJobSpec; import io.kubernetes.client.openapi.models.V1CronJobStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CronJob represents the configuration of a single cron job. */ @@ -52,6 +75,8 @@ public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_STATUS) private V1CronJobStatus status; + public V1CronJob() { + } public V1CronJob apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1CronJob apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1CronJob kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1CronJob metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1CronJob spec(V1CronJobSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CronJobSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1CronJob status(V1CronJobStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CronJobStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1CronJobStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CronJob + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CronJob.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CronJob is not found in the empty JSON string", V1CronJob.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CronJob.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CronJob` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1CronJobSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1CronJobStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CronJob.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CronJob' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CronJob.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CronJob value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CronJob read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CronJob given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CronJob + * @throws IOException if the JSON string is invalid with respect to V1CronJob + */ + public static V1CronJob fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CronJob.class); + } + + /** + * Convert an instance of V1CronJob to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java index aeae7358bc..d6a9115d65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CronJob; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CronJobList is a collection of cron jobs. */ @@ -49,6 +72,8 @@ public class V1CronJobList implements io.kubernetes.client.common.KubernetesList @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1CronJobList() { + } public V1CronJobList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1CronJobList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1CronJobList items(List items) { } public V1CronJobList addItemsItem(V1CronJob itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1CronJobList addItemsItem(V1CronJob itemsItem) { * items is the list of CronJobs. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of CronJobs.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1CronJobList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1CronJobList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CronJobList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CronJobList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CronJobList is not found in the empty JSON string", V1CronJobList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CronJobList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CronJobList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CronJobList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1CronJob.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CronJobList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CronJobList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CronJobList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CronJobList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CronJobList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CronJobList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CronJobList + * @throws IOException if the JSON string is invalid with respect to V1CronJobList + */ + public static V1CronJobList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CronJobList.class); + } + + /** + * Convert an instance of V1CronJobList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java index e05eac9b0e..bcdc7dfacb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1JobTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CronJobSpec describes how the job execution will look like and when it will actually run. */ @@ -62,6 +85,8 @@ public class V1CronJobSpec { @SerializedName(SERIALIZED_NAME_TIME_ZONE) private String timeZone; + public V1CronJobSpec() { + } public V1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { @@ -73,9 +98,7 @@ public V1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { * 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 * @return concurrencyPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getConcurrencyPolicy() { return concurrencyPolicy; } @@ -96,9 +119,7 @@ public V1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit) { * The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. * @return failedJobsHistoryLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.") - + @jakarta.annotation.Nullable public Integer getFailedJobsHistoryLimit() { return failedJobsHistoryLimit; } @@ -119,8 +140,7 @@ public V1CronJobSpec jobTemplate(V1JobTemplateSpec jobTemplate) { * Get jobTemplate * @return jobTemplate **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1JobTemplateSpec getJobTemplate() { return jobTemplate; } @@ -141,8 +161,7 @@ public V1CronJobSpec schedule(String schedule) { * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. * @return schedule **/ - @ApiModelProperty(required = true, value = "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.") - + @jakarta.annotation.Nonnull public String getSchedule() { return schedule; } @@ -163,9 +182,7 @@ public V1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds) { * 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. * @return startingDeadlineSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getStartingDeadlineSeconds() { return startingDeadlineSeconds; } @@ -186,9 +203,7 @@ public V1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHistoryLim * The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. * @return successfulJobsHistoryLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.") - + @jakarta.annotation.Nullable public Integer getSuccessfulJobsHistoryLimit() { return successfulJobsHistoryLimit; } @@ -209,9 +224,7 @@ public V1CronJobSpec suspend(Boolean suspend) { * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. * @return suspend **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.") - + @jakarta.annotation.Nullable public Boolean getSuspend() { return suspend; } @@ -232,9 +245,7 @@ public V1CronJobSpec timeZone(String timeZone) { * 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 * @return timeZone **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getTimeZone() { return timeZone; } @@ -245,8 +256,9 @@ public void setTimeZone(String timeZone) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -269,7 +281,6 @@ public int hashCode() { return Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend, timeZone); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -290,11 +301,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("concurrencyPolicy"); + openapiFields.add("failedJobsHistoryLimit"); + openapiFields.add("jobTemplate"); + openapiFields.add("schedule"); + openapiFields.add("startingDeadlineSeconds"); + openapiFields.add("successfulJobsHistoryLimit"); + openapiFields.add("suspend"); + openapiFields.add("timeZone"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("jobTemplate"); + openapiRequiredFields.add("schedule"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CronJobSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CronJobSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CronJobSpec is not found in the empty JSON string", V1CronJobSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CronJobSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CronJobSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CronJobSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("concurrencyPolicy") != null && !jsonObj.get("concurrencyPolicy").isJsonNull()) && !jsonObj.get("concurrencyPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `concurrencyPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("concurrencyPolicy").toString())); + } + // validate the required field `jobTemplate` + V1JobTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("jobTemplate")); + if (!jsonObj.get("schedule").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `schedule` to be a primitive type in the JSON string but got `%s`", jsonObj.get("schedule").toString())); + } + if ((jsonObj.get("timeZone") != null && !jsonObj.get("timeZone").isJsonNull()) && !jsonObj.get("timeZone").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `timeZone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeZone").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CronJobSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CronJobSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CronJobSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CronJobSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CronJobSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CronJobSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CronJobSpec + * @throws IOException if the JSON string is invalid with respect to V1CronJobSpec + */ + public static V1CronJobSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CronJobSpec.class); + } + + /** + * Convert an instance of V1CronJobSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java index faa0af805a..fce983c3bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java @@ -20,13 +20,36 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CronJobStatus represents the current state of a cron job. */ @@ -35,7 +58,7 @@ public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) - private List active = null; + private List active; public static final String SERIALIZED_NAME_LAST_SCHEDULE_TIME = "lastScheduleTime"; @SerializedName(SERIALIZED_NAME_LAST_SCHEDULE_TIME) @@ -45,6 +68,8 @@ public class V1CronJobStatus { @SerializedName(SERIALIZED_NAME_LAST_SUCCESSFUL_TIME) private OffsetDateTime lastSuccessfulTime; + public V1CronJobStatus() { + } public V1CronJobStatus active(List active) { @@ -64,9 +89,7 @@ public V1CronJobStatus addActiveItem(V1ObjectReference activeItem) { * A list of pointers to currently running jobs. * @return active **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A list of pointers to currently running jobs.") - + @jakarta.annotation.Nullable public List getActive() { return active; } @@ -87,9 +110,7 @@ public V1CronJobStatus lastScheduleTime(OffsetDateTime lastScheduleTime) { * Information when was the last time the job was successfully scheduled. * @return lastScheduleTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Information when was the last time the job was successfully scheduled.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastScheduleTime() { return lastScheduleTime; } @@ -110,9 +131,7 @@ public V1CronJobStatus lastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { * Information when was the last time the job successfully completed. * @return lastSuccessfulTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Information when was the last time the job successfully completed.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastSuccessfulTime() { return lastSuccessfulTime; } @@ -123,8 +142,9 @@ public void setLastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -142,7 +162,6 @@ public int hashCode() { return Objects.hash(active, lastScheduleTime, lastSuccessfulTime); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -158,11 +177,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("active"); + openapiFields.add("lastScheduleTime"); + openapiFields.add("lastSuccessfulTime"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CronJobStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CronJobStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CronJobStatus is not found in the empty JSON string", V1CronJobStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CronJobStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CronJobStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("active") != null && !jsonObj.get("active").isJsonNull()) { + JsonArray jsonArrayactive = jsonObj.getAsJsonArray("active"); + if (jsonArrayactive != null) { + // ensure the json data is an array + if (!jsonObj.get("active").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `active` to be an array in the JSON string but got `%s`", jsonObj.get("active").toString())); + } + + // validate the optional field `active` (array) + for (int i = 0; i < jsonArrayactive.size(); i++) { + V1ObjectReference.validateJsonObject(jsonArrayactive.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CronJobStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CronJobStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CronJobStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CronJobStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CronJobStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CronJobStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CronJobStatus + * @throws IOException if the JSON string is invalid with respect to V1CronJobStatus + */ + public static V1CronJobStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CronJobStatus.class); + } + + /** + * Convert an instance of V1CronJobStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java index f7fe39556b..35f6981d4e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @@ -41,6 +64,8 @@ public class V1CrossVersionObjectReference { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1CrossVersionObjectReference() { + } public V1CrossVersionObjectReference apiVersion(String apiVersion) { @@ -52,9 +77,7 @@ public V1CrossVersionObjectReference apiVersion(String apiVersion) { * apiVersion is the API version of the referent * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "apiVersion is the API version of the referent") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -75,8 +98,7 @@ public V1CrossVersionObjectReference kind(String kind) { * kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind **/ - @ApiModelProperty(required = true, value = "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -97,8 +119,7 @@ public V1CrossVersionObjectReference name(String name) { * name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -109,8 +130,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CrossVersionObjectReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CrossVersionObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CrossVersionObjectReference is not found in the empty JSON string", V1CrossVersionObjectReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CrossVersionObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CrossVersionObjectReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CrossVersionObjectReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CrossVersionObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CrossVersionObjectReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CrossVersionObjectReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CrossVersionObjectReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CrossVersionObjectReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CrossVersionObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CrossVersionObjectReference + * @throws IOException if the JSON string is invalid with respect to V1CrossVersionObjectReference + */ + public static V1CrossVersionObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CrossVersionObjectReference.class); + } + + /** + * Convert an instance of V1CrossVersionObjectReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java index 6f41f1d593..a624e1d17b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceColumnDefinition specifies a column for server side printing. */ @@ -53,6 +76,8 @@ public class V1CustomResourceColumnDefinition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1CustomResourceColumnDefinition() { + } public V1CustomResourceColumnDefinition description(String description) { @@ -64,9 +89,7 @@ public V1CustomResourceColumnDefinition description(String description) { * description is a human readable description of this column. * @return description **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "description is a human readable description of this column.") - + @jakarta.annotation.Nullable public String getDescription() { return description; } @@ -87,9 +110,7 @@ public V1CustomResourceColumnDefinition format(String format) { * 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. * @return format **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFormat() { return format; } @@ -110,8 +131,7 @@ public V1CustomResourceColumnDefinition jsonPath(String jsonPath) { * 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. * @return jsonPath **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getJsonPath() { return jsonPath; } @@ -132,8 +152,7 @@ public V1CustomResourceColumnDefinition name(String name) { * name is a human readable name for the column. * @return name **/ - @ApiModelProperty(required = true, value = "name is a human readable name for the column.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -154,9 +173,7 @@ public V1CustomResourceColumnDefinition priority(Integer priority) { * 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. * @return priority **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getPriority() { return priority; } @@ -177,8 +194,7 @@ public V1CustomResourceColumnDefinition type(String type) { * 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. * @return type **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -189,8 +205,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -211,7 +228,6 @@ public int hashCode() { return Objects.hash(description, format, jsonPath, name, priority, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -230,11 +246,124 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("description"); + openapiFields.add("format"); + openapiFields.add("jsonPath"); + openapiFields.add("name"); + openapiFields.add("priority"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("jsonPath"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceColumnDefinition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceColumnDefinition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceColumnDefinition is not found in the empty JSON string", V1CustomResourceColumnDefinition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceColumnDefinition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceColumnDefinition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceColumnDefinition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("format") != null && !jsonObj.get("format").isJsonNull()) && !jsonObj.get("format").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `format` to be a primitive type in the JSON string but got `%s`", jsonObj.get("format").toString())); + } + if (!jsonObj.get("jsonPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `jsonPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("jsonPath").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceColumnDefinition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceColumnDefinition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceColumnDefinition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceColumnDefinition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceColumnDefinition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceColumnDefinition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceColumnDefinition + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceColumnDefinition + */ + public static V1CustomResourceColumnDefinition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceColumnDefinition.class); + } + + /** + * Convert an instance of V1CustomResourceColumnDefinition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java index 616113942b..8fded4de9b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1WebhookConversion; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceConversion describes how to convert different versions of a CR. */ @@ -38,6 +61,8 @@ public class V1CustomResourceConversion { @SerializedName(SERIALIZED_NAME_WEBHOOK) private V1WebhookConversion webhook; + public V1CustomResourceConversion() { + } public V1CustomResourceConversion strategy(String strategy) { @@ -49,8 +74,7 @@ public V1CustomResourceConversion strategy(String strategy) { * 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. * @return strategy **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getStrategy() { return strategy; } @@ -71,9 +95,7 @@ public V1CustomResourceConversion webhook(V1WebhookConversion webhook) { * Get webhook * @return webhook **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1WebhookConversion getWebhook() { return webhook; } @@ -84,8 +106,9 @@ public void setWebhook(V1WebhookConversion webhook) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +125,6 @@ public int hashCode() { return Objects.hash(strategy, webhook); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +139,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("strategy"); + openapiFields.add("webhook"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("strategy"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceConversion + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceConversion.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceConversion is not found in the empty JSON string", V1CustomResourceConversion.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceConversion.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceConversion` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceConversion.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("strategy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `strategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("strategy").toString())); + } + // validate the optional field `webhook` + if (jsonObj.get("webhook") != null && !jsonObj.get("webhook").isJsonNull()) { + V1WebhookConversion.validateJsonObject(jsonObj.getAsJsonObject("webhook")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceConversion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceConversion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceConversion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceConversion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceConversion read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceConversion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceConversion + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceConversion + */ + public static V1CustomResourceConversion fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceConversion.class); + } + + /** + * Convert an instance of V1CustomResourceConversion to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java index 172932d676..7d5359634a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. */ @@ -52,6 +75,8 @@ public class V1CustomResourceDefinition implements io.kubernetes.client.common.K @SerializedName(SERIALIZED_NAME_STATUS) private V1CustomResourceDefinitionStatus status; + public V1CustomResourceDefinition() { + } public V1CustomResourceDefinition apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1CustomResourceDefinition apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1CustomResourceDefinition kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1CustomResourceDefinition metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1CustomResourceDefinition spec(V1CustomResourceDefinitionSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1CustomResourceDefinitionSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1CustomResourceDefinition status(V1CustomResourceDefinitionStatus status * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CustomResourceDefinitionStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1CustomResourceDefinitionStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceDefinition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceDefinition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceDefinition is not found in the empty JSON string", V1CustomResourceDefinition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceDefinition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceDefinition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1CustomResourceDefinitionSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1CustomResourceDefinitionStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceDefinition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceDefinition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceDefinition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceDefinition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceDefinition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceDefinition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinition + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinition + */ + public static V1CustomResourceDefinition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinition.class); + } + + /** + * Convert an instance of V1CustomResourceDefinition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java index 00237e8e1a..da253dbc3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @@ -50,6 +73,8 @@ public class V1CustomResourceDefinitionCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1CustomResourceDefinitionCondition() { + } public V1CustomResourceDefinitionCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1CustomResourceDefinitionCondition lastTransitionTime(OffsetDateTime las * lastTransitionTime last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "lastTransitionTime last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1CustomResourceDefinitionCondition message(String message) { * message is a human-readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "message is a human-readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1CustomResourceDefinitionCondition reason(String reason) { * reason is a unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "reason is a unique, one-word, CamelCase reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,8 +149,7 @@ public V1CustomResourceDefinitionCondition status(String status) { * status is the status of the condition. Can be True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "status is the status of the condition. Can be True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -152,8 +170,7 @@ public V1CustomResourceDefinitionCondition type(String type) { * type is the type of the condition. Types include Established, NamesAccepted and Terminating. * @return type **/ - @ApiModelProperty(required = true, value = "type is the type of the condition. Types include Established, NamesAccepted and Terminating.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -164,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceDefinitionCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceDefinitionCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceDefinitionCondition is not found in the empty JSON string", V1CustomResourceDefinitionCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceDefinitionCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceDefinitionCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceDefinitionCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceDefinitionCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceDefinitionCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceDefinitionCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceDefinitionCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceDefinitionCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionCondition + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionCondition + */ + public static V1CustomResourceDefinitionCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionCondition.class); + } + + /** + * Convert an instance of V1CustomResourceDefinitionCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java index 8b2d3f206e..1f0232b24f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CustomResourceDefinition; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. */ @@ -49,6 +72,8 @@ public class V1CustomResourceDefinitionList implements io.kubernetes.client.comm @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1CustomResourceDefinitionList() { + } public V1CustomResourceDefinitionList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1CustomResourceDefinitionList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1CustomResourceDefinitionList items(List ite } public V1CustomResourceDefinitionList addItemsItem(V1CustomResourceDefinition itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1CustomResourceDefinitionList addItemsItem(V1CustomResourceDefinition it * items list individual CustomResourceDefinition objects * @return items **/ - @ApiModelProperty(required = true, value = "items list individual CustomResourceDefinition objects") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1CustomResourceDefinitionList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1CustomResourceDefinitionList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceDefinitionList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceDefinitionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceDefinitionList is not found in the empty JSON string", V1CustomResourceDefinitionList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceDefinitionList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceDefinitionList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1CustomResourceDefinition.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceDefinitionList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceDefinitionList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceDefinitionList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceDefinitionList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceDefinitionList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceDefinitionList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionList + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionList + */ + public static V1CustomResourceDefinitionList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionList.class); + } + + /** + * Convert an instance of V1CustomResourceDefinitionList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java index 1cdb683897..e69d0fc6d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition */ @@ -33,7 +56,7 @@ public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) - private List categories = null; + private List categories; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -49,12 +72,14 @@ public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_SHORT_NAMES = "shortNames"; @SerializedName(SERIALIZED_NAME_SHORT_NAMES) - private List shortNames = null; + private List shortNames; public static final String SERIALIZED_NAME_SINGULAR = "singular"; @SerializedName(SERIALIZED_NAME_SINGULAR) private String singular; + public V1CustomResourceDefinitionNames() { + } public V1CustomResourceDefinitionNames categories(List categories) { @@ -74,9 +99,7 @@ public V1CustomResourceDefinitionNames addCategoriesItem(String categoriesItem) * 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`. * @return categories **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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`.") - + @jakarta.annotation.Nullable public List getCategories() { return categories; } @@ -97,8 +120,7 @@ public V1CustomResourceDefinitionNames kind(String kind) { * 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. * @return kind **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -119,9 +141,7 @@ public V1CustomResourceDefinitionNames listKind(String listKind) { * listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\". * @return listKind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".") - + @jakarta.annotation.Nullable public String getListKind() { return listKind; } @@ -142,8 +162,7 @@ public V1CustomResourceDefinitionNames plural(String plural) { * plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase. * @return plural **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getPlural() { return plural; } @@ -172,9 +191,7 @@ public V1CustomResourceDefinitionNames addShortNamesItem(String shortNamesItem) * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase. * @return shortNames **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getShortNames() { return shortNames; } @@ -195,9 +212,7 @@ public V1CustomResourceDefinitionNames singular(String singular) { * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. * @return singular **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.") - + @jakarta.annotation.Nullable public String getSingular() { return singular; } @@ -208,8 +223,9 @@ public void setSingular(String singular) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -230,7 +246,6 @@ public int hashCode() { return Objects.hash(categories, kind, listKind, plural, shortNames, singular); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -249,11 +264,128 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("categories"); + openapiFields.add("kind"); + openapiFields.add("listKind"); + openapiFields.add("plural"); + openapiFields.add("shortNames"); + openapiFields.add("singular"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("plural"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceDefinitionNames + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceDefinitionNames.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceDefinitionNames is not found in the empty JSON string", V1CustomResourceDefinitionNames.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceDefinitionNames.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionNames` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceDefinitionNames.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("categories") != null && !jsonObj.get("categories").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `categories` to be an array in the JSON string but got `%s`", jsonObj.get("categories").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if ((jsonObj.get("listKind") != null && !jsonObj.get("listKind").isJsonNull()) && !jsonObj.get("listKind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `listKind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("listKind").toString())); + } + if (!jsonObj.get("plural").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `plural` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plural").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("shortNames") != null && !jsonObj.get("shortNames").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `shortNames` to be an array in the JSON string but got `%s`", jsonObj.get("shortNames").toString())); + } + if ((jsonObj.get("singular") != null && !jsonObj.get("singular").isJsonNull()) && !jsonObj.get("singular").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `singular` to be a primitive type in the JSON string but got `%s`", jsonObj.get("singular").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceDefinitionNames.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceDefinitionNames' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceDefinitionNames.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceDefinitionNames value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceDefinitionNames read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceDefinitionNames given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionNames + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionNames + */ + public static V1CustomResourceDefinitionNames fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionNames.class); + } + + /** + * Convert an instance of V1CustomResourceDefinitionNames to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java index 77a5576dc8..71d416d062 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1CustomResourceConversion; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceDefinitionSpec describes how a user wants their resource to appear */ @@ -58,6 +81,8 @@ public class V1CustomResourceDefinitionSpec { @SerializedName(SERIALIZED_NAME_VERSIONS) private List versions = new ArrayList<>(); + public V1CustomResourceDefinitionSpec() { + } public V1CustomResourceDefinitionSpec conversion(V1CustomResourceConversion conversion) { @@ -69,9 +94,7 @@ public V1CustomResourceDefinitionSpec conversion(V1CustomResourceConversion conv * Get conversion * @return conversion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CustomResourceConversion getConversion() { return conversion; } @@ -92,8 +115,7 @@ public V1CustomResourceDefinitionSpec group(String group) { * group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). * @return group **/ - @ApiModelProperty(required = true, value = "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 `.`).") - + @jakarta.annotation.Nonnull public String getGroup() { return group; } @@ -114,8 +136,7 @@ public V1CustomResourceDefinitionSpec names(V1CustomResourceDefinitionNames name * Get names * @return names **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1CustomResourceDefinitionNames getNames() { return names; } @@ -136,9 +157,7 @@ public V1CustomResourceDefinitionSpec preserveUnknownFields(Boolean preserveUnkn * 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. * @return preserveUnknownFields **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getPreserveUnknownFields() { return preserveUnknownFields; } @@ -159,8 +178,7 @@ public V1CustomResourceDefinitionSpec scope(String scope) { * scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. * @return scope **/ - @ApiModelProperty(required = true, value = "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.") - + @jakarta.annotation.Nonnull public String getScope() { return scope; } @@ -178,6 +196,9 @@ public V1CustomResourceDefinitionSpec versions(List(); + } this.versions.add(versionsItem); return this; } @@ -186,8 +207,7 @@ public V1CustomResourceDefinitionSpec addVersionsItem(V1CustomResourceDefinition * 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. * @return versions **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getVersions() { return versions; } @@ -198,8 +218,9 @@ public void setVersions(List versions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -220,7 +241,6 @@ public int hashCode() { return Objects.hash(conversion, group, names, preserveUnknownFields, scope, versions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -239,11 +259,132 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conversion"); + openapiFields.add("group"); + openapiFields.add("names"); + openapiFields.add("preserveUnknownFields"); + openapiFields.add("scope"); + openapiFields.add("versions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("group"); + openapiRequiredFields.add("names"); + openapiRequiredFields.add("scope"); + openapiRequiredFields.add("versions"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceDefinitionSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceDefinitionSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceDefinitionSpec is not found in the empty JSON string", V1CustomResourceDefinitionSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceDefinitionSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceDefinitionSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `conversion` + if (jsonObj.get("conversion") != null && !jsonObj.get("conversion").isJsonNull()) { + V1CustomResourceConversion.validateJsonObject(jsonObj.getAsJsonObject("conversion")); + } + if (!jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + // validate the required field `names` + V1CustomResourceDefinitionNames.validateJsonObject(jsonObj.getAsJsonObject("names")); + if (!jsonObj.get("scope").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("versions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); + } + + JsonArray jsonArrayversions = jsonObj.getAsJsonArray("versions"); + // validate the required field `versions` (array) + for (int i = 0; i < jsonArrayversions.size(); i++) { + V1CustomResourceDefinitionVersion.validateJsonObject(jsonArrayversions.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceDefinitionSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceDefinitionSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceDefinitionSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceDefinitionSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceDefinitionSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceDefinitionSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionSpec + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionSpec + */ + public static V1CustomResourceDefinitionSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionSpec.class); + } + + /** + * Convert an instance of V1CustomResourceDefinitionSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java index 53d729323b..b94ac7a842 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition */ @@ -39,12 +62,14 @@ public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_STORED_VERSIONS = "storedVersions"; @SerializedName(SERIALIZED_NAME_STORED_VERSIONS) - private List storedVersions = null; + private List storedVersions; + public V1CustomResourceDefinitionStatus() { + } public V1CustomResourceDefinitionStatus acceptedNames(V1CustomResourceDefinitionNames acceptedNames) { @@ -56,9 +81,7 @@ public V1CustomResourceDefinitionStatus acceptedNames(V1CustomResourceDefinition * Get acceptedNames * @return acceptedNames **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CustomResourceDefinitionNames getAcceptedNames() { return acceptedNames; } @@ -87,9 +110,7 @@ public V1CustomResourceDefinitionStatus addConditionsItem(V1CustomResourceDefini * conditions indicate state for particular aspects of a CustomResourceDefinition * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "conditions indicate state for particular aspects of a CustomResourceDefinition") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -118,9 +139,7 @@ public V1CustomResourceDefinitionStatus addStoredVersionsItem(String storedVersi * 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. * @return storedVersions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getStoredVersions() { return storedVersions; } @@ -131,8 +150,9 @@ public void setStoredVersions(List storedVersions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -150,7 +170,6 @@ public int hashCode() { return Objects.hash(acceptedNames, conditions, storedVersions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -166,11 +185,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("acceptedNames"); + openapiFields.add("conditions"); + openapiFields.add("storedVersions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceDefinitionStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceDefinitionStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceDefinitionStatus is not found in the empty JSON string", V1CustomResourceDefinitionStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceDefinitionStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `acceptedNames` + if (jsonObj.get("acceptedNames") != null && !jsonObj.get("acceptedNames").isJsonNull()) { + V1CustomResourceDefinitionNames.validateJsonObject(jsonObj.getAsJsonObject("acceptedNames")); + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1CustomResourceDefinitionCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("storedVersions") != null && !jsonObj.get("storedVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `storedVersions` to be an array in the JSON string but got `%s`", jsonObj.get("storedVersions").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceDefinitionStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceDefinitionStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceDefinitionStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceDefinitionStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceDefinitionStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceDefinitionStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionStatus + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionStatus + */ + public static V1CustomResourceDefinitionStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionStatus.class); + } + + /** + * Convert an instance of V1CustomResourceDefinitionStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java index 4f7efd2ed3..4da09ff2f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition; import io.kubernetes.client.openapi.models.V1CustomResourceSubresources; import io.kubernetes.client.openapi.models.V1CustomResourceValidation; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceDefinitionVersion describes a version for CRD. */ @@ -36,7 +59,7 @@ public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) - private List additionalPrinterColumns = null; + private List additionalPrinterColumns; public static final String SERIALIZED_NAME_DEPRECATED = "deprecated"; @SerializedName(SERIALIZED_NAME_DEPRECATED) @@ -66,6 +89,8 @@ public class V1CustomResourceDefinitionVersion { @SerializedName(SERIALIZED_NAME_SUBRESOURCES) private V1CustomResourceSubresources subresources; + public V1CustomResourceDefinitionVersion() { + } public V1CustomResourceDefinitionVersion additionalPrinterColumns(List additionalPrinterColumns) { @@ -85,9 +110,7 @@ public V1CustomResourceDefinitionVersion addAdditionalPrinterColumnsItem(V1Custo * 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. * @return additionalPrinterColumns **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getAdditionalPrinterColumns() { return additionalPrinterColumns; } @@ -108,9 +131,7 @@ public V1CustomResourceDefinitionVersion deprecated(Boolean deprecated) { * 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. * @return deprecated **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getDeprecated() { return deprecated; } @@ -131,9 +152,7 @@ public V1CustomResourceDefinitionVersion deprecationWarning(String deprecationWa * 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. * @return deprecationWarning **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getDeprecationWarning() { return deprecationWarning; } @@ -154,8 +173,7 @@ public V1CustomResourceDefinitionVersion name(String name) { * name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true. * @return name **/ - @ApiModelProperty(required = true, value = "name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -176,9 +194,7 @@ public V1CustomResourceDefinitionVersion schema(V1CustomResourceValidation schem * Get schema * @return schema **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CustomResourceValidation getSchema() { return schema; } @@ -199,8 +215,7 @@ public V1CustomResourceDefinitionVersion served(Boolean served) { * served is a flag enabling/disabling this version from being served via REST APIs * @return served **/ - @ApiModelProperty(required = true, value = "served is a flag enabling/disabling this version from being served via REST APIs") - + @jakarta.annotation.Nonnull public Boolean getServed() { return served; } @@ -221,8 +236,7 @@ public V1CustomResourceDefinitionVersion storage(Boolean storage) { * storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. * @return storage **/ - @ApiModelProperty(required = true, value = "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.") - + @jakarta.annotation.Nonnull public Boolean getStorage() { return storage; } @@ -243,9 +257,7 @@ public V1CustomResourceDefinitionVersion subresources(V1CustomResourceSubresourc * Get subresources * @return subresources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CustomResourceSubresources getSubresources() { return subresources; } @@ -256,8 +268,9 @@ public void setSubresources(V1CustomResourceSubresources subresources) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -280,7 +293,6 @@ public int hashCode() { return Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, served, storage, subresources); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -301,11 +313,139 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("additionalPrinterColumns"); + openapiFields.add("deprecated"); + openapiFields.add("deprecationWarning"); + openapiFields.add("name"); + openapiFields.add("schema"); + openapiFields.add("served"); + openapiFields.add("storage"); + openapiFields.add("subresources"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("served"); + openapiRequiredFields.add("storage"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceDefinitionVersion + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceDefinitionVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceDefinitionVersion is not found in the empty JSON string", V1CustomResourceDefinitionVersion.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceDefinitionVersion.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionVersion` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceDefinitionVersion.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("additionalPrinterColumns") != null && !jsonObj.get("additionalPrinterColumns").isJsonNull()) { + JsonArray jsonArrayadditionalPrinterColumns = jsonObj.getAsJsonArray("additionalPrinterColumns"); + if (jsonArrayadditionalPrinterColumns != null) { + // ensure the json data is an array + if (!jsonObj.get("additionalPrinterColumns").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `additionalPrinterColumns` to be an array in the JSON string but got `%s`", jsonObj.get("additionalPrinterColumns").toString())); + } + + // validate the optional field `additionalPrinterColumns` (array) + for (int i = 0; i < jsonArrayadditionalPrinterColumns.size(); i++) { + V1CustomResourceColumnDefinition.validateJsonObject(jsonArrayadditionalPrinterColumns.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("deprecationWarning") != null && !jsonObj.get("deprecationWarning").isJsonNull()) && !jsonObj.get("deprecationWarning").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `deprecationWarning` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deprecationWarning").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `schema` + if (jsonObj.get("schema") != null && !jsonObj.get("schema").isJsonNull()) { + V1CustomResourceValidation.validateJsonObject(jsonObj.getAsJsonObject("schema")); + } + // validate the optional field `subresources` + if (jsonObj.get("subresources") != null && !jsonObj.get("subresources").isJsonNull()) { + V1CustomResourceSubresources.validateJsonObject(jsonObj.getAsJsonObject("subresources")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceDefinitionVersion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceDefinitionVersion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceDefinitionVersion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceDefinitionVersion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceDefinitionVersion read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceDefinitionVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceDefinitionVersion + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceDefinitionVersion + */ + public static V1CustomResourceDefinitionVersion fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceDefinitionVersion.class); + } + + /** + * Convert an instance of V1CustomResourceDefinitionVersion to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java index 7ecdaf34cc..6e390b9e4c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. */ @@ -41,6 +64,8 @@ public class V1CustomResourceSubresourceScale { @SerializedName(SERIALIZED_NAME_STATUS_REPLICAS_PATH) private String statusReplicasPath; + public V1CustomResourceSubresourceScale() { + } public V1CustomResourceSubresourceScale labelSelectorPath(String labelSelectorPath) { @@ -52,9 +77,7 @@ public V1CustomResourceSubresourceScale labelSelectorPath(String labelSelectorPa * 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. * @return labelSelectorPath **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getLabelSelectorPath() { return labelSelectorPath; } @@ -75,8 +98,7 @@ public V1CustomResourceSubresourceScale specReplicasPath(String specReplicasPath * 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. * @return specReplicasPath **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getSpecReplicasPath() { return specReplicasPath; } @@ -97,8 +119,7 @@ public V1CustomResourceSubresourceScale statusReplicasPath(String statusReplicas * 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. * @return statusReplicasPath **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getStatusReplicasPath() { return statusReplicasPath; } @@ -109,8 +130,9 @@ public void setStatusReplicasPath(String statusReplicasPath) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(labelSelectorPath, specReplicasPath, statusReplicasPath); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("labelSelectorPath"); + openapiFields.add("specReplicasPath"); + openapiFields.add("statusReplicasPath"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("specReplicasPath"); + openapiRequiredFields.add("statusReplicasPath"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceSubresourceScale + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceSubresourceScale.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceSubresourceScale is not found in the empty JSON string", V1CustomResourceSubresourceScale.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceSubresourceScale.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceSubresourceScale` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CustomResourceSubresourceScale.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("labelSelectorPath") != null && !jsonObj.get("labelSelectorPath").isJsonNull()) && !jsonObj.get("labelSelectorPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `labelSelectorPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("labelSelectorPath").toString())); + } + if (!jsonObj.get("specReplicasPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `specReplicasPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("specReplicasPath").toString())); + } + if (!jsonObj.get("statusReplicasPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `statusReplicasPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("statusReplicasPath").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceSubresourceScale.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceSubresourceScale' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceSubresourceScale.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceSubresourceScale value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceSubresourceScale read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceSubresourceScale given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceSubresourceScale + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceSubresourceScale + */ + public static V1CustomResourceSubresourceScale fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceSubresourceScale.class); + } + + /** + * Convert an instance of V1CustomResourceSubresourceScale to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java index de5eab9f2e..bfb9821a0a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceSubresources defines the status and scale subresources for CustomResources. */ @@ -38,6 +61,8 @@ public class V1CustomResourceSubresources { @SerializedName(SERIALIZED_NAME_STATUS) private Object status; + public V1CustomResourceSubresources() { + } public V1CustomResourceSubresources scale(V1CustomResourceSubresourceScale scale) { @@ -49,9 +74,7 @@ public V1CustomResourceSubresources scale(V1CustomResourceSubresourceScale scale * Get scale * @return scale **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CustomResourceSubresourceScale getScale() { return scale; } @@ -72,9 +95,7 @@ public V1CustomResourceSubresources status(Object status) { * 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. * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Object getStatus() { return status; } @@ -85,8 +106,9 @@ public void setStatus(Object status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(scale, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,99 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("scale"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceSubresources + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceSubresources.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceSubresources is not found in the empty JSON string", V1CustomResourceSubresources.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceSubresources.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceSubresources` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `scale` + if (jsonObj.get("scale") != null && !jsonObj.get("scale").isJsonNull()) { + V1CustomResourceSubresourceScale.validateJsonObject(jsonObj.getAsJsonObject("scale")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceSubresources.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceSubresources' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceSubresources.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceSubresources value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceSubresources read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceSubresources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceSubresources + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceSubresources + */ + public static V1CustomResourceSubresources fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceSubresources.class); + } + + /** + * Convert an instance of V1CustomResourceSubresources to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java index 7550f4c849..6fbef69085 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1JSONSchemaProps; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CustomResourceValidation is a list of validation methods for CustomResources. */ @@ -34,6 +57,8 @@ public class V1CustomResourceValidation { @SerializedName(SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA) private V1JSONSchemaProps openAPIV3Schema; + public V1CustomResourceValidation() { + } public V1CustomResourceValidation openAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { @@ -45,9 +70,7 @@ public V1CustomResourceValidation openAPIV3Schema(V1JSONSchemaProps openAPIV3Sch * Get openAPIV3Schema * @return openAPIV3Schema **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1JSONSchemaProps getOpenAPIV3Schema() { return openAPIV3Schema; } @@ -58,8 +81,9 @@ public void setOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(openAPIV3Schema); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("openAPIV3Schema"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1CustomResourceValidation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1CustomResourceValidation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CustomResourceValidation is not found in the empty JSON string", V1CustomResourceValidation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1CustomResourceValidation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CustomResourceValidation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `openAPIV3Schema` + if (jsonObj.get("openAPIV3Schema") != null && !jsonObj.get("openAPIV3Schema").isJsonNull()) { + V1JSONSchemaProps.validateJsonObject(jsonObj.getAsJsonObject("openAPIV3Schema")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CustomResourceValidation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CustomResourceValidation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CustomResourceValidation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CustomResourceValidation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CustomResourceValidation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CustomResourceValidation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CustomResourceValidation + * @throws IOException if the JSON string is invalid with respect to V1CustomResourceValidation + */ + public static V1CustomResourceValidation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CustomResourceValidation.class); + } + + /** + * Convert an instance of V1CustomResourceValidation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java index ff8717d8dc..32bc18177d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DaemonEndpoint contains information about a single Daemon endpoint. */ @@ -33,6 +56,8 @@ public class V1DaemonEndpoint { @SerializedName(SERIALIZED_NAME_PORT) private Integer port; + public V1DaemonEndpoint() { + } public V1DaemonEndpoint port(Integer port) { @@ -44,8 +69,7 @@ public V1DaemonEndpoint port(Integer port) { * Port number of the given endpoint. * @return port **/ - @ApiModelProperty(required = true, value = "Port number of the given endpoint.") - + @jakarta.annotation.Nonnull public Integer getPort() { return port; } @@ -56,8 +80,9 @@ public void setPort(Integer port) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(port); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("Port"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("Port"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DaemonEndpoint + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DaemonEndpoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DaemonEndpoint is not found in the empty JSON string", V1DaemonEndpoint.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DaemonEndpoint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DaemonEndpoint` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DaemonEndpoint.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DaemonEndpoint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DaemonEndpoint' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DaemonEndpoint.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DaemonEndpoint value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DaemonEndpoint read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DaemonEndpoint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonEndpoint + * @throws IOException if the JSON string is invalid with respect to V1DaemonEndpoint + */ + public static V1DaemonEndpoint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DaemonEndpoint.class); + } + + /** + * Convert an instance of V1DaemonEndpoint to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java index a7ae091a4c..c52ee13040 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1DaemonSetSpec; import io.kubernetes.client.openapi.models.V1DaemonSetStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DaemonSet represents the configuration of a daemon set. */ @@ -52,6 +75,8 @@ public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject @SerializedName(SERIALIZED_NAME_STATUS) private V1DaemonSetStatus status; + public V1DaemonSet() { + } public V1DaemonSet apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1DaemonSet apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1DaemonSet kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1DaemonSet metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1DaemonSet spec(V1DaemonSetSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DaemonSetSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1DaemonSet status(V1DaemonSetStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DaemonSetStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1DaemonSetStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DaemonSet + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DaemonSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DaemonSet is not found in the empty JSON string", V1DaemonSet.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DaemonSet.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DaemonSet` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1DaemonSetSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1DaemonSetStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DaemonSet.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DaemonSet' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DaemonSet.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DaemonSet value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DaemonSet read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DaemonSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSet + * @throws IOException if the JSON string is invalid with respect to V1DaemonSet + */ + public static V1DaemonSet fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DaemonSet.class); + } + + /** + * Convert an instance of V1DaemonSet to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java index 8e603ff783..de9b8659bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @@ -50,6 +73,8 @@ public class V1DaemonSetCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1DaemonSetCondition() { + } public V1DaemonSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1DaemonSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1DaemonSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable message indicating details about the transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1DaemonSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,8 +149,7 @@ public V1DaemonSetCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -152,8 +170,7 @@ public V1DaemonSetCondition type(String type) { * Type of DaemonSet condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type of DaemonSet condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -164,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DaemonSetCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DaemonSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DaemonSetCondition is not found in the empty JSON string", V1DaemonSetCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DaemonSetCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DaemonSetCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DaemonSetCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DaemonSetCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DaemonSetCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DaemonSetCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DaemonSetCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DaemonSetCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DaemonSetCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetCondition + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetCondition + */ + public static V1DaemonSetCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DaemonSetCondition.class); + } + + /** + * Convert an instance of V1DaemonSetCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java index c836aebcf1..c436f29e2e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DaemonSet; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DaemonSetList is a collection of daemon sets. */ @@ -49,6 +72,8 @@ public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesLi @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1DaemonSetList() { + } public V1DaemonSetList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1DaemonSetList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1DaemonSetList items(List items) { } public V1DaemonSetList addItemsItem(V1DaemonSet itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1DaemonSetList addItemsItem(V1DaemonSet itemsItem) { * A list of daemon sets. * @return items **/ - @ApiModelProperty(required = true, value = "A list of daemon sets.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1DaemonSetList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1DaemonSetList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DaemonSetList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DaemonSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DaemonSetList is not found in the empty JSON string", V1DaemonSetList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DaemonSetList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DaemonSetList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DaemonSetList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1DaemonSet.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DaemonSetList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DaemonSetList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DaemonSetList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DaemonSetList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DaemonSetList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DaemonSetList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetList + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetList + */ + public static V1DaemonSetList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DaemonSetList.class); + } + + /** + * Convert an instance of V1DaemonSetList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java index 232ac7a044..2f00fa7046 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DaemonSetSpec is the specification of a daemon set. */ @@ -52,6 +75,8 @@ public class V1DaemonSetSpec { @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) private V1DaemonSetUpdateStrategy updateStrategy; + public V1DaemonSetSpec() { + } public V1DaemonSetSpec minReadySeconds(Integer minReadySeconds) { @@ -63,9 +88,7 @@ public V1DaemonSetSpec minReadySeconds(Integer minReadySeconds) { * 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). * @return minReadySeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public Integer getMinReadySeconds() { return minReadySeconds; } @@ -86,9 +109,7 @@ public V1DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * 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. * @return revisionHistoryLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } @@ -109,8 +130,7 @@ public V1DaemonSetSpec selector(V1LabelSelector selector) { * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1LabelSelector getSelector() { return selector; } @@ -131,8 +151,7 @@ public V1DaemonSetSpec template(V1PodTemplateSpec template) { * Get template * @return template **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1PodTemplateSpec getTemplate() { return template; } @@ -153,9 +172,7 @@ public V1DaemonSetSpec updateStrategy(V1DaemonSetUpdateStrategy updateStrategy) * Get updateStrategy * @return updateStrategy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DaemonSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } @@ -166,8 +183,9 @@ public void setUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -187,7 +205,6 @@ public int hashCode() { return Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +222,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("minReadySeconds"); + openapiFields.add("revisionHistoryLimit"); + openapiFields.add("selector"); + openapiFields.add("template"); + openapiFields.add("updateStrategy"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("selector"); + openapiRequiredFields.add("template"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DaemonSetSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DaemonSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DaemonSetSpec is not found in the empty JSON string", V1DaemonSetSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DaemonSetSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DaemonSetSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DaemonSetSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `selector` + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + // validate the required field `template` + V1PodTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("template")); + // validate the optional field `updateStrategy` + if (jsonObj.get("updateStrategy") != null && !jsonObj.get("updateStrategy").isJsonNull()) { + V1DaemonSetUpdateStrategy.validateJsonObject(jsonObj.getAsJsonObject("updateStrategy")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DaemonSetSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DaemonSetSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DaemonSetSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DaemonSetSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DaemonSetSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DaemonSetSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetSpec + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetSpec + */ + public static V1DaemonSetSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DaemonSetSpec.class); + } + + /** + * Convert an instance of V1DaemonSetSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java index 7218a57748..bdfcd82436 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DaemonSetCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DaemonSetStatus represents the current status of a daemon set. */ @@ -38,7 +61,7 @@ public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED = "currentNumberScheduled"; @SerializedName(SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED) @@ -72,6 +95,8 @@ public class V1DaemonSetStatus { @SerializedName(SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED) private Integer updatedNumberScheduled; + public V1DaemonSetStatus() { + } public V1DaemonSetStatus collisionCount(Integer collisionCount) { @@ -83,9 +108,7 @@ public V1DaemonSetStatus collisionCount(Integer collisionCount) { * 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. * @return collisionCount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getCollisionCount() { return collisionCount; } @@ -114,9 +137,7 @@ public V1DaemonSetStatus addConditionsItem(V1DaemonSetCondition conditionsItem) * Represents the latest available observations of a DaemonSet's current state. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Represents the latest available observations of a DaemonSet's current state.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -137,8 +158,7 @@ public V1DaemonSetStatus currentNumberScheduled(Integer currentNumberScheduled) * 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/ * @return currentNumberScheduled **/ - @ApiModelProperty(required = true, value = "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/") - + @jakarta.annotation.Nonnull public Integer getCurrentNumberScheduled() { return currentNumberScheduled; } @@ -159,8 +179,7 @@ public V1DaemonSetStatus desiredNumberScheduled(Integer desiredNumberScheduled) * 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/ * @return desiredNumberScheduled **/ - @ApiModelProperty(required = true, value = "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/") - + @jakarta.annotation.Nonnull public Integer getDesiredNumberScheduled() { return desiredNumberScheduled; } @@ -181,9 +200,7 @@ public V1DaemonSetStatus numberAvailable(Integer numberAvailable) { * 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) * @return numberAvailable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)") - + @jakarta.annotation.Nullable public Integer getNumberAvailable() { return numberAvailable; } @@ -204,8 +221,7 @@ public V1DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { * 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/ * @return numberMisscheduled **/ - @ApiModelProperty(required = true, value = "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/") - + @jakarta.annotation.Nonnull public Integer getNumberMisscheduled() { return numberMisscheduled; } @@ -226,8 +242,7 @@ public V1DaemonSetStatus numberReady(Integer numberReady) { * 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. * @return numberReady **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public Integer getNumberReady() { return numberReady; } @@ -248,9 +263,7 @@ public V1DaemonSetStatus numberUnavailable(Integer numberUnavailable) { * 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) * @return numberUnavailable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)") - + @jakarta.annotation.Nullable public Integer getNumberUnavailable() { return numberUnavailable; } @@ -271,9 +284,7 @@ public V1DaemonSetStatus observedGeneration(Long observedGeneration) { * The most recent generation observed by the daemon set controller. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The most recent generation observed by the daemon set controller.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -294,9 +305,7 @@ public V1DaemonSetStatus updatedNumberScheduled(Integer updatedNumberScheduled) * The total number of nodes that are running updated daemon pod * @return updatedNumberScheduled **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The total number of nodes that are running updated daemon pod") - + @jakarta.annotation.Nullable public Integer getUpdatedNumberScheduled() { return updatedNumberScheduled; } @@ -307,8 +316,9 @@ public void setUpdatedNumberScheduled(Integer updatedNumberScheduled) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -333,7 +343,6 @@ public int hashCode() { return Objects.hash(collisionCount, conditions, currentNumberScheduled, desiredNumberScheduled, numberAvailable, numberMisscheduled, numberReady, numberUnavailable, observedGeneration, updatedNumberScheduled); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -356,11 +365,128 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("collisionCount"); + openapiFields.add("conditions"); + openapiFields.add("currentNumberScheduled"); + openapiFields.add("desiredNumberScheduled"); + openapiFields.add("numberAvailable"); + openapiFields.add("numberMisscheduled"); + openapiFields.add("numberReady"); + openapiFields.add("numberUnavailable"); + openapiFields.add("observedGeneration"); + openapiFields.add("updatedNumberScheduled"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("currentNumberScheduled"); + openapiRequiredFields.add("desiredNumberScheduled"); + openapiRequiredFields.add("numberMisscheduled"); + openapiRequiredFields.add("numberReady"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DaemonSetStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DaemonSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DaemonSetStatus is not found in the empty JSON string", V1DaemonSetStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DaemonSetStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DaemonSetStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DaemonSetStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1DaemonSetCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DaemonSetStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DaemonSetStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DaemonSetStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DaemonSetStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DaemonSetStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DaemonSetStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetStatus + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetStatus + */ + public static V1DaemonSetStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DaemonSetStatus.class); + } + + /** + * Convert an instance of V1DaemonSetStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java index 495f0654e5..0a61fe6349 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. */ @@ -38,6 +61,8 @@ public class V1DaemonSetUpdateStrategy { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1DaemonSetUpdateStrategy() { + } public V1DaemonSetUpdateStrategy rollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { @@ -49,9 +74,7 @@ public V1DaemonSetUpdateStrategy rollingUpdate(V1RollingUpdateDaemonSet rollingU * Get rollingUpdate * @return rollingUpdate **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1RollingUpdateDaemonSet getRollingUpdate() { return rollingUpdate; } @@ -72,9 +95,7 @@ public V1DaemonSetUpdateStrategy type(String type) { * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -85,8 +106,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(rollingUpdate, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("rollingUpdate"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DaemonSetUpdateStrategy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DaemonSetUpdateStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DaemonSetUpdateStrategy is not found in the empty JSON string", V1DaemonSetUpdateStrategy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DaemonSetUpdateStrategy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DaemonSetUpdateStrategy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `rollingUpdate` + if (jsonObj.get("rollingUpdate") != null && !jsonObj.get("rollingUpdate").isJsonNull()) { + V1RollingUpdateDaemonSet.validateJsonObject(jsonObj.getAsJsonObject("rollingUpdate")); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DaemonSetUpdateStrategy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DaemonSetUpdateStrategy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DaemonSetUpdateStrategy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DaemonSetUpdateStrategy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DaemonSetUpdateStrategy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DaemonSetUpdateStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DaemonSetUpdateStrategy + * @throws IOException if the JSON string is invalid with respect to V1DaemonSetUpdateStrategy + */ + public static V1DaemonSetUpdateStrategy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DaemonSetUpdateStrategy.class); + } + + /** + * Convert an instance of V1DaemonSetUpdateStrategy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java index dd6110195e..7eca337054 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Preconditions; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DeleteOptions may be provided when deleting an API object. */ @@ -38,7 +61,7 @@ public class V1DeleteOptions { public static final String SERIALIZED_NAME_DRY_RUN = "dryRun"; @SerializedName(SERIALIZED_NAME_DRY_RUN) - private List dryRun = null; + private List dryRun; public static final String SERIALIZED_NAME_GRACE_PERIOD_SECONDS = "gracePeriodSeconds"; @SerializedName(SERIALIZED_NAME_GRACE_PERIOD_SECONDS) @@ -60,6 +83,8 @@ public class V1DeleteOptions { @SerializedName(SERIALIZED_NAME_PROPAGATION_POLICY) private String propagationPolicy; + public V1DeleteOptions() { + } public V1DeleteOptions apiVersion(String apiVersion) { @@ -71,9 +96,7 @@ public V1DeleteOptions apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -102,9 +125,7 @@ public V1DeleteOptions addDryRunItem(String dryRunItem) { * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @return dryRun **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed") - + @jakarta.annotation.Nullable public List getDryRun() { return dryRun; } @@ -125,9 +146,7 @@ public V1DeleteOptions gracePeriodSeconds(Long gracePeriodSeconds) { * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. * @return gracePeriodSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.") - + @jakarta.annotation.Nullable public Long getGracePeriodSeconds() { return gracePeriodSeconds; } @@ -148,9 +167,7 @@ public V1DeleteOptions kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -171,9 +188,7 @@ public V1DeleteOptions orphanDependents(Boolean orphanDependents) { * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. * @return orphanDependents **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.") - + @jakarta.annotation.Nullable public Boolean getOrphanDependents() { return orphanDependents; } @@ -194,9 +209,7 @@ public V1DeleteOptions preconditions(V1Preconditions preconditions) { * Get preconditions * @return preconditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Preconditions getPreconditions() { return preconditions; } @@ -217,9 +230,7 @@ public V1DeleteOptions propagationPolicy(String propagationPolicy) { * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. * @return propagationPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.") - + @jakarta.annotation.Nullable public String getPropagationPolicy() { return propagationPolicy; } @@ -230,8 +241,9 @@ public void setPropagationPolicy(String propagationPolicy) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -253,7 +265,6 @@ public int hashCode() { return Objects.hash(apiVersion, dryRun, gracePeriodSeconds, kind, orphanDependents, preconditions, propagationPolicy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -273,11 +284,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("dryRun"); + openapiFields.add("gracePeriodSeconds"); + openapiFields.add("kind"); + openapiFields.add("orphanDependents"); + openapiFields.add("preconditions"); + openapiFields.add("propagationPolicy"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DeleteOptions + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DeleteOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeleteOptions is not found in the empty JSON string", V1DeleteOptions.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DeleteOptions.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeleteOptions` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("dryRun") != null && !jsonObj.get("dryRun").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `dryRun` to be an array in the JSON string but got `%s`", jsonObj.get("dryRun").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `preconditions` + if (jsonObj.get("preconditions") != null && !jsonObj.get("preconditions").isJsonNull()) { + V1Preconditions.validateJsonObject(jsonObj.getAsJsonObject("preconditions")); + } + if ((jsonObj.get("propagationPolicy") != null && !jsonObj.get("propagationPolicy").isJsonNull()) && !jsonObj.get("propagationPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `propagationPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("propagationPolicy").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeleteOptions.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeleteOptions' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeleteOptions.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeleteOptions value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeleteOptions read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeleteOptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeleteOptions + * @throws IOException if the JSON string is invalid with respect to V1DeleteOptions + */ + public static V1DeleteOptions fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeleteOptions.class); + } + + /** + * Convert an instance of V1DeleteOptions to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java index 5ae0a9ba0a..214dcc61b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1DeploymentSpec; import io.kubernetes.client.openapi.models.V1DeploymentStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Deployment enables declarative updates for Pods and ReplicaSets. */ @@ -52,6 +75,8 @@ public class V1Deployment implements io.kubernetes.client.common.KubernetesObjec @SerializedName(SERIALIZED_NAME_STATUS) private V1DeploymentStatus status; + public V1Deployment() { + } public V1Deployment apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1Deployment apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1Deployment kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1Deployment metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1Deployment spec(V1DeploymentSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DeploymentSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1Deployment status(V1DeploymentStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DeploymentStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1DeploymentStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Deployment + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Deployment.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Deployment is not found in the empty JSON string", V1Deployment.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Deployment.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Deployment` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1DeploymentSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1DeploymentStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Deployment.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Deployment' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Deployment.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Deployment value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Deployment read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Deployment given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Deployment + * @throws IOException if the JSON string is invalid with respect to V1Deployment + */ + public static V1Deployment fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Deployment.class); + } + + /** + * Convert an instance of V1Deployment to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java index e67297f202..1e27559798 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DeploymentCondition describes the state of a deployment at a certain point. */ @@ -54,6 +77,8 @@ public class V1DeploymentCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1DeploymentCondition() { + } public V1DeploymentCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -65,9 +90,7 @@ public V1DeploymentCondition lastTransitionTime(OffsetDateTime lastTransitionTim * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -88,9 +111,7 @@ public V1DeploymentCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { * The last time this condition was updated. * @return lastUpdateTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The last time this condition was updated.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } @@ -111,9 +132,7 @@ public V1DeploymentCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable message indicating details about the transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -134,9 +153,7 @@ public V1DeploymentCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -157,8 +174,7 @@ public V1DeploymentCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -179,8 +195,7 @@ public V1DeploymentCondition type(String type) { * Type of deployment condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type of deployment condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -191,8 +206,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -213,7 +229,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -232,11 +247,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("lastUpdateTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DeploymentCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DeploymentCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeploymentCondition is not found in the empty JSON string", V1DeploymentCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DeploymentCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeploymentCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeploymentCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeploymentCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeploymentCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeploymentCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeploymentCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeploymentCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeploymentCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentCondition + * @throws IOException if the JSON string is invalid with respect to V1DeploymentCondition + */ + public static V1DeploymentCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeploymentCondition.class); + } + + /** + * Convert an instance of V1DeploymentCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java index 68e0943a5e..0e0514a87b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Deployment; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DeploymentList is a list of Deployments. */ @@ -49,6 +72,8 @@ public class V1DeploymentList implements io.kubernetes.client.common.KubernetesL @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1DeploymentList() { + } public V1DeploymentList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1DeploymentList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1DeploymentList items(List items) { } public V1DeploymentList addItemsItem(V1Deployment itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1DeploymentList addItemsItem(V1Deployment itemsItem) { * Items is the list of Deployments. * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of Deployments.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1DeploymentList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1DeploymentList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DeploymentList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DeploymentList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeploymentList is not found in the empty JSON string", V1DeploymentList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DeploymentList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeploymentList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeploymentList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Deployment.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeploymentList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeploymentList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeploymentList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeploymentList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeploymentList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeploymentList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentList + * @throws IOException if the JSON string is invalid with respect to V1DeploymentList + */ + public static V1DeploymentList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeploymentList.class); + } + + /** + * Convert an instance of V1DeploymentList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java index e545ce8e15..3e471de252 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1DeploymentStrategy; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @@ -64,6 +87,8 @@ public class V1DeploymentSpec { @SerializedName(SERIALIZED_NAME_TEMPLATE) private V1PodTemplateSpec template; + public V1DeploymentSpec() { + } public V1DeploymentSpec minReadySeconds(Integer minReadySeconds) { @@ -75,9 +100,7 @@ public V1DeploymentSpec minReadySeconds(Integer minReadySeconds) { * 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) * @return minReadySeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)") - + @jakarta.annotation.Nullable public Integer getMinReadySeconds() { return minReadySeconds; } @@ -98,9 +121,7 @@ public V1DeploymentSpec paused(Boolean paused) { * Indicates that the deployment is paused. * @return paused **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Indicates that the deployment is paused.") - + @jakarta.annotation.Nullable public Boolean getPaused() { return paused; } @@ -121,9 +142,7 @@ public V1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds) * 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. * @return progressDeadlineSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getProgressDeadlineSeconds() { return progressDeadlineSeconds; } @@ -144,9 +163,7 @@ public V1DeploymentSpec replicas(Integer replicas) { * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. * @return replicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") - + @jakarta.annotation.Nullable public Integer getReplicas() { return replicas; } @@ -167,9 +184,7 @@ public V1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * 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. * @return revisionHistoryLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } @@ -190,8 +205,7 @@ public V1DeploymentSpec selector(V1LabelSelector selector) { * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1LabelSelector getSelector() { return selector; } @@ -212,9 +226,7 @@ public V1DeploymentSpec strategy(V1DeploymentStrategy strategy) { * Get strategy * @return strategy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DeploymentStrategy getStrategy() { return strategy; } @@ -235,8 +247,7 @@ public V1DeploymentSpec template(V1PodTemplateSpec template) { * Get template * @return template **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1PodTemplateSpec getTemplate() { return template; } @@ -247,8 +258,9 @@ public void setTemplate(V1PodTemplateSpec template) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -271,7 +283,6 @@ public int hashCode() { return Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -292,11 +303,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("minReadySeconds"); + openapiFields.add("paused"); + openapiFields.add("progressDeadlineSeconds"); + openapiFields.add("replicas"); + openapiFields.add("revisionHistoryLimit"); + openapiFields.add("selector"); + openapiFields.add("strategy"); + openapiFields.add("template"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("selector"); + openapiRequiredFields.add("template"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DeploymentSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DeploymentSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeploymentSpec is not found in the empty JSON string", V1DeploymentSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DeploymentSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeploymentSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeploymentSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `selector` + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + // validate the optional field `strategy` + if (jsonObj.get("strategy") != null && !jsonObj.get("strategy").isJsonNull()) { + V1DeploymentStrategy.validateJsonObject(jsonObj.getAsJsonObject("strategy")); + } + // validate the required field `template` + V1PodTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("template")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeploymentSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeploymentSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeploymentSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeploymentSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeploymentSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeploymentSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentSpec + * @throws IOException if the JSON string is invalid with respect to V1DeploymentSpec + */ + public static V1DeploymentSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeploymentSpec.class); + } + + /** + * Convert an instance of V1DeploymentSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java index 7144164e1c..b6625a50c9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DeploymentCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DeploymentStatus is the most recently observed status of the Deployment. */ @@ -42,7 +65,7 @@ public class V1DeploymentStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) @@ -64,6 +87,8 @@ public class V1DeploymentStatus { @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) private Integer updatedReplicas; + public V1DeploymentStatus() { + } public V1DeploymentStatus availableReplicas(Integer availableReplicas) { @@ -75,9 +100,7 @@ public V1DeploymentStatus availableReplicas(Integer availableReplicas) { * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. * @return availableReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.") - + @jakarta.annotation.Nullable public Integer getAvailableReplicas() { return availableReplicas; } @@ -98,9 +121,7 @@ public V1DeploymentStatus collisionCount(Integer collisionCount) { * 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. * @return collisionCount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getCollisionCount() { return collisionCount; } @@ -129,9 +150,7 @@ public V1DeploymentStatus addConditionsItem(V1DeploymentCondition conditionsItem * Represents the latest available observations of a deployment's current state. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Represents the latest available observations of a deployment's current state.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -152,9 +171,7 @@ public V1DeploymentStatus observedGeneration(Long observedGeneration) { * The generation observed by the deployment controller. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The generation observed by the deployment controller.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -175,9 +192,7 @@ public V1DeploymentStatus readyReplicas(Integer readyReplicas) { * readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. * @return readyReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.") - + @jakarta.annotation.Nullable public Integer getReadyReplicas() { return readyReplicas; } @@ -198,9 +213,7 @@ public V1DeploymentStatus replicas(Integer replicas) { * Total number of non-terminated pods targeted by this deployment (their labels match the selector). * @return replicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment (their labels match the selector).") - + @jakarta.annotation.Nullable public Integer getReplicas() { return replicas; } @@ -221,9 +234,7 @@ public V1DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { * 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. * @return unavailableReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getUnavailableReplicas() { return unavailableReplicas; } @@ -244,9 +255,7 @@ public V1DeploymentStatus updatedReplicas(Integer updatedReplicas) { * Total number of non-terminated pods targeted by this deployment that have the desired template spec. * @return updatedReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment that have the desired template spec.") - + @jakarta.annotation.Nullable public Integer getUpdatedReplicas() { return updatedReplicas; } @@ -257,8 +266,9 @@ public void setUpdatedReplicas(Integer updatedReplicas) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -281,7 +291,6 @@ public int hashCode() { return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -302,11 +311,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("availableReplicas"); + openapiFields.add("collisionCount"); + openapiFields.add("conditions"); + openapiFields.add("observedGeneration"); + openapiFields.add("readyReplicas"); + openapiFields.add("replicas"); + openapiFields.add("unavailableReplicas"); + openapiFields.add("updatedReplicas"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DeploymentStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DeploymentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeploymentStatus is not found in the empty JSON string", V1DeploymentStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DeploymentStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeploymentStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1DeploymentCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeploymentStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeploymentStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeploymentStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeploymentStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeploymentStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeploymentStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentStatus + * @throws IOException if the JSON string is invalid with respect to V1DeploymentStatus + */ + public static V1DeploymentStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeploymentStatus.class); + } + + /** + * Convert an instance of V1DeploymentStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java index 0e9d8856c0..f2565f92a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1RollingUpdateDeployment; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DeploymentStrategy describes how to replace existing pods with new ones. */ @@ -38,6 +61,8 @@ public class V1DeploymentStrategy { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1DeploymentStrategy() { + } public V1DeploymentStrategy rollingUpdate(V1RollingUpdateDeployment rollingUpdate) { @@ -49,9 +74,7 @@ public V1DeploymentStrategy rollingUpdate(V1RollingUpdateDeployment rollingUpdat * Get rollingUpdate * @return rollingUpdate **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1RollingUpdateDeployment getRollingUpdate() { return rollingUpdate; } @@ -72,9 +95,7 @@ public V1DeploymentStrategy type(String type) { * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -85,8 +106,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(rollingUpdate, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("rollingUpdate"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DeploymentStrategy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DeploymentStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeploymentStrategy is not found in the empty JSON string", V1DeploymentStrategy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DeploymentStrategy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeploymentStrategy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `rollingUpdate` + if (jsonObj.get("rollingUpdate") != null && !jsonObj.get("rollingUpdate").isJsonNull()) { + V1RollingUpdateDeployment.validateJsonObject(jsonObj.getAsJsonObject("rollingUpdate")); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeploymentStrategy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeploymentStrategy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeploymentStrategy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeploymentStrategy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeploymentStrategy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeploymentStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeploymentStrategy + * @throws IOException if the JSON string is invalid with respect to V1DeploymentStrategy + */ + public static V1DeploymentStrategy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeploymentStrategy.class); + } + + /** + * Convert an instance of V1DeploymentStrategy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java index 5db995a0ab..02ddd91dc5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. */ @@ -34,8 +57,10 @@ public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; + private List items; + public V1DownwardAPIProjection() { + } public V1DownwardAPIProjection items(List items) { @@ -55,9 +80,7 @@ public V1DownwardAPIProjection addItemsItem(V1DownwardAPIVolumeFile itemsItem) { * Items is a list of DownwardAPIVolume file * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Items is a list of DownwardAPIVolume file") - + @jakarta.annotation.Nullable public List getItems() { return items; } @@ -68,8 +91,9 @@ public void setItems(List items) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(items); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("items"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DownwardAPIProjection + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DownwardAPIProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DownwardAPIProjection is not found in the empty JSON string", V1DownwardAPIProjection.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DownwardAPIProjection.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DownwardAPIProjection` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + if (jsonArrayitems != null) { + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + // validate the optional field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1DownwardAPIVolumeFile.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DownwardAPIProjection.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DownwardAPIProjection' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DownwardAPIProjection.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DownwardAPIProjection value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DownwardAPIProjection read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DownwardAPIProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DownwardAPIProjection + * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIProjection + */ + public static V1DownwardAPIProjection fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DownwardAPIProjection.class); + } + + /** + * Convert an instance of V1DownwardAPIProjection to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java index 860065cccc..4b3255646b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectFieldSelector; import io.kubernetes.client.openapi.models.V1ResourceFieldSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DownwardAPIVolumeFile represents information to create the file containing the pod field */ @@ -47,6 +70,8 @@ public class V1DownwardAPIVolumeFile { @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) private V1ResourceFieldSelector resourceFieldRef; + public V1DownwardAPIVolumeFile() { + } public V1DownwardAPIVolumeFile fieldRef(V1ObjectFieldSelector fieldRef) { @@ -58,9 +83,7 @@ public V1DownwardAPIVolumeFile fieldRef(V1ObjectFieldSelector fieldRef) { * Get fieldRef * @return fieldRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectFieldSelector getFieldRef() { return fieldRef; } @@ -81,9 +104,7 @@ public V1DownwardAPIVolumeFile mode(Integer mode) { * 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. * @return mode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getMode() { return mode; } @@ -104,8 +125,7 @@ public V1DownwardAPIVolumeFile path(String path) { * 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 '..' * @return path **/ - @ApiModelProperty(required = true, value = "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 '..'") - + @jakarta.annotation.Nonnull public String getPath() { return path; } @@ -126,9 +146,7 @@ public V1DownwardAPIVolumeFile resourceFieldRef(V1ResourceFieldSelector resource * Get resourceFieldRef * @return resourceFieldRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef; } @@ -139,8 +157,9 @@ public void setResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +178,6 @@ public int hashCode() { return Objects.hash(fieldRef, mode, path, resourceFieldRef); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +194,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fieldRef"); + openapiFields.add("mode"); + openapiFields.add("path"); + openapiFields.add("resourceFieldRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("path"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DownwardAPIVolumeFile + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DownwardAPIVolumeFile.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DownwardAPIVolumeFile is not found in the empty JSON string", V1DownwardAPIVolumeFile.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DownwardAPIVolumeFile.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DownwardAPIVolumeFile` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DownwardAPIVolumeFile.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `fieldRef` + if (jsonObj.get("fieldRef") != null && !jsonObj.get("fieldRef").isJsonNull()) { + V1ObjectFieldSelector.validateJsonObject(jsonObj.getAsJsonObject("fieldRef")); + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + // validate the optional field `resourceFieldRef` + if (jsonObj.get("resourceFieldRef") != null && !jsonObj.get("resourceFieldRef").isJsonNull()) { + V1ResourceFieldSelector.validateJsonObject(jsonObj.getAsJsonObject("resourceFieldRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DownwardAPIVolumeFile.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DownwardAPIVolumeFile' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DownwardAPIVolumeFile.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DownwardAPIVolumeFile value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DownwardAPIVolumeFile read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DownwardAPIVolumeFile given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DownwardAPIVolumeFile + * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIVolumeFile + */ + public static V1DownwardAPIVolumeFile fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DownwardAPIVolumeFile.class); + } + + /** + * Convert an instance of V1DownwardAPIVolumeFile to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java index 36e8942dbf..2fa191dc91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. */ @@ -38,8 +61,10 @@ public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; + private List items; + public V1DownwardAPIVolumeSource() { + } public V1DownwardAPIVolumeSource defaultMode(Integer defaultMode) { @@ -51,9 +76,7 @@ public V1DownwardAPIVolumeSource defaultMode(Integer defaultMode) { * 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. * @return defaultMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getDefaultMode() { return defaultMode; } @@ -82,9 +105,7 @@ public V1DownwardAPIVolumeSource addItemsItem(V1DownwardAPIVolumeFile itemsItem) * Items is a list of downward API volume file * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Items is a list of downward API volume file") - + @jakarta.annotation.Nullable public List getItems() { return items; } @@ -95,8 +116,9 @@ public void setItems(List items) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -113,7 +135,6 @@ public int hashCode() { return Objects.hash(defaultMode, items); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -128,11 +149,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("defaultMode"); + openapiFields.add("items"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1DownwardAPIVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1DownwardAPIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DownwardAPIVolumeSource is not found in the empty JSON string", V1DownwardAPIVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1DownwardAPIVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DownwardAPIVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + if (jsonArrayitems != null) { + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + // validate the optional field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1DownwardAPIVolumeFile.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DownwardAPIVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DownwardAPIVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DownwardAPIVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DownwardAPIVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DownwardAPIVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DownwardAPIVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DownwardAPIVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1DownwardAPIVolumeSource + */ + public static V1DownwardAPIVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DownwardAPIVolumeSource.class); + } + + /** + * Convert an instance of V1DownwardAPIVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java index bfc8955c3e..65f9fff5e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. */ @@ -38,6 +61,8 @@ public class V1EmptyDirVolumeSource { @SerializedName(SERIALIZED_NAME_SIZE_LIMIT) private Quantity sizeLimit; + public V1EmptyDirVolumeSource() { + } public V1EmptyDirVolumeSource medium(String medium) { @@ -49,9 +74,7 @@ public V1EmptyDirVolumeSource medium(String medium) { * 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 * @return medium **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getMedium() { return medium; } @@ -72,9 +95,7 @@ public V1EmptyDirVolumeSource sizeLimit(Quantity sizeLimit) { * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return sizeLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") - + @jakarta.annotation.Nullable public Quantity getSizeLimit() { return sizeLimit; } @@ -85,8 +106,9 @@ public void setSizeLimit(Quantity sizeLimit) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(medium, sizeLimit); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("medium"); + openapiFields.add("sizeLimit"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EmptyDirVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EmptyDirVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EmptyDirVolumeSource is not found in the empty JSON string", V1EmptyDirVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EmptyDirVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EmptyDirVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("medium") != null && !jsonObj.get("medium").isJsonNull()) && !jsonObj.get("medium").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `medium` to be a primitive type in the JSON string but got `%s`", jsonObj.get("medium").toString())); + } + if ((jsonObj.get("sizeLimit") != null && !jsonObj.get("sizeLimit").isJsonNull()) && !jsonObj.get("sizeLimit").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sizeLimit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sizeLimit").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EmptyDirVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EmptyDirVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EmptyDirVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EmptyDirVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EmptyDirVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EmptyDirVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EmptyDirVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1EmptyDirVolumeSource + */ + public static V1EmptyDirVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EmptyDirVolumeSource.class); + } + + /** + * Convert an instance of V1EmptyDirVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java index 667d05add6..70074ef2ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java @@ -22,14 +22,37 @@ import io.kubernetes.client.openapi.models.V1EndpointConditions; import io.kubernetes.client.openapi.models.V1EndpointHints; import io.kubernetes.client.openapi.models.V1ObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Endpoint represents a single logical \"backend\" implementing a service. */ @@ -46,7 +69,7 @@ public class V1Endpoint { public static final String SERIALIZED_NAME_DEPRECATED_TOPOLOGY = "deprecatedTopology"; @SerializedName(SERIALIZED_NAME_DEPRECATED_TOPOLOGY) - private Map deprecatedTopology = null; + private Map deprecatedTopology = new HashMap<>(); public static final String SERIALIZED_NAME_HINTS = "hints"; @SerializedName(SERIALIZED_NAME_HINTS) @@ -68,6 +91,8 @@ public class V1Endpoint { @SerializedName(SERIALIZED_NAME_ZONE) private String zone; + public V1Endpoint() { + } public V1Endpoint addresses(List addresses) { @@ -76,6 +101,9 @@ public V1Endpoint addresses(List addresses) { } public V1Endpoint addAddressesItem(String addressesItem) { + if (this.addresses == null) { + this.addresses = new ArrayList<>(); + } this.addresses.add(addressesItem); return this; } @@ -84,8 +112,7 @@ public V1Endpoint addAddressesItem(String addressesItem) { * 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 * @return addresses **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public List getAddresses() { return addresses; } @@ -106,9 +133,7 @@ public V1Endpoint conditions(V1EndpointConditions conditions) { * Get conditions * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1EndpointConditions getConditions() { return conditions; } @@ -137,9 +162,7 @@ public V1Endpoint putDeprecatedTopologyItem(String key, String deprecatedTopolog * 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. * @return deprecatedTopology **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getDeprecatedTopology() { return deprecatedTopology; } @@ -160,9 +183,7 @@ public V1Endpoint hints(V1EndpointHints hints) { * Get hints * @return hints **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1EndpointHints getHints() { return hints; } @@ -183,9 +204,7 @@ public V1Endpoint hostname(String hostname) { * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. * @return hostname **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getHostname() { return hostname; } @@ -206,9 +225,7 @@ public V1Endpoint nodeName(String nodeName) { * nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. * @return nodeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.") - + @jakarta.annotation.Nullable public String getNodeName() { return nodeName; } @@ -229,9 +246,7 @@ public V1Endpoint targetRef(V1ObjectReference targetRef) { * Get targetRef * @return targetRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectReference getTargetRef() { return targetRef; } @@ -252,9 +267,7 @@ public V1Endpoint zone(String zone) { * zone is the name of the Zone this endpoint exists in. * @return zone **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "zone is the name of the Zone this endpoint exists in.") - + @jakarta.annotation.Nullable public String getZone() { return zone; } @@ -265,8 +278,9 @@ public void setZone(String zone) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -289,7 +303,6 @@ public int hashCode() { return Objects.hash(addresses, conditions, deprecatedTopology, hints, hostname, nodeName, targetRef, zone); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -310,11 +323,136 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("addresses"); + openapiFields.add("conditions"); + openapiFields.add("deprecatedTopology"); + openapiFields.add("hints"); + openapiFields.add("hostname"); + openapiFields.add("nodeName"); + openapiFields.add("targetRef"); + openapiFields.add("zone"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("addresses"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Endpoint + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Endpoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Endpoint is not found in the empty JSON string", V1Endpoint.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Endpoint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Endpoint` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Endpoint.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("addresses") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("addresses").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `addresses` to be an array in the JSON string but got `%s`", jsonObj.get("addresses").toString())); + } + // validate the optional field `conditions` + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + V1EndpointConditions.validateJsonObject(jsonObj.getAsJsonObject("conditions")); + } + // validate the optional field `hints` + if (jsonObj.get("hints") != null && !jsonObj.get("hints").isJsonNull()) { + V1EndpointHints.validateJsonObject(jsonObj.getAsJsonObject("hints")); + } + if ((jsonObj.get("hostname") != null && !jsonObj.get("hostname").isJsonNull()) && !jsonObj.get("hostname").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `hostname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostname").toString())); + } + if ((jsonObj.get("nodeName") != null && !jsonObj.get("nodeName").isJsonNull()) && !jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + // validate the optional field `targetRef` + if (jsonObj.get("targetRef") != null && !jsonObj.get("targetRef").isJsonNull()) { + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("targetRef")); + } + if ((jsonObj.get("zone") != null && !jsonObj.get("zone").isJsonNull()) && !jsonObj.get("zone").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `zone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zone").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Endpoint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Endpoint' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Endpoint.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Endpoint value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Endpoint read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Endpoint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Endpoint + * @throws IOException if the JSON string is invalid with respect to V1Endpoint + */ + public static V1Endpoint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Endpoint.class); + } + + /** + * Convert an instance of V1Endpoint to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java index 39f2ecd33a..ba608222b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EndpointAddress is a tuple that describes single IP address. */ @@ -46,6 +69,8 @@ public class V1EndpointAddress { @SerializedName(SERIALIZED_NAME_TARGET_REF) private V1ObjectReference targetRef; + public V1EndpointAddress() { + } public V1EndpointAddress hostname(String hostname) { @@ -57,9 +82,7 @@ public V1EndpointAddress hostname(String hostname) { * The Hostname of this endpoint * @return hostname **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The Hostname of this endpoint") - + @jakarta.annotation.Nullable public String getHostname() { return hostname; } @@ -80,8 +103,7 @@ public V1EndpointAddress ip(String ip) { * 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). * @return ip **/ - @ApiModelProperty(required = true, value = "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).") - + @jakarta.annotation.Nonnull public String getIp() { return ip; } @@ -102,9 +124,7 @@ public V1EndpointAddress nodeName(String nodeName) { * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. * @return nodeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.") - + @jakarta.annotation.Nullable public String getNodeName() { return nodeName; } @@ -125,9 +145,7 @@ public V1EndpointAddress targetRef(V1ObjectReference targetRef) { * Get targetRef * @return targetRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectReference getTargetRef() { return targetRef; } @@ -138,8 +156,9 @@ public void setTargetRef(V1ObjectReference targetRef) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +177,6 @@ public int hashCode() { return Objects.hash(hostname, ip, nodeName, targetRef); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +193,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("hostname"); + openapiFields.add("ip"); + openapiFields.add("nodeName"); + openapiFields.add("targetRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("ip"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EndpointAddress + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EndpointAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EndpointAddress is not found in the empty JSON string", V1EndpointAddress.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EndpointAddress.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EndpointAddress` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1EndpointAddress.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("hostname") != null && !jsonObj.get("hostname").isJsonNull()) && !jsonObj.get("hostname").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `hostname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostname").toString())); + } + if (!jsonObj.get("ip").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); + } + if ((jsonObj.get("nodeName") != null && !jsonObj.get("nodeName").isJsonNull()) && !jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + // validate the optional field `targetRef` + if (jsonObj.get("targetRef") != null && !jsonObj.get("targetRef").isJsonNull()) { + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("targetRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EndpointAddress.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EndpointAddress' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EndpointAddress.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EndpointAddress value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EndpointAddress read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EndpointAddress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointAddress + * @throws IOException if the JSON string is invalid with respect to V1EndpointAddress + */ + public static V1EndpointAddress fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EndpointAddress.class); + } + + /** + * Convert an instance of V1EndpointAddress to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java index 9b40e20a13..58640c0d18 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EndpointConditions represents the current condition of an endpoint. */ @@ -41,6 +64,8 @@ public class V1EndpointConditions { @SerializedName(SERIALIZED_NAME_TERMINATING) private Boolean terminating; + public V1EndpointConditions() { + } public V1EndpointConditions ready(Boolean ready) { @@ -52,9 +77,7 @@ public V1EndpointConditions ready(Boolean ready) { * 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. * @return ready **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getReady() { return ready; } @@ -75,9 +98,7 @@ public V1EndpointConditions serving(Boolean serving) { * 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. * @return serving **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getServing() { return serving; } @@ -98,9 +119,7 @@ public V1EndpointConditions terminating(Boolean terminating) { * 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. * @return terminating **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getTerminating() { return terminating; } @@ -111,8 +130,9 @@ public void setTerminating(Boolean terminating) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +150,6 @@ public int hashCode() { return Objects.hash(ready, serving, terminating); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +165,96 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ready"); + openapiFields.add("serving"); + openapiFields.add("terminating"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EndpointConditions + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EndpointConditions.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EndpointConditions is not found in the empty JSON string", V1EndpointConditions.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EndpointConditions.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EndpointConditions` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EndpointConditions.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EndpointConditions' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EndpointConditions.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EndpointConditions value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EndpointConditions read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EndpointConditions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointConditions + * @throws IOException if the JSON string is invalid with respect to V1EndpointConditions + */ + public static V1EndpointConditions fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EndpointConditions.class); + } + + /** + * Convert an instance of V1EndpointConditions to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java index 21770f88e8..cc0cac10ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ForZone; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EndpointHints provides hints describing how an endpoint should be consumed. */ @@ -34,8 +57,10 @@ public class V1EndpointHints { public static final String SERIALIZED_NAME_FOR_ZONES = "forZones"; @SerializedName(SERIALIZED_NAME_FOR_ZONES) - private List forZones = null; + private List forZones; + public V1EndpointHints() { + } public V1EndpointHints forZones(List forZones) { @@ -55,9 +80,7 @@ public V1EndpointHints addForZonesItem(V1ForZone forZonesItem) { * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. * @return forZones **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.") - + @jakarta.annotation.Nullable public List getForZones() { return forZones; } @@ -68,8 +91,9 @@ public void setForZones(List forZones) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(forZones); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("forZones"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EndpointHints + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EndpointHints.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EndpointHints is not found in the empty JSON string", V1EndpointHints.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EndpointHints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EndpointHints` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("forZones") != null && !jsonObj.get("forZones").isJsonNull()) { + JsonArray jsonArrayforZones = jsonObj.getAsJsonArray("forZones"); + if (jsonArrayforZones != null) { + // ensure the json data is an array + if (!jsonObj.get("forZones").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `forZones` to be an array in the JSON string but got `%s`", jsonObj.get("forZones").toString())); + } + + // validate the optional field `forZones` (array) + for (int i = 0; i < jsonArrayforZones.size(); i++) { + V1ForZone.validateJsonObject(jsonArrayforZones.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EndpointHints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EndpointHints' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EndpointHints.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EndpointHints value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EndpointHints read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EndpointHints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointHints + * @throws IOException if the JSON string is invalid with respect to V1EndpointHints + */ + public static V1EndpointHints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EndpointHints.class); + } + + /** + * Convert an instance of V1EndpointHints to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java index d185af77f3..1dead55139 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort; import io.kubernetes.client.openapi.models.V1Endpoint; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -56,8 +79,10 @@ public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesOb public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; + public V1EndpointSlice() { + } public V1EndpointSlice addressType(String addressType) { @@ -69,8 +94,7 @@ public V1EndpointSlice addressType(String addressType) { * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. * @return addressType **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getAddressType() { return addressType; } @@ -91,9 +115,7 @@ public V1EndpointSlice apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -111,6 +133,9 @@ public V1EndpointSlice endpoints(List endpoints) { } public V1EndpointSlice addEndpointsItem(V1Endpoint endpointsItem) { + if (this.endpoints == null) { + this.endpoints = new ArrayList<>(); + } this.endpoints.add(endpointsItem); return this; } @@ -119,8 +144,7 @@ public V1EndpointSlice addEndpointsItem(V1Endpoint endpointsItem) { * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. * @return endpoints **/ - @ApiModelProperty(required = true, value = "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.") - + @jakarta.annotation.Nonnull public List getEndpoints() { return endpoints; } @@ -141,9 +165,7 @@ public V1EndpointSlice kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -164,9 +186,7 @@ public V1EndpointSlice metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -195,9 +215,7 @@ public V1EndpointSlice addPortsItem(DiscoveryV1EndpointPort portsItem) { * 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. * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -208,8 +226,9 @@ public void setPorts(List ports) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -230,7 +249,6 @@ public int hashCode() { return Objects.hash(addressType, apiVersion, endpoints, kind, metadata, ports); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -249,11 +267,145 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("addressType"); + openapiFields.add("apiVersion"); + openapiFields.add("endpoints"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("ports"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("addressType"); + openapiRequiredFields.add("endpoints"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EndpointSlice + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EndpointSlice.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EndpointSlice is not found in the empty JSON string", V1EndpointSlice.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EndpointSlice.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EndpointSlice` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1EndpointSlice.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("addressType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `addressType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressType").toString())); + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("endpoints").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `endpoints` to be an array in the JSON string but got `%s`", jsonObj.get("endpoints").toString())); + } + + JsonArray jsonArrayendpoints = jsonObj.getAsJsonArray("endpoints"); + // validate the required field `endpoints` (array) + for (int i = 0; i < jsonArrayendpoints.size(); i++) { + V1Endpoint.validateJsonObject(jsonArrayendpoints.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + DiscoveryV1EndpointPort.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EndpointSlice.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EndpointSlice' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EndpointSlice.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EndpointSlice value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EndpointSlice read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EndpointSlice given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointSlice + * @throws IOException if the JSON string is invalid with respect to V1EndpointSlice + */ + public static V1EndpointSlice fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EndpointSlice.class); + } + + /** + * Convert an instance of V1EndpointSlice to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java index 9e02626e12..7c6af52060 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1EndpointSlice; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EndpointSliceList represents a list of endpoint slices */ @@ -49,6 +72,8 @@ public class V1EndpointSliceList implements io.kubernetes.client.common.Kubernet @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1EndpointSliceList() { + } public V1EndpointSliceList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1EndpointSliceList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1EndpointSliceList items(List items) { } public V1EndpointSliceList addItemsItem(V1EndpointSlice itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1EndpointSliceList addItemsItem(V1EndpointSlice itemsItem) { * items is the list of endpoint slices * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of endpoint slices") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1EndpointSliceList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1EndpointSliceList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EndpointSliceList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EndpointSliceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EndpointSliceList is not found in the empty JSON string", V1EndpointSliceList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EndpointSliceList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EndpointSliceList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1EndpointSliceList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1EndpointSlice.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EndpointSliceList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EndpointSliceList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EndpointSliceList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EndpointSliceList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EndpointSliceList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EndpointSliceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointSliceList + * @throws IOException if the JSON string is invalid with respect to V1EndpointSliceList + */ + public static V1EndpointSliceList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EndpointSliceList.class); + } + + /** + * Convert an instance of V1EndpointSliceList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java index 3d75e50d0f..588f3a812c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.CoreV1EndpointPort; import io.kubernetes.client.openapi.models.V1EndpointAddress; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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 ] */ @@ -35,16 +58,18 @@ public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) - private List addresses = null; + private List addresses; public static final String SERIALIZED_NAME_NOT_READY_ADDRESSES = "notReadyAddresses"; @SerializedName(SERIALIZED_NAME_NOT_READY_ADDRESSES) - private List notReadyAddresses = null; + private List notReadyAddresses; public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; + public V1EndpointSubset() { + } public V1EndpointSubset addresses(List addresses) { @@ -64,9 +89,7 @@ public V1EndpointSubset addAddressesItem(V1EndpointAddress addressesItem) { * 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. * @return addresses **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getAddresses() { return addresses; } @@ -95,9 +118,7 @@ public V1EndpointSubset addNotReadyAddressesItem(V1EndpointAddress notReadyAddre * 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. * @return notReadyAddresses **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getNotReadyAddresses() { return notReadyAddresses; } @@ -126,9 +147,7 @@ public V1EndpointSubset addPortsItem(CoreV1EndpointPort portsItem) { * Port numbers available on the related IP addresses. * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Port numbers available on the related IP addresses.") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -139,8 +158,9 @@ public void setPorts(List ports) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +178,6 @@ public int hashCode() { return Objects.hash(addresses, notReadyAddresses, ports); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +193,138 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("addresses"); + openapiFields.add("notReadyAddresses"); + openapiFields.add("ports"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EndpointSubset + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EndpointSubset.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EndpointSubset is not found in the empty JSON string", V1EndpointSubset.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EndpointSubset.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EndpointSubset` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("addresses") != null && !jsonObj.get("addresses").isJsonNull()) { + JsonArray jsonArrayaddresses = jsonObj.getAsJsonArray("addresses"); + if (jsonArrayaddresses != null) { + // ensure the json data is an array + if (!jsonObj.get("addresses").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `addresses` to be an array in the JSON string but got `%s`", jsonObj.get("addresses").toString())); + } + + // validate the optional field `addresses` (array) + for (int i = 0; i < jsonArrayaddresses.size(); i++) { + V1EndpointAddress.validateJsonObject(jsonArrayaddresses.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("notReadyAddresses") != null && !jsonObj.get("notReadyAddresses").isJsonNull()) { + JsonArray jsonArraynotReadyAddresses = jsonObj.getAsJsonArray("notReadyAddresses"); + if (jsonArraynotReadyAddresses != null) { + // ensure the json data is an array + if (!jsonObj.get("notReadyAddresses").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `notReadyAddresses` to be an array in the JSON string but got `%s`", jsonObj.get("notReadyAddresses").toString())); + } + + // validate the optional field `notReadyAddresses` (array) + for (int i = 0; i < jsonArraynotReadyAddresses.size(); i++) { + V1EndpointAddress.validateJsonObject(jsonArraynotReadyAddresses.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + CoreV1EndpointPort.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EndpointSubset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EndpointSubset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EndpointSubset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EndpointSubset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EndpointSubset read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EndpointSubset given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointSubset + * @throws IOException if the JSON string is invalid with respect to V1EndpointSubset + */ + public static V1EndpointSubset fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EndpointSubset.class); + } + + /** + * Convert an instance of V1EndpointSubset to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java index 80afbed124..9bb12fff38 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1EndpointSubset; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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}] }, ] */ @@ -47,8 +70,10 @@ public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject public static final String SERIALIZED_NAME_SUBSETS = "subsets"; @SerializedName(SERIALIZED_NAME_SUBSETS) - private List subsets = null; + private List subsets; + public V1Endpoints() { + } public V1Endpoints apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1Endpoints apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -83,9 +106,7 @@ public V1Endpoints kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -106,9 +127,7 @@ public V1Endpoints metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -137,9 +156,7 @@ public V1Endpoints addSubsetsItem(V1EndpointSubset subsetsItem) { * 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. * @return subsets **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getSubsets() { return subsets; } @@ -150,8 +167,9 @@ public void setSubsets(List subsets) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, subsets); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("subsets"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Endpoints + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Endpoints.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Endpoints is not found in the empty JSON string", V1Endpoints.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Endpoints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Endpoints` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if (jsonObj.get("subsets") != null && !jsonObj.get("subsets").isJsonNull()) { + JsonArray jsonArraysubsets = jsonObj.getAsJsonArray("subsets"); + if (jsonArraysubsets != null) { + // ensure the json data is an array + if (!jsonObj.get("subsets").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `subsets` to be an array in the JSON string but got `%s`", jsonObj.get("subsets").toString())); + } + + // validate the optional field `subsets` (array) + for (int i = 0; i < jsonArraysubsets.size(); i++) { + V1EndpointSubset.validateJsonObject(jsonArraysubsets.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Endpoints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Endpoints' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Endpoints.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Endpoints value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Endpoints read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Endpoints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Endpoints + * @throws IOException if the JSON string is invalid with respect to V1Endpoints + */ + public static V1Endpoints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Endpoints.class); + } + + /** + * Convert an instance of V1Endpoints to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java index 4a6c6eab2b..7d26d09914 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Endpoints; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EndpointsList is a list of endpoints. */ @@ -49,6 +72,8 @@ public class V1EndpointsList implements io.kubernetes.client.common.KubernetesLi @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1EndpointsList() { + } public V1EndpointsList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1EndpointsList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1EndpointsList items(List items) { } public V1EndpointsList addItemsItem(V1Endpoints itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1EndpointsList addItemsItem(V1Endpoints itemsItem) { * List of endpoints. * @return items **/ - @ApiModelProperty(required = true, value = "List of endpoints.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1EndpointsList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1EndpointsList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EndpointsList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EndpointsList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EndpointsList is not found in the empty JSON string", V1EndpointsList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EndpointsList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EndpointsList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1EndpointsList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Endpoints.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EndpointsList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EndpointsList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EndpointsList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EndpointsList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EndpointsList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EndpointsList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EndpointsList + * @throws IOException if the JSON string is invalid with respect to V1EndpointsList + */ + public static V1EndpointsList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EndpointsList.class); + } + + /** + * Convert an instance of V1EndpointsList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java index 68a5715da8..f05a0c0fbf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ConfigMapEnvSource; import io.kubernetes.client.openapi.models.V1SecretEnvSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EnvFromSource represents the source of a set of ConfigMaps */ @@ -43,6 +66,8 @@ public class V1EnvFromSource { @SerializedName(SERIALIZED_NAME_SECRET_REF) private V1SecretEnvSource secretRef; + public V1EnvFromSource() { + } public V1EnvFromSource configMapRef(V1ConfigMapEnvSource configMapRef) { @@ -54,9 +79,7 @@ public V1EnvFromSource configMapRef(V1ConfigMapEnvSource configMapRef) { * Get configMapRef * @return configMapRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ConfigMapEnvSource getConfigMapRef() { return configMapRef; } @@ -77,9 +100,7 @@ public V1EnvFromSource prefix(String prefix) { * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. * @return prefix **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.") - + @jakarta.annotation.Nullable public String getPrefix() { return prefix; } @@ -100,9 +121,7 @@ public V1EnvFromSource secretRef(V1SecretEnvSource secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretEnvSource getSecretRef() { return secretRef; } @@ -113,8 +132,9 @@ public void setSecretRef(V1SecretEnvSource secretRef) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -132,7 +152,6 @@ public int hashCode() { return Objects.hash(configMapRef, prefix, secretRef); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -148,11 +167,107 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("configMapRef"); + openapiFields.add("prefix"); + openapiFields.add("secretRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EnvFromSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EnvFromSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EnvFromSource is not found in the empty JSON string", V1EnvFromSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EnvFromSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EnvFromSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `configMapRef` + if (jsonObj.get("configMapRef") != null && !jsonObj.get("configMapRef").isJsonNull()) { + V1ConfigMapEnvSource.validateJsonObject(jsonObj.getAsJsonObject("configMapRef")); + } + if ((jsonObj.get("prefix") != null && !jsonObj.get("prefix").isJsonNull()) && !jsonObj.get("prefix").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `prefix` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prefix").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1SecretEnvSource.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EnvFromSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EnvFromSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EnvFromSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EnvFromSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EnvFromSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EnvFromSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EnvFromSource + * @throws IOException if the JSON string is invalid with respect to V1EnvFromSource + */ + public static V1EnvFromSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EnvFromSource.class); + } + + /** + * Convert an instance of V1EnvFromSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java index 5a16a978b7..dc49585808 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1EnvVarSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EnvVar represents an environment variable present in a Container. */ @@ -42,6 +65,8 @@ public class V1EnvVar { @SerializedName(SERIALIZED_NAME_VALUE_FROM) private V1EnvVarSource valueFrom; + public V1EnvVar() { + } public V1EnvVar name(String name) { @@ -53,8 +78,7 @@ public V1EnvVar name(String name) { * Name of the environment variable. Must be a C_IDENTIFIER. * @return name **/ - @ApiModelProperty(required = true, value = "Name of the environment variable. Must be a C_IDENTIFIER.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -75,9 +99,7 @@ public V1EnvVar value(String value) { * 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 \"\". * @return value **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 \"\".") - + @jakarta.annotation.Nullable public String getValue() { return value; } @@ -98,9 +120,7 @@ public V1EnvVar valueFrom(V1EnvVarSource valueFrom) { * Get valueFrom * @return valueFrom **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1EnvVarSource getValueFrom() { return valueFrom; } @@ -111,8 +131,9 @@ public void setValueFrom(V1EnvVarSource valueFrom) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +151,6 @@ public int hashCode() { return Objects.hash(name, value, valueFrom); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +166,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("value"); + openapiFields.add("valueFrom"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EnvVar + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EnvVar.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EnvVar is not found in the empty JSON string", V1EnvVar.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EnvVar.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EnvVar` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1EnvVar.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // validate the optional field `valueFrom` + if (jsonObj.get("valueFrom") != null && !jsonObj.get("valueFrom").isJsonNull()) { + V1EnvVarSource.validateJsonObject(jsonObj.getAsJsonObject("valueFrom")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EnvVar.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EnvVar' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EnvVar.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EnvVar value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EnvVar read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EnvVar given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EnvVar + * @throws IOException if the JSON string is invalid with respect to V1EnvVar + */ + public static V1EnvVar fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EnvVar.class); + } + + /** + * Convert an instance of V1EnvVar to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java index 3a5dd5c59a..0764592c0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java @@ -23,10 +23,33 @@ import io.kubernetes.client.openapi.models.V1ObjectFieldSelector; import io.kubernetes.client.openapi.models.V1ResourceFieldSelector; import io.kubernetes.client.openapi.models.V1SecretKeySelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EnvVarSource represents a source for the value of an EnvVar. */ @@ -49,6 +72,8 @@ public class V1EnvVarSource { @SerializedName(SERIALIZED_NAME_SECRET_KEY_REF) private V1SecretKeySelector secretKeyRef; + public V1EnvVarSource() { + } public V1EnvVarSource configMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { @@ -60,9 +85,7 @@ public V1EnvVarSource configMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { * Get configMapKeyRef * @return configMapKeyRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ConfigMapKeySelector getConfigMapKeyRef() { return configMapKeyRef; } @@ -83,9 +106,7 @@ public V1EnvVarSource fieldRef(V1ObjectFieldSelector fieldRef) { * Get fieldRef * @return fieldRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectFieldSelector getFieldRef() { return fieldRef; } @@ -106,9 +127,7 @@ public V1EnvVarSource resourceFieldRef(V1ResourceFieldSelector resourceFieldRef) * Get resourceFieldRef * @return resourceFieldRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef; } @@ -129,9 +148,7 @@ public V1EnvVarSource secretKeyRef(V1SecretKeySelector secretKeyRef) { * Get secretKeyRef * @return secretKeyRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretKeySelector getSecretKeyRef() { return secretKeyRef; } @@ -142,8 +159,9 @@ public void setSecretKeyRef(V1SecretKeySelector secretKeyRef) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -162,7 +180,6 @@ public int hashCode() { return Objects.hash(configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -179,11 +196,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("configMapKeyRef"); + openapiFields.add("fieldRef"); + openapiFields.add("resourceFieldRef"); + openapiFields.add("secretKeyRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EnvVarSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EnvVarSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EnvVarSource is not found in the empty JSON string", V1EnvVarSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EnvVarSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EnvVarSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `configMapKeyRef` + if (jsonObj.get("configMapKeyRef") != null && !jsonObj.get("configMapKeyRef").isJsonNull()) { + V1ConfigMapKeySelector.validateJsonObject(jsonObj.getAsJsonObject("configMapKeyRef")); + } + // validate the optional field `fieldRef` + if (jsonObj.get("fieldRef") != null && !jsonObj.get("fieldRef").isJsonNull()) { + V1ObjectFieldSelector.validateJsonObject(jsonObj.getAsJsonObject("fieldRef")); + } + // validate the optional field `resourceFieldRef` + if (jsonObj.get("resourceFieldRef") != null && !jsonObj.get("resourceFieldRef").isJsonNull()) { + V1ResourceFieldSelector.validateJsonObject(jsonObj.getAsJsonObject("resourceFieldRef")); + } + // validate the optional field `secretKeyRef` + if (jsonObj.get("secretKeyRef") != null && !jsonObj.get("secretKeyRef").isJsonNull()) { + V1SecretKeySelector.validateJsonObject(jsonObj.getAsJsonObject("secretKeyRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EnvVarSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EnvVarSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EnvVarSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EnvVarSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EnvVarSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EnvVarSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EnvVarSource + * @throws IOException if the JSON string is invalid with respect to V1EnvVarSource + */ + public static V1EnvVarSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EnvVarSource.class); + } + + /** + * Convert an instance of V1EnvVarSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java index 84045d833a..3ec59b035a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java @@ -29,12 +29,35 @@ import io.kubernetes.client.openapi.models.V1SecurityContext; import io.kubernetes.client.openapi.models.V1VolumeDevice; import io.kubernetes.client.openapi.models.V1VolumeMount; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -43,19 +66,19 @@ public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) - private List args = null; + private List args; public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) - private List command = null; + private List command; public static final String SERIALIZED_NAME_ENV = "env"; @SerializedName(SERIALIZED_NAME_ENV) - private List env = null; + private List env; public static final String SERIALIZED_NAME_ENV_FROM = "envFrom"; @SerializedName(SERIALIZED_NAME_ENV_FROM) - private List envFrom = null; + private List envFrom; public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) @@ -79,7 +102,7 @@ public class V1EphemeralContainer { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; public static final String SERIALIZED_NAME_READINESS_PROBE = "readinessProbe"; @SerializedName(SERIALIZED_NAME_READINESS_PROBE) @@ -87,7 +110,7 @@ public class V1EphemeralContainer { public static final String SERIALIZED_NAME_RESIZE_POLICY = "resizePolicy"; @SerializedName(SERIALIZED_NAME_RESIZE_POLICY) - private List resizePolicy = null; + private List resizePolicy; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) @@ -131,16 +154,18 @@ public class V1EphemeralContainer { public static final String SERIALIZED_NAME_VOLUME_DEVICES = "volumeDevices"; @SerializedName(SERIALIZED_NAME_VOLUME_DEVICES) - private List volumeDevices = null; + private List volumeDevices; public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts"; @SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS) - private List volumeMounts = null; + private List volumeMounts; public static final String SERIALIZED_NAME_WORKING_DIR = "workingDir"; @SerializedName(SERIALIZED_NAME_WORKING_DIR) private String workingDir; + public V1EphemeralContainer() { + } public V1EphemeralContainer args(List args) { @@ -160,9 +185,7 @@ public V1EphemeralContainer addArgsItem(String argsItem) { * 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 * @return args **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getArgs() { return args; } @@ -191,9 +214,7 @@ public V1EphemeralContainer addCommandItem(String commandItem) { * 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 * @return command **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getCommand() { return command; } @@ -222,9 +243,7 @@ public V1EphemeralContainer addEnvItem(V1EnvVar envItem) { * List of environment variables to set in the container. Cannot be updated. * @return env **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of environment variables to set in the container. Cannot be updated.") - + @jakarta.annotation.Nullable public List getEnv() { return env; } @@ -253,9 +272,7 @@ public V1EphemeralContainer addEnvFromItem(V1EnvFromSource envFromItem) { * 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. * @return envFrom **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getEnvFrom() { return envFrom; } @@ -276,9 +293,7 @@ public V1EphemeralContainer image(String image) { * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images * @return image **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images") - + @jakarta.annotation.Nullable public String getImage() { return image; } @@ -299,9 +314,7 @@ public V1EphemeralContainer imagePullPolicy(String imagePullPolicy) { * 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 * @return imagePullPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getImagePullPolicy() { return imagePullPolicy; } @@ -322,9 +335,7 @@ public V1EphemeralContainer lifecycle(V1Lifecycle lifecycle) { * Get lifecycle * @return lifecycle **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Lifecycle getLifecycle() { return lifecycle; } @@ -345,9 +356,7 @@ public V1EphemeralContainer livenessProbe(V1Probe livenessProbe) { * Get livenessProbe * @return livenessProbe **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Probe getLivenessProbe() { return livenessProbe; } @@ -368,8 +377,7 @@ public V1EphemeralContainer name(String name) { * Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. * @return name **/ - @ApiModelProperty(required = true, value = "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -398,9 +406,7 @@ public V1EphemeralContainer addPortsItem(V1ContainerPort portsItem) { * Ports are not allowed for ephemeral containers. * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Ports are not allowed for ephemeral containers.") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -421,9 +427,7 @@ public V1EphemeralContainer readinessProbe(V1Probe readinessProbe) { * Get readinessProbe * @return readinessProbe **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Probe getReadinessProbe() { return readinessProbe; } @@ -452,9 +456,7 @@ public V1EphemeralContainer addResizePolicyItem(V1ContainerResizePolicy resizePo * Resources resize policy for the container. * @return resizePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resources resize policy for the container.") - + @jakarta.annotation.Nullable public List getResizePolicy() { return resizePolicy; } @@ -475,9 +477,7 @@ public V1EphemeralContainer resources(V1ResourceRequirements resources) { * Get resources * @return resources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceRequirements getResources() { return resources; } @@ -521,9 +521,7 @@ public V1EphemeralContainer securityContext(V1SecurityContext securityContext) { * Get securityContext * @return securityContext **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecurityContext getSecurityContext() { return securityContext; } @@ -544,9 +542,7 @@ public V1EphemeralContainer startupProbe(V1Probe startupProbe) { * Get startupProbe * @return startupProbe **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Probe getStartupProbe() { return startupProbe; } @@ -567,9 +563,7 @@ public V1EphemeralContainer stdin(Boolean stdin) { * 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. * @return stdin **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getStdin() { return stdin; } @@ -590,9 +584,7 @@ public V1EphemeralContainer stdinOnce(Boolean stdinOnce) { * 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 * @return stdinOnce **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getStdinOnce() { return stdinOnce; } @@ -613,9 +605,7 @@ public V1EphemeralContainer targetContainerName(String targetContainerName) { * 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. * @return targetContainerName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getTargetContainerName() { return targetContainerName; } @@ -636,9 +626,7 @@ public V1EphemeralContainer terminationMessagePath(String terminationMessagePath * 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. * @return terminationMessagePath **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getTerminationMessagePath() { return terminationMessagePath; } @@ -659,9 +647,7 @@ public V1EphemeralContainer terminationMessagePolicy(String terminationMessagePo * 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. * @return terminationMessagePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getTerminationMessagePolicy() { return terminationMessagePolicy; } @@ -682,9 +668,7 @@ public V1EphemeralContainer tty(Boolean tty) { * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. * @return tty **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.") - + @jakarta.annotation.Nullable public Boolean getTty() { return tty; } @@ -713,9 +697,7 @@ public V1EphemeralContainer addVolumeDevicesItem(V1VolumeDevice volumeDevicesIte * volumeDevices is the list of block devices to be used by the container. * @return volumeDevices **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeDevices is the list of block devices to be used by the container.") - + @jakarta.annotation.Nullable public List getVolumeDevices() { return volumeDevices; } @@ -744,9 +726,7 @@ public V1EphemeralContainer addVolumeMountsItem(V1VolumeMount volumeMountsItem) * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. * @return volumeMounts **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.") - + @jakarta.annotation.Nullable public List getVolumeMounts() { return volumeMounts; } @@ -767,9 +747,7 @@ public V1EphemeralContainer workingDir(String workingDir) { * 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. * @return workingDir **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getWorkingDir() { return workingDir; } @@ -780,8 +758,9 @@ public void setWorkingDir(String workingDir) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -821,7 +800,6 @@ public int hashCode() { return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, securityContext, startupProbe, stdin, stdinOnce, targetContainerName, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -859,11 +837,266 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("args"); + openapiFields.add("command"); + openapiFields.add("env"); + openapiFields.add("envFrom"); + openapiFields.add("image"); + openapiFields.add("imagePullPolicy"); + openapiFields.add("lifecycle"); + openapiFields.add("livenessProbe"); + openapiFields.add("name"); + openapiFields.add("ports"); + openapiFields.add("readinessProbe"); + openapiFields.add("resizePolicy"); + openapiFields.add("resources"); + openapiFields.add("restartPolicy"); + openapiFields.add("securityContext"); + openapiFields.add("startupProbe"); + openapiFields.add("stdin"); + openapiFields.add("stdinOnce"); + openapiFields.add("targetContainerName"); + openapiFields.add("terminationMessagePath"); + openapiFields.add("terminationMessagePolicy"); + openapiFields.add("tty"); + openapiFields.add("volumeDevices"); + openapiFields.add("volumeMounts"); + openapiFields.add("workingDir"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EphemeralContainer + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EphemeralContainer.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EphemeralContainer is not found in the empty JSON string", V1EphemeralContainer.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EphemeralContainer.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EphemeralContainer` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1EphemeralContainer.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("args") != null && !jsonObj.get("args").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `args` to be an array in the JSON string but got `%s`", jsonObj.get("args").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("command") != null && !jsonObj.get("command").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `command` to be an array in the JSON string but got `%s`", jsonObj.get("command").toString())); + } + if (jsonObj.get("env") != null && !jsonObj.get("env").isJsonNull()) { + JsonArray jsonArrayenv = jsonObj.getAsJsonArray("env"); + if (jsonArrayenv != null) { + // ensure the json data is an array + if (!jsonObj.get("env").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `env` to be an array in the JSON string but got `%s`", jsonObj.get("env").toString())); + } + + // validate the optional field `env` (array) + for (int i = 0; i < jsonArrayenv.size(); i++) { + V1EnvVar.validateJsonObject(jsonArrayenv.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("envFrom") != null && !jsonObj.get("envFrom").isJsonNull()) { + JsonArray jsonArrayenvFrom = jsonObj.getAsJsonArray("envFrom"); + if (jsonArrayenvFrom != null) { + // ensure the json data is an array + if (!jsonObj.get("envFrom").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `envFrom` to be an array in the JSON string but got `%s`", jsonObj.get("envFrom").toString())); + } + + // validate the optional field `envFrom` (array) + for (int i = 0; i < jsonArrayenvFrom.size(); i++) { + V1EnvFromSource.validateJsonObject(jsonArrayenvFrom.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("image") != null && !jsonObj.get("image").isJsonNull()) && !jsonObj.get("image").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image").toString())); + } + if ((jsonObj.get("imagePullPolicy") != null && !jsonObj.get("imagePullPolicy").isJsonNull()) && !jsonObj.get("imagePullPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `imagePullPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("imagePullPolicy").toString())); + } + // validate the optional field `lifecycle` + if (jsonObj.get("lifecycle") != null && !jsonObj.get("lifecycle").isJsonNull()) { + V1Lifecycle.validateJsonObject(jsonObj.getAsJsonObject("lifecycle")); + } + // validate the optional field `livenessProbe` + if (jsonObj.get("livenessProbe") != null && !jsonObj.get("livenessProbe").isJsonNull()) { + V1Probe.validateJsonObject(jsonObj.getAsJsonObject("livenessProbe")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + V1ContainerPort.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `readinessProbe` + if (jsonObj.get("readinessProbe") != null && !jsonObj.get("readinessProbe").isJsonNull()) { + V1Probe.validateJsonObject(jsonObj.getAsJsonObject("readinessProbe")); + } + if (jsonObj.get("resizePolicy") != null && !jsonObj.get("resizePolicy").isJsonNull()) { + JsonArray jsonArrayresizePolicy = jsonObj.getAsJsonArray("resizePolicy"); + if (jsonArrayresizePolicy != null) { + // ensure the json data is an array + if (!jsonObj.get("resizePolicy").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resizePolicy` to be an array in the JSON string but got `%s`", jsonObj.get("resizePolicy").toString())); + } + + // validate the optional field `resizePolicy` (array) + for (int i = 0; i < jsonArrayresizePolicy.size(); i++) { + V1ContainerResizePolicy.validateJsonObject(jsonArrayresizePolicy.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `resources` + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { + V1ResourceRequirements.validateJsonObject(jsonObj.getAsJsonObject("resources")); + } + if ((jsonObj.get("restartPolicy") != null && !jsonObj.get("restartPolicy").isJsonNull()) && !jsonObj.get("restartPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); + } + // validate the optional field `securityContext` + if (jsonObj.get("securityContext") != null && !jsonObj.get("securityContext").isJsonNull()) { + V1SecurityContext.validateJsonObject(jsonObj.getAsJsonObject("securityContext")); + } + // validate the optional field `startupProbe` + if (jsonObj.get("startupProbe") != null && !jsonObj.get("startupProbe").isJsonNull()) { + V1Probe.validateJsonObject(jsonObj.getAsJsonObject("startupProbe")); + } + if ((jsonObj.get("targetContainerName") != null && !jsonObj.get("targetContainerName").isJsonNull()) && !jsonObj.get("targetContainerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `targetContainerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetContainerName").toString())); + } + if ((jsonObj.get("terminationMessagePath") != null && !jsonObj.get("terminationMessagePath").isJsonNull()) && !jsonObj.get("terminationMessagePath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `terminationMessagePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("terminationMessagePath").toString())); + } + if ((jsonObj.get("terminationMessagePolicy") != null && !jsonObj.get("terminationMessagePolicy").isJsonNull()) && !jsonObj.get("terminationMessagePolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `terminationMessagePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("terminationMessagePolicy").toString())); + } + if (jsonObj.get("volumeDevices") != null && !jsonObj.get("volumeDevices").isJsonNull()) { + JsonArray jsonArrayvolumeDevices = jsonObj.getAsJsonArray("volumeDevices"); + if (jsonArrayvolumeDevices != null) { + // ensure the json data is an array + if (!jsonObj.get("volumeDevices").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeDevices` to be an array in the JSON string but got `%s`", jsonObj.get("volumeDevices").toString())); + } + + // validate the optional field `volumeDevices` (array) + for (int i = 0; i < jsonArrayvolumeDevices.size(); i++) { + V1VolumeDevice.validateJsonObject(jsonArrayvolumeDevices.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("volumeMounts") != null && !jsonObj.get("volumeMounts").isJsonNull()) { + JsonArray jsonArrayvolumeMounts = jsonObj.getAsJsonArray("volumeMounts"); + if (jsonArrayvolumeMounts != null) { + // ensure the json data is an array + if (!jsonObj.get("volumeMounts").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeMounts` to be an array in the JSON string but got `%s`", jsonObj.get("volumeMounts").toString())); + } + + // validate the optional field `volumeMounts` (array) + for (int i = 0; i < jsonArrayvolumeMounts.size(); i++) { + V1VolumeMount.validateJsonObject(jsonArrayvolumeMounts.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("workingDir") != null && !jsonObj.get("workingDir").isJsonNull()) && !jsonObj.get("workingDir").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `workingDir` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workingDir").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EphemeralContainer.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EphemeralContainer' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EphemeralContainer.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EphemeralContainer value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EphemeralContainer read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EphemeralContainer given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EphemeralContainer + * @throws IOException if the JSON string is invalid with respect to V1EphemeralContainer + */ + public static V1EphemeralContainer fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EphemeralContainer.class); + } + + /** + * Convert an instance of V1EphemeralContainer to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java index 87ab1546f5..3b9294b794 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents an ephemeral volume that is handled by a normal storage driver. */ @@ -34,6 +57,8 @@ public class V1EphemeralVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE) private V1PersistentVolumeClaimTemplate volumeClaimTemplate; + public V1EphemeralVolumeSource() { + } public V1EphemeralVolumeSource volumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { @@ -45,9 +70,7 @@ public V1EphemeralVolumeSource volumeClaimTemplate(V1PersistentVolumeClaimTempla * Get volumeClaimTemplate * @return volumeClaimTemplate **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PersistentVolumeClaimTemplate getVolumeClaimTemplate() { return volumeClaimTemplate; } @@ -58,8 +81,9 @@ public void setVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTe } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(volumeClaimTemplate); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("volumeClaimTemplate"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EphemeralVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EphemeralVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EphemeralVolumeSource is not found in the empty JSON string", V1EphemeralVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EphemeralVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EphemeralVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `volumeClaimTemplate` + if (jsonObj.get("volumeClaimTemplate") != null && !jsonObj.get("volumeClaimTemplate").isJsonNull()) { + V1PersistentVolumeClaimTemplate.validateJsonObject(jsonObj.getAsJsonObject("volumeClaimTemplate")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EphemeralVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EphemeralVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EphemeralVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EphemeralVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EphemeralVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EphemeralVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EphemeralVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1EphemeralVolumeSource + */ + public static V1EphemeralVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EphemeralVolumeSource.class); + } + + /** + * Convert an instance of V1EphemeralVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java index 9aa196c27a..7f5ae71cbe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * EventSource contains information for an event. */ @@ -37,6 +60,8 @@ public class V1EventSource { @SerializedName(SERIALIZED_NAME_HOST) private String host; + public V1EventSource() { + } public V1EventSource component(String component) { @@ -48,9 +73,7 @@ public V1EventSource component(String component) { * Component from which the event is generated. * @return component **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Component from which the event is generated.") - + @jakarta.annotation.Nullable public String getComponent() { return component; } @@ -71,9 +94,7 @@ public V1EventSource host(String host) { * Node name on which the event is generated. * @return host **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Node name on which the event is generated.") - + @jakarta.annotation.Nullable public String getHost() { return host; } @@ -84,8 +105,9 @@ public void setHost(String host) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(component, host); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("component"); + openapiFields.add("host"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1EventSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1EventSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1EventSource is not found in the empty JSON string", V1EventSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1EventSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1EventSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("component") != null && !jsonObj.get("component").isJsonNull()) && !jsonObj.get("component").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `component` to be a primitive type in the JSON string but got `%s`", jsonObj.get("component").toString())); + } + if ((jsonObj.get("host") != null && !jsonObj.get("host").isJsonNull()) && !jsonObj.get("host").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1EventSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EventSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EventSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EventSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EventSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EventSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EventSource + * @throws IOException if the JSON string is invalid with respect to V1EventSource + */ + public static V1EventSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EventSource.class); + } + + /** + * Convert an instance of V1EventSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java index 4453085f7c..f3a486f56d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DeleteOptions; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions. */ @@ -47,6 +70,8 @@ public class V1Eviction implements io.kubernetes.client.common.KubernetesObject @SerializedName(SERIALIZED_NAME_METADATA) private V1ObjectMeta metadata; + public V1Eviction() { + } public V1Eviction apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1Eviction apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1Eviction deleteOptions(V1DeleteOptions deleteOptions) { * Get deleteOptions * @return deleteOptions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DeleteOptions getDeleteOptions() { return deleteOptions; } @@ -104,9 +125,7 @@ public V1Eviction kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -127,9 +146,7 @@ public V1Eviction metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -140,8 +157,9 @@ public void setMetadata(V1ObjectMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, deleteOptions, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("deleteOptions"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Eviction + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Eviction.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Eviction is not found in the empty JSON string", V1Eviction.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Eviction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Eviction` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // validate the optional field `deleteOptions` + if (jsonObj.get("deleteOptions") != null && !jsonObj.get("deleteOptions").isJsonNull()) { + V1DeleteOptions.validateJsonObject(jsonObj.getAsJsonObject("deleteOptions")); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Eviction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Eviction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Eviction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Eviction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Eviction read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Eviction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Eviction + * @throws IOException if the JSON string is invalid with respect to V1Eviction + */ + public static V1Eviction fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Eviction.class); + } + + /** + * Convert an instance of V1Eviction to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java index 3d3f5c8c17..1d6efd4a88 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ExecAction describes a \"run in container\" action. */ @@ -33,8 +56,10 @@ public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) - private List command = null; + private List command; + public V1ExecAction() { + } public V1ExecAction command(List command) { @@ -54,9 +79,7 @@ public V1ExecAction addCommandItem(String commandItem) { * 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. * @return command **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getCommand() { return command; } @@ -67,8 +90,9 @@ public void setCommand(List command) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -84,7 +108,6 @@ public int hashCode() { return Objects.hash(command); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -98,11 +121,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("command"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ExecAction + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ExecAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ExecAction is not found in the empty JSON string", V1ExecAction.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ExecAction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ExecAction` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("command") != null && !jsonObj.get("command").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `command` to be an array in the JSON string but got `%s`", jsonObj.get("command").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ExecAction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ExecAction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ExecAction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ExecAction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ExecAction read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ExecAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ExecAction + * @throws IOException if the JSON string is invalid with respect to V1ExecAction + */ + public static V1ExecAction fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ExecAction.class); + } + + /** + * Convert an instance of V1ExecAction to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java index 589ffbb15d..d985c25a22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ExternalDocumentation allows referencing an external resource for extended documentation. */ @@ -37,6 +60,8 @@ public class V1ExternalDocumentation { @SerializedName(SERIALIZED_NAME_URL) private String url; + public V1ExternalDocumentation() { + } public V1ExternalDocumentation description(String description) { @@ -48,9 +73,7 @@ public V1ExternalDocumentation description(String description) { * Get description * @return description **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getDescription() { return description; } @@ -71,9 +94,7 @@ public V1ExternalDocumentation url(String url) { * Get url * @return url **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getUrl() { return url; } @@ -84,8 +105,9 @@ public void setUrl(String url) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(description, url); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("description"); + openapiFields.add("url"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ExternalDocumentation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ExternalDocumentation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ExternalDocumentation is not found in the empty JSON string", V1ExternalDocumentation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ExternalDocumentation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ExternalDocumentation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ExternalDocumentation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ExternalDocumentation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ExternalDocumentation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ExternalDocumentation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ExternalDocumentation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ExternalDocumentation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ExternalDocumentation + * @throws IOException if the JSON string is invalid with respect to V1ExternalDocumentation + */ + public static V1ExternalDocumentation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ExternalDocumentation.class); + } + + /** + * Convert an instance of V1ExternalDocumentation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java index 79ff3a7fad..439d31cdc0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -45,12 +68,14 @@ public class V1FCVolumeSource { public static final String SERIALIZED_NAME_TARGET_W_W_NS = "targetWWNs"; @SerializedName(SERIALIZED_NAME_TARGET_W_W_NS) - private List targetWWNs = null; + private List targetWWNs; public static final String SERIALIZED_NAME_WWIDS = "wwids"; @SerializedName(SERIALIZED_NAME_WWIDS) - private List wwids = null; + private List wwids; + public V1FCVolumeSource() { + } public V1FCVolumeSource fsType(String fsType) { @@ -62,9 +87,7 @@ public V1FCVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -85,9 +108,7 @@ public V1FCVolumeSource lun(Integer lun) { * lun is Optional: FC target lun number * @return lun **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "lun is Optional: FC target lun number") - + @jakarta.annotation.Nullable public Integer getLun() { return lun; } @@ -108,9 +129,7 @@ public V1FCVolumeSource readOnly(Boolean readOnly) { * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -139,9 +158,7 @@ public V1FCVolumeSource addTargetWWNsItem(String targetWWNsItem) { * targetWWNs is Optional: FC target worldwide names (WWNs) * @return targetWWNs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "targetWWNs is Optional: FC target worldwide names (WWNs)") - + @jakarta.annotation.Nullable public List getTargetWWNs() { return targetWWNs; } @@ -170,9 +187,7 @@ public V1FCVolumeSource addWwidsItem(String wwidsItem) { * wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. * @return wwids **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.") - + @jakarta.annotation.Nullable public List getWwids() { return wwids; } @@ -183,8 +198,9 @@ public void setWwids(List wwids) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -204,7 +220,6 @@ public int hashCode() { return Objects.hash(fsType, lun, readOnly, targetWWNs, wwids); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -222,11 +237,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("lun"); + openapiFields.add("readOnly"); + openapiFields.add("targetWWNs"); + openapiFields.add("wwids"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1FCVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1FCVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1FCVolumeSource is not found in the empty JSON string", V1FCVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1FCVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FCVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("targetWWNs") != null && !jsonObj.get("targetWWNs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `targetWWNs` to be an array in the JSON string but got `%s`", jsonObj.get("targetWWNs").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("wwids") != null && !jsonObj.get("wwids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `wwids` to be an array in the JSON string but got `%s`", jsonObj.get("wwids").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1FCVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1FCVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1FCVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1FCVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1FCVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1FCVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FCVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1FCVolumeSource + */ + public static V1FCVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1FCVolumeSource.class); + } + + /** + * Convert an instance of V1FCVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java index 001af9fd64..d6b47197f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. @@ -43,7 +65,7 @@ public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_OPTIONS = "options"; @SerializedName(SERIALIZED_NAME_OPTIONS) - private Map options = null; + private Map options = new HashMap<>(); public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) @@ -53,6 +75,8 @@ public class V1FlexPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_SECRET_REF) private V1SecretReference secretRef; + public V1FlexPersistentVolumeSource() { + } public V1FlexPersistentVolumeSource driver(String driver) { @@ -64,8 +88,7 @@ public V1FlexPersistentVolumeSource driver(String driver) { * driver is the name of the driver to use for this volume. * @return driver **/ - @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume.") - + @jakarta.annotation.Nonnull public String getDriver() { return driver; } @@ -86,9 +109,7 @@ public V1FlexPersistentVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -117,9 +138,7 @@ public V1FlexPersistentVolumeSource putOptionsItem(String key, String optionsIte * options is Optional: this field holds extra command options if any. * @return options **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "options is Optional: this field holds extra command options if any.") - + @jakarta.annotation.Nullable public Map getOptions() { return options; } @@ -140,9 +159,7 @@ public V1FlexPersistentVolumeSource readOnly(Boolean readOnly) { * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -163,9 +180,7 @@ public V1FlexPersistentVolumeSource secretRef(V1SecretReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getSecretRef() { return secretRef; } @@ -176,8 +191,9 @@ public void setSecretRef(V1SecretReference secretRef) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -197,7 +213,6 @@ public int hashCode() { return Objects.hash(driver, fsType, options, readOnly, secretRef); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -215,11 +230,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("driver"); + openapiFields.add("fsType"); + openapiFields.add("options"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("driver"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1FlexPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1FlexPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlexPersistentVolumeSource is not found in the empty JSON string", V1FlexPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1FlexPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlexPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1FlexPersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1FlexPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1FlexPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1FlexPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1FlexPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1FlexPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1FlexPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlexPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1FlexPersistentVolumeSource + */ + public static V1FlexPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1FlexPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1FlexPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java index 2637558b06..8bea59d00f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. @@ -43,7 +65,7 @@ public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_OPTIONS = "options"; @SerializedName(SERIALIZED_NAME_OPTIONS) - private Map options = null; + private Map options = new HashMap<>(); public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) @@ -53,6 +75,8 @@ public class V1FlexVolumeSource { @SerializedName(SERIALIZED_NAME_SECRET_REF) private V1LocalObjectReference secretRef; + public V1FlexVolumeSource() { + } public V1FlexVolumeSource driver(String driver) { @@ -64,8 +88,7 @@ public V1FlexVolumeSource driver(String driver) { * driver is the name of the driver to use for this volume. * @return driver **/ - @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume.") - + @jakarta.annotation.Nonnull public String getDriver() { return driver; } @@ -86,9 +109,7 @@ public V1FlexVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -117,9 +138,7 @@ public V1FlexVolumeSource putOptionsItem(String key, String optionsItem) { * options is Optional: this field holds extra command options if any. * @return options **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "options is Optional: this field holds extra command options if any.") - + @jakarta.annotation.Nullable public Map getOptions() { return options; } @@ -140,9 +159,7 @@ public V1FlexVolumeSource readOnly(Boolean readOnly) { * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -163,9 +180,7 @@ public V1FlexVolumeSource secretRef(V1LocalObjectReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -176,8 +191,9 @@ public void setSecretRef(V1LocalObjectReference secretRef) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -197,7 +213,6 @@ public int hashCode() { return Objects.hash(driver, fsType, options, readOnly, secretRef); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -215,11 +230,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("driver"); + openapiFields.add("fsType"); + openapiFields.add("options"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("driver"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1FlexVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1FlexVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlexVolumeSource is not found in the empty JSON string", V1FlexVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1FlexVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlexVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1FlexVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1LocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1FlexVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1FlexVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1FlexVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1FlexVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1FlexVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1FlexVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlexVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1FlexVolumeSource + */ + public static V1FlexVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1FlexVolumeSource.class); + } + + /** + * Convert an instance of V1FlexVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java index 32ff156ad8..5f8e4a8fda 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -37,6 +60,8 @@ public class V1FlockerVolumeSource { @SerializedName(SERIALIZED_NAME_DATASET_U_U_I_D) private String datasetUUID; + public V1FlockerVolumeSource() { + } public V1FlockerVolumeSource datasetName(String datasetName) { @@ -48,9 +73,7 @@ public V1FlockerVolumeSource datasetName(String datasetName) { * datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated * @return datasetName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated") - + @jakarta.annotation.Nullable public String getDatasetName() { return datasetName; } @@ -71,9 +94,7 @@ public V1FlockerVolumeSource datasetUUID(String datasetUUID) { * datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset * @return datasetUUID **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset") - + @jakarta.annotation.Nullable public String getDatasetUUID() { return datasetUUID; } @@ -84,8 +105,9 @@ public void setDatasetUUID(String datasetUUID) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(datasetName, datasetUUID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("datasetName"); + openapiFields.add("datasetUUID"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1FlockerVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1FlockerVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlockerVolumeSource is not found in the empty JSON string", V1FlockerVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1FlockerVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlockerVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("datasetName") != null && !jsonObj.get("datasetName").isJsonNull()) && !jsonObj.get("datasetName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `datasetName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datasetName").toString())); + } + if ((jsonObj.get("datasetUUID") != null && !jsonObj.get("datasetUUID").isJsonNull()) && !jsonObj.get("datasetUUID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `datasetUUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datasetUUID").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1FlockerVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1FlockerVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1FlockerVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1FlockerVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1FlockerVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1FlockerVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FlockerVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1FlockerVolumeSource + */ + public static V1FlockerVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1FlockerVolumeSource.class); + } + + /** + * Convert an instance of V1FlockerVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java index 4faa0ab754..24914ae4d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ForZone provides information about which zones should consume this endpoint. */ @@ -33,6 +56,8 @@ public class V1ForZone { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1ForZone() { + } public V1ForZone name(String name) { @@ -44,8 +69,7 @@ public V1ForZone name(String name) { * name represents the name of the zone. * @return name **/ - @ApiModelProperty(required = true, value = "name represents the name of the zone.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ForZone + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ForZone.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ForZone is not found in the empty JSON string", V1ForZone.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ForZone.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ForZone` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ForZone.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ForZone.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ForZone' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ForZone.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ForZone value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ForZone read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ForZone given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ForZone + * @throws IOException if the JSON string is invalid with respect to V1ForZone + */ + public static V1ForZone fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ForZone.class); + } + + /** + * Convert an instance of V1ForZone to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java index ad0bbe361b..d4c2c47674 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -45,6 +68,8 @@ public class V1GCEPersistentDiskVolumeSource { @SerializedName(SERIALIZED_NAME_READ_ONLY) private Boolean readOnly; + public V1GCEPersistentDiskVolumeSource() { + } public V1GCEPersistentDiskVolumeSource fsType(String fsType) { @@ -56,9 +81,7 @@ public V1GCEPersistentDiskVolumeSource fsType(String fsType) { * 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 * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -79,9 +102,7 @@ public V1GCEPersistentDiskVolumeSource partition(Integer partition) { * 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 * @return partition **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Integer getPartition() { return partition; } @@ -102,8 +123,7 @@ public V1GCEPersistentDiskVolumeSource pdName(String pdName) { * 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 * @return pdName **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getPdName() { return pdName; } @@ -124,9 +144,7 @@ public V1GCEPersistentDiskVolumeSource readOnly(Boolean readOnly) { * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -137,8 +155,9 @@ public void setReadOnly(Boolean readOnly) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +176,6 @@ public int hashCode() { return Objects.hash(fsType, partition, pdName, readOnly); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +192,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("partition"); + openapiFields.add("pdName"); + openapiFields.add("readOnly"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("pdName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1GCEPersistentDiskVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1GCEPersistentDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1GCEPersistentDiskVolumeSource is not found in the empty JSON string", V1GCEPersistentDiskVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1GCEPersistentDiskVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1GCEPersistentDiskVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1GCEPersistentDiskVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("pdName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pdName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pdName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1GCEPersistentDiskVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1GCEPersistentDiskVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1GCEPersistentDiskVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1GCEPersistentDiskVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1GCEPersistentDiskVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1GCEPersistentDiskVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GCEPersistentDiskVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1GCEPersistentDiskVolumeSource + */ + public static V1GCEPersistentDiskVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1GCEPersistentDiskVolumeSource.class); + } + + /** + * Convert an instance of V1GCEPersistentDiskVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java index 64b10f227c..8021d02070 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * V1GRPCAction */ @@ -36,6 +59,8 @@ public class V1GRPCAction { @SerializedName(SERIALIZED_NAME_SERVICE) private String service; + public V1GRPCAction() { + } public V1GRPCAction port(Integer port) { @@ -47,8 +72,7 @@ public V1GRPCAction port(Integer port) { * Port number of the gRPC service. Number must be in the range 1 to 65535. * @return port **/ - @ApiModelProperty(required = true, value = "Port number of the gRPC service. Number must be in the range 1 to 65535.") - + @jakarta.annotation.Nonnull public Integer getPort() { return port; } @@ -69,9 +93,7 @@ public V1GRPCAction service(String service) { * 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. * @return service **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getService() { return service; } @@ -82,8 +104,9 @@ public void setService(String service) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +123,6 @@ public int hashCode() { return Objects.hash(port, service); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +137,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("port"); + openapiFields.add("service"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("port"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1GRPCAction + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1GRPCAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1GRPCAction is not found in the empty JSON string", V1GRPCAction.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1GRPCAction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1GRPCAction` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1GRPCAction.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) && !jsonObj.get("service").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `service` to be a primitive type in the JSON string but got `%s`", jsonObj.get("service").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1GRPCAction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1GRPCAction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1GRPCAction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1GRPCAction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1GRPCAction read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1GRPCAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GRPCAction + * @throws IOException if the JSON string is invalid with respect to V1GRPCAction + */ + public static V1GRPCAction fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1GRPCAction.class); + } + + /** + * Convert an instance of V1GRPCAction to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java index 19fb9f283d..c26dae2ab5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -41,6 +64,8 @@ public class V1GitRepoVolumeSource { @SerializedName(SERIALIZED_NAME_REVISION) private String revision; + public V1GitRepoVolumeSource() { + } public V1GitRepoVolumeSource directory(String directory) { @@ -52,9 +77,7 @@ public V1GitRepoVolumeSource directory(String directory) { * 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. * @return directory **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getDirectory() { return directory; } @@ -75,8 +98,7 @@ public V1GitRepoVolumeSource repository(String repository) { * repository is the URL * @return repository **/ - @ApiModelProperty(required = true, value = "repository is the URL") - + @jakarta.annotation.Nonnull public String getRepository() { return repository; } @@ -97,9 +119,7 @@ public V1GitRepoVolumeSource revision(String revision) { * revision is the commit hash for the specified revision. * @return revision **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "revision is the commit hash for the specified revision.") - + @jakarta.annotation.Nullable public String getRevision() { return revision; } @@ -110,8 +130,9 @@ public void setRevision(String revision) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -129,7 +150,6 @@ public int hashCode() { return Objects.hash(directory, repository, revision); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -145,11 +165,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("directory"); + openapiFields.add("repository"); + openapiFields.add("revision"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("repository"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1GitRepoVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1GitRepoVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1GitRepoVolumeSource is not found in the empty JSON string", V1GitRepoVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1GitRepoVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1GitRepoVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1GitRepoVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("directory") != null && !jsonObj.get("directory").isJsonNull()) && !jsonObj.get("directory").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `directory` to be a primitive type in the JSON string but got `%s`", jsonObj.get("directory").toString())); + } + if (!jsonObj.get("repository").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `repository` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repository").toString())); + } + if ((jsonObj.get("revision") != null && !jsonObj.get("revision").isJsonNull()) && !jsonObj.get("revision").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `revision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("revision").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1GitRepoVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1GitRepoVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1GitRepoVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1GitRepoVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1GitRepoVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1GitRepoVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GitRepoVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1GitRepoVolumeSource + */ + public static V1GitRepoVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1GitRepoVolumeSource.class); + } + + /** + * Convert an instance of V1GitRepoVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java index 5528909399..e61bdc8941 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @@ -45,6 +68,8 @@ public class V1GlusterfsPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_READ_ONLY) private Boolean readOnly; + public V1GlusterfsPersistentVolumeSource() { + } public V1GlusterfsPersistentVolumeSource endpoints(String endpoints) { @@ -56,8 +81,7 @@ public V1GlusterfsPersistentVolumeSource endpoints(String endpoints) { * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return endpoints **/ - @ApiModelProperty(required = true, value = "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") - + @jakarta.annotation.Nonnull public String getEndpoints() { return endpoints; } @@ -78,9 +102,7 @@ public V1GlusterfsPersistentVolumeSource endpointsNamespace(String endpointsName * 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 * @return endpointsNamespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getEndpointsNamespace() { return endpointsNamespace; } @@ -101,8 +123,7 @@ public V1GlusterfsPersistentVolumeSource path(String path) { * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return path **/ - @ApiModelProperty(required = true, value = "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") - + @jakarta.annotation.Nonnull public String getPath() { return path; } @@ -123,9 +144,7 @@ public V1GlusterfsPersistentVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -136,8 +155,9 @@ public void setReadOnly(Boolean readOnly) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -156,7 +176,6 @@ public int hashCode() { return Objects.hash(endpoints, endpointsNamespace, path, readOnly); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,11 +192,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("endpoints"); + openapiFields.add("endpointsNamespace"); + openapiFields.add("path"); + openapiFields.add("readOnly"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("endpoints"); + openapiRequiredFields.add("path"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1GlusterfsPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1GlusterfsPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1GlusterfsPersistentVolumeSource is not found in the empty JSON string", V1GlusterfsPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1GlusterfsPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1GlusterfsPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1GlusterfsPersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("endpoints").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `endpoints` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endpoints").toString())); + } + if ((jsonObj.get("endpointsNamespace") != null && !jsonObj.get("endpointsNamespace").isJsonNull()) && !jsonObj.get("endpointsNamespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `endpointsNamespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endpointsNamespace").toString())); + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1GlusterfsPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1GlusterfsPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1GlusterfsPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1GlusterfsPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1GlusterfsPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1GlusterfsPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GlusterfsPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1GlusterfsPersistentVolumeSource + */ + public static V1GlusterfsPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1GlusterfsPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1GlusterfsPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java index c66dcc7ba6..2b65cc6482 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @@ -41,6 +64,8 @@ public class V1GlusterfsVolumeSource { @SerializedName(SERIALIZED_NAME_READ_ONLY) private Boolean readOnly; + public V1GlusterfsVolumeSource() { + } public V1GlusterfsVolumeSource endpoints(String endpoints) { @@ -52,8 +77,7 @@ public V1GlusterfsVolumeSource endpoints(String endpoints) { * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return endpoints **/ - @ApiModelProperty(required = true, value = "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") - + @jakarta.annotation.Nonnull public String getEndpoints() { return endpoints; } @@ -74,8 +98,7 @@ public V1GlusterfsVolumeSource path(String path) { * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod * @return path **/ - @ApiModelProperty(required = true, value = "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") - + @jakarta.annotation.Nonnull public String getPath() { return path; } @@ -96,9 +119,7 @@ public V1GlusterfsVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -109,8 +130,9 @@ public void setReadOnly(Boolean readOnly) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(endpoints, path, readOnly); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("endpoints"); + openapiFields.add("path"); + openapiFields.add("readOnly"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("endpoints"); + openapiRequiredFields.add("path"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1GlusterfsVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1GlusterfsVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1GlusterfsVolumeSource is not found in the empty JSON string", V1GlusterfsVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1GlusterfsVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1GlusterfsVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1GlusterfsVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("endpoints").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `endpoints` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endpoints").toString())); + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1GlusterfsVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1GlusterfsVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1GlusterfsVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1GlusterfsVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1GlusterfsVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1GlusterfsVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GlusterfsVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1GlusterfsVolumeSource + */ + public static V1GlusterfsVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1GlusterfsVolumeSource.class); + } + + /** + * Convert an instance of V1GlusterfsVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java index a790d03636..4f4d351b2d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. */ @@ -37,6 +60,8 @@ public class V1GroupVersionForDiscovery { @SerializedName(SERIALIZED_NAME_VERSION) private String version; + public V1GroupVersionForDiscovery() { + } public V1GroupVersionForDiscovery groupVersion(String groupVersion) { @@ -48,8 +73,7 @@ public V1GroupVersionForDiscovery groupVersion(String groupVersion) { * groupVersion specifies the API group and version in the form \"group/version\" * @return groupVersion **/ - @ApiModelProperty(required = true, value = "groupVersion specifies the API group and version in the form \"group/version\"") - + @jakarta.annotation.Nonnull public String getGroupVersion() { return groupVersion; } @@ -70,8 +94,7 @@ public V1GroupVersionForDiscovery version(String version) { * version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. * @return version **/ - @ApiModelProperty(required = true, value = "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.") - + @jakarta.annotation.Nonnull public String getVersion() { return version; } @@ -82,8 +105,9 @@ public void setVersion(String version) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(groupVersion, version); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("groupVersion"); + openapiFields.add("version"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("groupVersion"); + openapiRequiredFields.add("version"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1GroupVersionForDiscovery + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1GroupVersionForDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1GroupVersionForDiscovery is not found in the empty JSON string", V1GroupVersionForDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1GroupVersionForDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1GroupVersionForDiscovery` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1GroupVersionForDiscovery.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("groupVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `groupVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("groupVersion").toString())); + } + if (!jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1GroupVersionForDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1GroupVersionForDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1GroupVersionForDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1GroupVersionForDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1GroupVersionForDiscovery read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1GroupVersionForDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GroupVersionForDiscovery + * @throws IOException if the JSON string is invalid with respect to V1GroupVersionForDiscovery + */ + public static V1GroupVersionForDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1GroupVersionForDiscovery.class); + } + + /** + * Convert an instance of V1GroupVersionForDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java index a6bd08494e..e92cf67167 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.openapi.models.V1HTTPHeader; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HTTPGetAction describes an action based on HTTP Get requests. */ @@ -39,7 +62,7 @@ public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HTTP_HEADERS = "httpHeaders"; @SerializedName(SERIALIZED_NAME_HTTP_HEADERS) - private List httpHeaders = null; + private List httpHeaders; public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -53,6 +76,8 @@ public class V1HTTPGetAction { @SerializedName(SERIALIZED_NAME_SCHEME) private String scheme; + public V1HTTPGetAction() { + } public V1HTTPGetAction host(String host) { @@ -64,9 +89,7 @@ public V1HTTPGetAction host(String host) { * Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. * @return host **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.") - + @jakarta.annotation.Nullable public String getHost() { return host; } @@ -95,9 +118,7 @@ public V1HTTPGetAction addHttpHeadersItem(V1HTTPHeader httpHeadersItem) { * Custom headers to set in the request. HTTP allows repeated headers. * @return httpHeaders **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Custom headers to set in the request. HTTP allows repeated headers.") - + @jakarta.annotation.Nullable public List getHttpHeaders() { return httpHeaders; } @@ -118,9 +139,7 @@ public V1HTTPGetAction path(String path) { * Path to access on the HTTP server. * @return path **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Path to access on the HTTP server.") - + @jakarta.annotation.Nullable public String getPath() { return path; } @@ -141,8 +160,7 @@ public V1HTTPGetAction port(IntOrString port) { * 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. * @return port **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public IntOrString getPort() { return port; } @@ -163,9 +181,7 @@ public V1HTTPGetAction scheme(String scheme) { * Scheme to use for connecting to the host. Defaults to HTTP. * @return scheme **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Scheme to use for connecting to the host. Defaults to HTTP.") - + @jakarta.annotation.Nullable public String getScheme() { return scheme; } @@ -176,8 +192,9 @@ public void setScheme(String scheme) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -197,7 +214,6 @@ public int hashCode() { return Objects.hash(host, httpHeaders, path, port, scheme); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -215,11 +231,132 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("host"); + openapiFields.add("httpHeaders"); + openapiFields.add("path"); + openapiFields.add("port"); + openapiFields.add("scheme"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("port"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HTTPGetAction + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HTTPGetAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HTTPGetAction is not found in the empty JSON string", V1HTTPGetAction.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HTTPGetAction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HTTPGetAction` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HTTPGetAction.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("host") != null && !jsonObj.get("host").isJsonNull()) && !jsonObj.get("host").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); + } + if (jsonObj.get("httpHeaders") != null && !jsonObj.get("httpHeaders").isJsonNull()) { + JsonArray jsonArrayhttpHeaders = jsonObj.getAsJsonArray("httpHeaders"); + if (jsonArrayhttpHeaders != null) { + // ensure the json data is an array + if (!jsonObj.get("httpHeaders").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `httpHeaders` to be an array in the JSON string but got `%s`", jsonObj.get("httpHeaders").toString())); + } + + // validate the optional field `httpHeaders` (array) + for (int i = 0; i < jsonArrayhttpHeaders.size(); i++) { + V1HTTPHeader.validateJsonObject(jsonArrayhttpHeaders.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if (!jsonObj.get("port").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `port` to be a primitive type in the JSON string but got `%s`", jsonObj.get("port").toString())); + } + if ((jsonObj.get("scheme") != null && !jsonObj.get("scheme").isJsonNull()) && !jsonObj.get("scheme").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `scheme` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scheme").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HTTPGetAction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HTTPGetAction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HTTPGetAction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HTTPGetAction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HTTPGetAction read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HTTPGetAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HTTPGetAction + * @throws IOException if the JSON string is invalid with respect to V1HTTPGetAction + */ + public static V1HTTPGetAction fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HTTPGetAction.class); + } + + /** + * Convert an instance of V1HTTPGetAction to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java index 8e6d180172..04acba22b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HTTPHeader describes a custom header to be used in HTTP probes */ @@ -37,6 +60,8 @@ public class V1HTTPHeader { @SerializedName(SERIALIZED_NAME_VALUE) private String value; + public V1HTTPHeader() { + } public V1HTTPHeader name(String name) { @@ -48,8 +73,7 @@ public V1HTTPHeader name(String name) { * The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. * @return name **/ - @ApiModelProperty(required = true, value = "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -70,8 +94,7 @@ public V1HTTPHeader value(String value) { * The header field value * @return value **/ - @ApiModelProperty(required = true, value = "The header field value") - + @jakarta.annotation.Nonnull public String getValue() { return value; } @@ -82,8 +105,9 @@ public void setValue(String value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(name, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("value"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HTTPHeader + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HTTPHeader.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HTTPHeader is not found in the empty JSON string", V1HTTPHeader.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HTTPHeader.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HTTPHeader` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HTTPHeader.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HTTPHeader.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HTTPHeader' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HTTPHeader.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HTTPHeader value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HTTPHeader read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HTTPHeader given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HTTPHeader + * @throws IOException if the JSON string is invalid with respect to V1HTTPHeader + */ + public static V1HTTPHeader fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HTTPHeader.class); + } + + /** + * Convert an instance of V1HTTPHeader to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java index c296b06ab1..6183c81c75 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressBackend; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. */ @@ -42,6 +65,8 @@ public class V1HTTPIngressPath { @SerializedName(SERIALIZED_NAME_PATH_TYPE) private String pathType; + public V1HTTPIngressPath() { + } public V1HTTPIngressPath backend(V1IngressBackend backend) { @@ -53,8 +78,7 @@ public V1HTTPIngressPath backend(V1IngressBackend backend) { * Get backend * @return backend **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1IngressBackend getBackend() { return backend; } @@ -75,9 +99,7 @@ public V1HTTPIngressPath path(String path) { * 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\". * @return path **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public String getPath() { return path; } @@ -98,8 +120,7 @@ public V1HTTPIngressPath pathType(String pathType) { * 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. * @return pathType **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getPathType() { return pathType; } @@ -110,8 +131,9 @@ public void setPathType(String pathType) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -129,7 +151,6 @@ public int hashCode() { return Objects.hash(backend, path, pathType); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -145,11 +166,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("backend"); + openapiFields.add("path"); + openapiFields.add("pathType"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("backend"); + openapiRequiredFields.add("pathType"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HTTPIngressPath + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HTTPIngressPath.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HTTPIngressPath is not found in the empty JSON string", V1HTTPIngressPath.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HTTPIngressPath.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HTTPIngressPath` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HTTPIngressPath.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `backend` + V1IngressBackend.validateJsonObject(jsonObj.getAsJsonObject("backend")); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if (!jsonObj.get("pathType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pathType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pathType").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HTTPIngressPath.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HTTPIngressPath' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HTTPIngressPath.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HTTPIngressPath value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HTTPIngressPath read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HTTPIngressPath given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HTTPIngressPath + * @throws IOException if the JSON string is invalid with respect to V1HTTPIngressPath + */ + public static V1HTTPIngressPath fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HTTPIngressPath.class); + } + + /** + * Convert an instance of V1HTTPIngressPath to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java index 5f80eb0cc3..f7d51d2788 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1HTTPIngressPath; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. */ @@ -36,6 +59,8 @@ public class V1HTTPIngressRuleValue { @SerializedName(SERIALIZED_NAME_PATHS) private List paths = new ArrayList<>(); + public V1HTTPIngressRuleValue() { + } public V1HTTPIngressRuleValue paths(List paths) { @@ -44,6 +69,9 @@ public V1HTTPIngressRuleValue paths(List paths) { } public V1HTTPIngressRuleValue addPathsItem(V1HTTPIngressPath pathsItem) { + if (this.paths == null) { + this.paths = new ArrayList<>(); + } this.paths.add(pathsItem); return this; } @@ -52,8 +80,7 @@ public V1HTTPIngressRuleValue addPathsItem(V1HTTPIngressPath pathsItem) { * paths is a collection of paths that map requests to backends. * @return paths **/ - @ApiModelProperty(required = true, value = "paths is a collection of paths that map requests to backends.") - + @jakarta.annotation.Nonnull public List getPaths() { return paths; } @@ -64,8 +91,9 @@ public void setPaths(List paths) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -81,7 +109,6 @@ public int hashCode() { return Objects.hash(paths); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,11 +122,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("paths"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("paths"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HTTPIngressRuleValue + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HTTPIngressRuleValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HTTPIngressRuleValue is not found in the empty JSON string", V1HTTPIngressRuleValue.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HTTPIngressRuleValue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HTTPIngressRuleValue` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HTTPIngressRuleValue.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (!jsonObj.get("paths").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `paths` to be an array in the JSON string but got `%s`", jsonObj.get("paths").toString())); + } + + JsonArray jsonArraypaths = jsonObj.getAsJsonArray("paths"); + // validate the required field `paths` (array) + for (int i = 0; i < jsonArraypaths.size(); i++) { + V1HTTPIngressPath.validateJsonObject(jsonArraypaths.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HTTPIngressRuleValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HTTPIngressRuleValue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HTTPIngressRuleValue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HTTPIngressRuleValue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HTTPIngressRuleValue read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HTTPIngressRuleValue given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HTTPIngressRuleValue + * @throws IOException if the JSON string is invalid with respect to V1HTTPIngressRuleValue + */ + public static V1HTTPIngressRuleValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HTTPIngressRuleValue.class); + } + + /** + * Convert an instance of V1HTTPIngressRuleValue to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java index e06a4ab032..32181fdcf7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec; import io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * configuration of a horizontal pod autoscaler. */ @@ -52,6 +75,8 @@ public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.Ku @SerializedName(SERIALIZED_NAME_STATUS) private V1HorizontalPodAutoscalerStatus status; + public V1HorizontalPodAutoscaler() { + } public V1HorizontalPodAutoscaler apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1HorizontalPodAutoscaler apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1HorizontalPodAutoscaler kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1HorizontalPodAutoscaler metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1HorizontalPodAutoscaler spec(V1HorizontalPodAutoscalerSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1HorizontalPodAutoscalerSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1HorizontalPodAutoscaler status(V1HorizontalPodAutoscalerStatus status) * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1HorizontalPodAutoscalerStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1HorizontalPodAutoscalerStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HorizontalPodAutoscaler + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HorizontalPodAutoscaler.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HorizontalPodAutoscaler is not found in the empty JSON string", V1HorizontalPodAutoscaler.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HorizontalPodAutoscaler.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscaler` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1HorizontalPodAutoscalerSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1HorizontalPodAutoscalerStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HorizontalPodAutoscaler.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HorizontalPodAutoscaler' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HorizontalPodAutoscaler.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HorizontalPodAutoscaler value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HorizontalPodAutoscaler read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HorizontalPodAutoscaler given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HorizontalPodAutoscaler + * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscaler + */ + public static V1HorizontalPodAutoscaler fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HorizontalPodAutoscaler.class); + } + + /** + * Convert an instance of V1HorizontalPodAutoscaler to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java index c208a6c13c..0450a92f3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * list of horizontal pod autoscaler objects. */ @@ -49,6 +72,8 @@ public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.commo @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1HorizontalPodAutoscalerList() { + } public V1HorizontalPodAutoscalerList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1HorizontalPodAutoscalerList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1HorizontalPodAutoscalerList items(List items } public V1HorizontalPodAutoscalerList addItemsItem(V1HorizontalPodAutoscaler itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1HorizontalPodAutoscalerList addItemsItem(V1HorizontalPodAutoscaler item * items is the list of horizontal pod autoscaler objects. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of horizontal pod autoscaler objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1HorizontalPodAutoscalerList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1HorizontalPodAutoscalerList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HorizontalPodAutoscalerList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HorizontalPodAutoscalerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HorizontalPodAutoscalerList is not found in the empty JSON string", V1HorizontalPodAutoscalerList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HorizontalPodAutoscalerList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscalerList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HorizontalPodAutoscalerList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1HorizontalPodAutoscaler.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HorizontalPodAutoscalerList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HorizontalPodAutoscalerList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HorizontalPodAutoscalerList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HorizontalPodAutoscalerList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HorizontalPodAutoscalerList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HorizontalPodAutoscalerList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HorizontalPodAutoscalerList + * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerList + */ + public static V1HorizontalPodAutoscalerList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HorizontalPodAutoscalerList.class); + } + + /** + * Convert an instance of V1HorizontalPodAutoscalerList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java index 5df833ca2e..3363a7f73f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CrossVersionObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * specification of a horizontal pod autoscaler. */ @@ -46,6 +69,8 @@ public class V1HorizontalPodAutoscalerSpec { @SerializedName(SERIALIZED_NAME_TARGET_C_P_U_UTILIZATION_PERCENTAGE) private Integer targetCPUUtilizationPercentage; + public V1HorizontalPodAutoscalerSpec() { + } public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { @@ -57,8 +82,7 @@ public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. * @return maxReplicas **/ - @ApiModelProperty(required = true, value = "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.") - + @jakarta.annotation.Nonnull public Integer getMaxReplicas() { return maxReplicas; } @@ -79,9 +103,7 @@ public V1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { * 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. * @return minReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getMinReplicas() { return minReplicas; } @@ -102,8 +124,7 @@ public V1HorizontalPodAutoscalerSpec scaleTargetRef(V1CrossVersionObjectReferenc * Get scaleTargetRef * @return scaleTargetRef **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1CrossVersionObjectReference getScaleTargetRef() { return scaleTargetRef; } @@ -124,9 +145,7 @@ public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targ * 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. * @return targetCPUUtilizationPercentage **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getTargetCPUUtilizationPercentage() { return targetCPUUtilizationPercentage; } @@ -137,8 +156,9 @@ public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercen } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +177,6 @@ public int hashCode() { return Objects.hash(maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +193,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("maxReplicas"); + openapiFields.add("minReplicas"); + openapiFields.add("scaleTargetRef"); + openapiFields.add("targetCPUUtilizationPercentage"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("maxReplicas"); + openapiRequiredFields.add("scaleTargetRef"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HorizontalPodAutoscalerSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HorizontalPodAutoscalerSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HorizontalPodAutoscalerSpec is not found in the empty JSON string", V1HorizontalPodAutoscalerSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HorizontalPodAutoscalerSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscalerSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HorizontalPodAutoscalerSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `scaleTargetRef` + V1CrossVersionObjectReference.validateJsonObject(jsonObj.getAsJsonObject("scaleTargetRef")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HorizontalPodAutoscalerSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HorizontalPodAutoscalerSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HorizontalPodAutoscalerSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HorizontalPodAutoscalerSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HorizontalPodAutoscalerSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HorizontalPodAutoscalerSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HorizontalPodAutoscalerSpec + * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerSpec + */ + public static V1HorizontalPodAutoscalerSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HorizontalPodAutoscalerSpec.class); + } + + /** + * Convert an instance of V1HorizontalPodAutoscalerSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java index 3502ce7008..19c5f75c0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * current status of a horizontal pod autoscaler */ @@ -50,6 +73,8 @@ public class V1HorizontalPodAutoscalerStatus { @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) private Long observedGeneration; + public V1HorizontalPodAutoscalerStatus() { + } public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { @@ -61,9 +86,7 @@ public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer c * 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. * @return currentCPUUtilizationPercentage **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getCurrentCPUUtilizationPercentage() { return currentCPUUtilizationPercentage; } @@ -84,8 +107,7 @@ public V1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) * currentReplicas is the current number of replicas of pods managed by this autoscaler. * @return currentReplicas **/ - @ApiModelProperty(required = true, value = "currentReplicas is the current number of replicas of pods managed by this autoscaler.") - + @jakarta.annotation.Nonnull public Integer getCurrentReplicas() { return currentReplicas; } @@ -106,8 +128,7 @@ public V1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) * desiredReplicas is the desired number of replicas of pods managed by this autoscaler. * @return desiredReplicas **/ - @ApiModelProperty(required = true, value = "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.") - + @jakarta.annotation.Nonnull public Integer getDesiredReplicas() { return desiredReplicas; } @@ -128,9 +149,7 @@ public V1HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTim * 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. * @return lastScaleTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastScaleTime() { return lastScaleTime; } @@ -151,9 +170,7 @@ public V1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneratio * observedGeneration is the most recent generation observed by this autoscaler. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "observedGeneration is the most recent generation observed by this autoscaler.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -164,8 +181,9 @@ public void setObservedGeneration(Long observedGeneration) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,107 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("currentCPUUtilizationPercentage"); + openapiFields.add("currentReplicas"); + openapiFields.add("desiredReplicas"); + openapiFields.add("lastScaleTime"); + openapiFields.add("observedGeneration"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("currentReplicas"); + openapiRequiredFields.add("desiredReplicas"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HorizontalPodAutoscalerStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HorizontalPodAutoscalerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HorizontalPodAutoscalerStatus is not found in the empty JSON string", V1HorizontalPodAutoscalerStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HorizontalPodAutoscalerStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscalerStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HorizontalPodAutoscalerStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HorizontalPodAutoscalerStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HorizontalPodAutoscalerStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HorizontalPodAutoscalerStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HorizontalPodAutoscalerStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HorizontalPodAutoscalerStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HorizontalPodAutoscalerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HorizontalPodAutoscalerStatus + * @throws IOException if the JSON string is invalid with respect to V1HorizontalPodAutoscalerStatus + */ + public static V1HorizontalPodAutoscalerStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HorizontalPodAutoscalerStatus.class); + } + + /** + * Convert an instance of V1HorizontalPodAutoscalerStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java index 76aa005af1..650f8332fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. */ @@ -33,12 +56,14 @@ public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; @SerializedName(SERIALIZED_NAME_HOSTNAMES) - private List hostnames = null; + private List hostnames; public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) private String ip; + public V1HostAlias() { + } public V1HostAlias hostnames(List hostnames) { @@ -58,9 +83,7 @@ public V1HostAlias addHostnamesItem(String hostnamesItem) { * Hostnames for the above IP address. * @return hostnames **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Hostnames for the above IP address.") - + @jakarta.annotation.Nullable public List getHostnames() { return hostnames; } @@ -81,9 +104,7 @@ public V1HostAlias ip(String ip) { * IP address of the host file entry. * @return ip **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "IP address of the host file entry.") - + @jakarta.annotation.Nullable public String getIp() { return ip; } @@ -94,8 +115,9 @@ public void setIp(String ip) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -112,7 +134,6 @@ public int hashCode() { return Objects.hash(hostnames, ip); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,11 +148,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("hostnames"); + openapiFields.add("ip"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HostAlias + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HostAlias.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HostAlias is not found in the empty JSON string", V1HostAlias.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HostAlias.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HostAlias` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("hostnames") != null && !jsonObj.get("hostnames").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `hostnames` to be an array in the JSON string but got `%s`", jsonObj.get("hostnames").toString())); + } + if ((jsonObj.get("ip") != null && !jsonObj.get("ip").isJsonNull()) && !jsonObj.get("ip").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HostAlias.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HostAlias' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HostAlias.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HostAlias value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HostAlias read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HostAlias given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HostAlias + * @throws IOException if the JSON string is invalid with respect to V1HostAlias + */ + public static V1HostAlias fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HostAlias.class); + } + + /** + * Convert an instance of V1HostAlias to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java index 8b3cf4dc57..1a8cb26da4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. */ @@ -37,6 +60,8 @@ public class V1HostPathVolumeSource { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1HostPathVolumeSource() { + } public V1HostPathVolumeSource path(String path) { @@ -48,8 +73,7 @@ public V1HostPathVolumeSource path(String path) { * 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 * @return path **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getPath() { return path; } @@ -70,9 +94,7 @@ public V1HostPathVolumeSource type(String type) { * type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -83,8 +105,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +124,6 @@ public int hashCode() { return Objects.hash(path, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +138,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("path"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("path"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1HostPathVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1HostPathVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1HostPathVolumeSource is not found in the empty JSON string", V1HostPathVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1HostPathVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HostPathVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HostPathVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1HostPathVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1HostPathVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1HostPathVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1HostPathVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1HostPathVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1HostPathVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1HostPathVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1HostPathVolumeSource + */ + public static V1HostPathVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1HostPathVolumeSource.class); + } + + /** + * Convert an instance of V1HostPathVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java index 5ebed7df6d..d63b4a47d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -37,8 +60,10 @@ public class V1IPBlock { public static final String SERIALIZED_NAME_EXCEPT = "except"; @SerializedName(SERIALIZED_NAME_EXCEPT) - private List except = null; + private List except; + public V1IPBlock() { + } public V1IPBlock cidr(String cidr) { @@ -50,8 +75,7 @@ public V1IPBlock cidr(String cidr) { * cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" * @return cidr **/ - @ApiModelProperty(required = true, value = "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"") - + @jakarta.annotation.Nonnull public String getCidr() { return cidr; } @@ -80,9 +104,7 @@ public V1IPBlock addExceptItem(String exceptItem) { * 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 * @return except **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getExcept() { return except; } @@ -93,8 +115,9 @@ public void setExcept(List except) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -111,7 +134,6 @@ public int hashCode() { return Objects.hash(cidr, except); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -126,11 +148,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("cidr"); + openapiFields.add("except"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("cidr"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IPBlock + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IPBlock.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IPBlock is not found in the empty JSON string", V1IPBlock.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IPBlock.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IPBlock` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IPBlock.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("cidr").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cidr` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cidr").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("except") != null && !jsonObj.get("except").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `except` to be an array in the JSON string but got `%s`", jsonObj.get("except").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IPBlock.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IPBlock' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IPBlock.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IPBlock value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IPBlock read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IPBlock given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IPBlock + * @throws IOException if the JSON string is invalid with respect to V1IPBlock + */ + public static V1IPBlock fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IPBlock.class); + } + + /** + * Convert an instance of V1IPBlock to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java index 687703a9fa..3b11941d4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @@ -62,7 +85,7 @@ public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_PORTALS = "portals"; @SerializedName(SERIALIZED_NAME_PORTALS) - private List portals = null; + private List portals; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) @@ -76,6 +99,8 @@ public class V1ISCSIPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_TARGET_PORTAL) private String targetPortal; + public V1ISCSIPersistentVolumeSource() { + } public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { @@ -87,9 +112,7 @@ public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication * @return chapAuthDiscovery **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication") - + @jakarta.annotation.Nullable public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; } @@ -110,9 +133,7 @@ public V1ISCSIPersistentVolumeSource chapAuthSession(Boolean chapAuthSession) { * chapAuthSession defines whether support iSCSI Session CHAP authentication * @return chapAuthSession **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "chapAuthSession defines whether support iSCSI Session CHAP authentication") - + @jakarta.annotation.Nullable public Boolean getChapAuthSession() { return chapAuthSession; } @@ -133,9 +154,7 @@ public V1ISCSIPersistentVolumeSource fsType(String fsType) { * 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 * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -156,9 +175,7 @@ public V1ISCSIPersistentVolumeSource initiatorName(String initiatorName) { * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. * @return initiatorName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") - + @jakarta.annotation.Nullable public String getInitiatorName() { return initiatorName; } @@ -179,8 +196,7 @@ public V1ISCSIPersistentVolumeSource iqn(String iqn) { * iqn is Target iSCSI Qualified Name. * @return iqn **/ - @ApiModelProperty(required = true, value = "iqn is Target iSCSI Qualified Name.") - + @jakarta.annotation.Nonnull public String getIqn() { return iqn; } @@ -201,9 +217,7 @@ public V1ISCSIPersistentVolumeSource iscsiInterface(String iscsiInterface) { * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). * @return iscsiInterface **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") - + @jakarta.annotation.Nullable public String getIscsiInterface() { return iscsiInterface; } @@ -224,8 +238,7 @@ public V1ISCSIPersistentVolumeSource lun(Integer lun) { * lun is iSCSI Target Lun number. * @return lun **/ - @ApiModelProperty(required = true, value = "lun is iSCSI Target Lun number.") - + @jakarta.annotation.Nonnull public Integer getLun() { return lun; } @@ -254,9 +267,7 @@ public V1ISCSIPersistentVolumeSource addPortalsItem(String portalsItem) { * 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). * @return portals **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public List getPortals() { return portals; } @@ -277,9 +288,7 @@ public V1ISCSIPersistentVolumeSource readOnly(Boolean readOnly) { * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -300,9 +309,7 @@ public V1ISCSIPersistentVolumeSource secretRef(V1SecretReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getSecretRef() { return secretRef; } @@ -323,8 +330,7 @@ public V1ISCSIPersistentVolumeSource targetPortal(String targetPortal) { * 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). * @return targetPortal **/ - @ApiModelProperty(required = true, value = "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).") - + @jakarta.annotation.Nonnull public String getTargetPortal() { return targetPortal; } @@ -335,8 +341,9 @@ public void setTargetPortal(String targetPortal) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -362,7 +369,6 @@ public int hashCode() { return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -386,11 +392,137 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("chapAuthDiscovery"); + openapiFields.add("chapAuthSession"); + openapiFields.add("fsType"); + openapiFields.add("initiatorName"); + openapiFields.add("iqn"); + openapiFields.add("iscsiInterface"); + openapiFields.add("lun"); + openapiFields.add("portals"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("targetPortal"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("iqn"); + openapiRequiredFields.add("lun"); + openapiRequiredFields.add("targetPortal"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ISCSIPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ISCSIPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ISCSIPersistentVolumeSource is not found in the empty JSON string", V1ISCSIPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ISCSIPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ISCSIPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ISCSIPersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if ((jsonObj.get("initiatorName") != null && !jsonObj.get("initiatorName").isJsonNull()) && !jsonObj.get("initiatorName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `initiatorName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("initiatorName").toString())); + } + if (!jsonObj.get("iqn").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `iqn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("iqn").toString())); + } + if ((jsonObj.get("iscsiInterface") != null && !jsonObj.get("iscsiInterface").isJsonNull()) && !jsonObj.get("iscsiInterface").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `iscsiInterface` to be a primitive type in the JSON string but got `%s`", jsonObj.get("iscsiInterface").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("portals") != null && !jsonObj.get("portals").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `portals` to be an array in the JSON string but got `%s`", jsonObj.get("portals").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if (!jsonObj.get("targetPortal").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `targetPortal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetPortal").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ISCSIPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ISCSIPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ISCSIPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ISCSIPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ISCSIPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ISCSIPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ISCSIPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ISCSIPersistentVolumeSource + */ + public static V1ISCSIPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ISCSIPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1ISCSIPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java index 7910e96a1d..e83c560f0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @@ -62,7 +85,7 @@ public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_PORTALS = "portals"; @SerializedName(SERIALIZED_NAME_PORTALS) - private List portals = null; + private List portals; public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) @@ -76,6 +99,8 @@ public class V1ISCSIVolumeSource { @SerializedName(SERIALIZED_NAME_TARGET_PORTAL) private String targetPortal; + public V1ISCSIVolumeSource() { + } public V1ISCSIVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { @@ -87,9 +112,7 @@ public V1ISCSIVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication * @return chapAuthDiscovery **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication") - + @jakarta.annotation.Nullable public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; } @@ -110,9 +133,7 @@ public V1ISCSIVolumeSource chapAuthSession(Boolean chapAuthSession) { * chapAuthSession defines whether support iSCSI Session CHAP authentication * @return chapAuthSession **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "chapAuthSession defines whether support iSCSI Session CHAP authentication") - + @jakarta.annotation.Nullable public Boolean getChapAuthSession() { return chapAuthSession; } @@ -133,9 +154,7 @@ public V1ISCSIVolumeSource fsType(String fsType) { * 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 * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -156,9 +175,7 @@ public V1ISCSIVolumeSource initiatorName(String initiatorName) { * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. * @return initiatorName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") - + @jakarta.annotation.Nullable public String getInitiatorName() { return initiatorName; } @@ -179,8 +196,7 @@ public V1ISCSIVolumeSource iqn(String iqn) { * iqn is the target iSCSI Qualified Name. * @return iqn **/ - @ApiModelProperty(required = true, value = "iqn is the target iSCSI Qualified Name.") - + @jakarta.annotation.Nonnull public String getIqn() { return iqn; } @@ -201,9 +217,7 @@ public V1ISCSIVolumeSource iscsiInterface(String iscsiInterface) { * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). * @return iscsiInterface **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") - + @jakarta.annotation.Nullable public String getIscsiInterface() { return iscsiInterface; } @@ -224,8 +238,7 @@ public V1ISCSIVolumeSource lun(Integer lun) { * lun represents iSCSI Target Lun number. * @return lun **/ - @ApiModelProperty(required = true, value = "lun represents iSCSI Target Lun number.") - + @jakarta.annotation.Nonnull public Integer getLun() { return lun; } @@ -254,9 +267,7 @@ public V1ISCSIVolumeSource addPortalsItem(String portalsItem) { * 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). * @return portals **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public List getPortals() { return portals; } @@ -277,9 +288,7 @@ public V1ISCSIVolumeSource readOnly(Boolean readOnly) { * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -300,9 +309,7 @@ public V1ISCSIVolumeSource secretRef(V1LocalObjectReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -323,8 +330,7 @@ public V1ISCSIVolumeSource targetPortal(String targetPortal) { * 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). * @return targetPortal **/ - @ApiModelProperty(required = true, value = "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).") - + @jakarta.annotation.Nonnull public String getTargetPortal() { return targetPortal; } @@ -335,8 +341,9 @@ public void setTargetPortal(String targetPortal) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -362,7 +369,6 @@ public int hashCode() { return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -386,11 +392,137 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("chapAuthDiscovery"); + openapiFields.add("chapAuthSession"); + openapiFields.add("fsType"); + openapiFields.add("initiatorName"); + openapiFields.add("iqn"); + openapiFields.add("iscsiInterface"); + openapiFields.add("lun"); + openapiFields.add("portals"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("targetPortal"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("iqn"); + openapiRequiredFields.add("lun"); + openapiRequiredFields.add("targetPortal"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ISCSIVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ISCSIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ISCSIVolumeSource is not found in the empty JSON string", V1ISCSIVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ISCSIVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ISCSIVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ISCSIVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if ((jsonObj.get("initiatorName") != null && !jsonObj.get("initiatorName").isJsonNull()) && !jsonObj.get("initiatorName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `initiatorName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("initiatorName").toString())); + } + if (!jsonObj.get("iqn").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `iqn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("iqn").toString())); + } + if ((jsonObj.get("iscsiInterface") != null && !jsonObj.get("iscsiInterface").isJsonNull()) && !jsonObj.get("iscsiInterface").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `iscsiInterface` to be a primitive type in the JSON string but got `%s`", jsonObj.get("iscsiInterface").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("portals") != null && !jsonObj.get("portals").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `portals` to be an array in the JSON string but got `%s`", jsonObj.get("portals").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1LocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if (!jsonObj.get("targetPortal").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `targetPortal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetPortal").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ISCSIVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ISCSIVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ISCSIVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ISCSIVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ISCSIVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ISCSIVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ISCSIVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ISCSIVolumeSource + */ + public static V1ISCSIVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ISCSIVolumeSource.class); + } + + /** + * Convert an instance of V1ISCSIVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java index d2eb987606..bd952fd7bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1IngressSpec; import io.kubernetes.client.openapi.models.V1IngressStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_STATUS) private V1IngressStatus status; + public V1Ingress() { + } public V1Ingress apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1Ingress apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1Ingress kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1Ingress metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1Ingress spec(V1IngressSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1IngressSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1Ingress status(V1IngressStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1IngressStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1IngressStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Ingress + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Ingress.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Ingress is not found in the empty JSON string", V1Ingress.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Ingress.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Ingress` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1IngressSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1IngressStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Ingress.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Ingress' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Ingress.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Ingress value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Ingress read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Ingress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Ingress + * @throws IOException if the JSON string is invalid with respect to V1Ingress + */ + public static V1Ingress fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Ingress.class); + } + + /** + * Convert an instance of V1Ingress to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java index 2bae8d3d33..3427cce910 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressServiceBackend; import io.kubernetes.client.openapi.models.V1TypedLocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressBackend describes all endpoints for a given service and port. */ @@ -39,6 +62,8 @@ public class V1IngressBackend { @SerializedName(SERIALIZED_NAME_SERVICE) private V1IngressServiceBackend service; + public V1IngressBackend() { + } public V1IngressBackend resource(V1TypedLocalObjectReference resource) { @@ -50,9 +75,7 @@ public V1IngressBackend resource(V1TypedLocalObjectReference resource) { * Get resource * @return resource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1TypedLocalObjectReference getResource() { return resource; } @@ -73,9 +96,7 @@ public V1IngressBackend service(V1IngressServiceBackend service) { * Get service * @return service **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1IngressServiceBackend getService() { return service; } @@ -86,8 +107,9 @@ public void setService(V1IngressServiceBackend service) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -104,7 +126,6 @@ public int hashCode() { return Objects.hash(resource, service); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -119,11 +140,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("resource"); + openapiFields.add("service"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressBackend + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressBackend.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressBackend is not found in the empty JSON string", V1IngressBackend.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressBackend.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressBackend` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `resource` + if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { + V1TypedLocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("resource")); + } + // validate the optional field `service` + if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { + V1IngressServiceBackend.validateJsonObject(jsonObj.getAsJsonObject("service")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressBackend.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressBackend' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressBackend.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressBackend value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressBackend read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressBackend given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressBackend + * @throws IOException if the JSON string is invalid with respect to V1IngressBackend + */ + public static V1IngressBackend fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressBackend.class); + } + + /** + * Convert an instance of V1IngressBackend to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java index e33faa0caa..a6296256d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressClassSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -47,6 +70,8 @@ public class V1IngressClass implements io.kubernetes.client.common.KubernetesObj @SerializedName(SERIALIZED_NAME_SPEC) private V1IngressClassSpec spec; + public V1IngressClass() { + } public V1IngressClass apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1IngressClass apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1IngressClass kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1IngressClass metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1IngressClass spec(V1IngressClassSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1IngressClassSpec getSpec() { return spec; } @@ -140,8 +157,9 @@ public void setSpec(V1IngressClassSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressClass + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressClass is not found in the empty JSON string", V1IngressClass.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressClass.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressClass` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1IngressClassSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressClass.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressClass' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressClass.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressClass value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressClass read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressClass + * @throws IOException if the JSON string is invalid with respect to V1IngressClass + */ + public static V1IngressClass fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressClass.class); + } + + /** + * Convert an instance of V1IngressClass to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java index 80ce3e0f9c..8c202ced68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressClass; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressClassList is a collection of IngressClasses. */ @@ -49,6 +72,8 @@ public class V1IngressClassList implements io.kubernetes.client.common.Kubernete @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1IngressClassList() { + } public V1IngressClassList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1IngressClassList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1IngressClassList items(List items) { } public V1IngressClassList addItemsItem(V1IngressClass itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1IngressClassList addItemsItem(V1IngressClass itemsItem) { * items is the list of IngressClasses. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of IngressClasses.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1IngressClassList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1IngressClassList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressClassList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressClassList is not found in the empty JSON string", V1IngressClassList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressClassList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressClassList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IngressClassList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1IngressClass.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressClassList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressClassList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressClassList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressClassList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressClassList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressClassList + * @throws IOException if the JSON string is invalid with respect to V1IngressClassList + */ + public static V1IngressClassList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressClassList.class); + } + + /** + * Convert an instance of V1IngressClassList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java index 31f914f585..bf1377c95c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. */ @@ -49,6 +72,8 @@ public class V1IngressClassParametersReference { @SerializedName(SERIALIZED_NAME_SCOPE) private String scope; + public V1IngressClassParametersReference() { + } public V1IngressClassParametersReference apiGroup(String apiGroup) { @@ -60,9 +85,7 @@ public V1IngressClassParametersReference apiGroup(String apiGroup) { * 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. * @return apiGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getApiGroup() { return apiGroup; } @@ -83,8 +106,7 @@ public V1IngressClassParametersReference kind(String kind) { * kind is the type of resource being referenced. * @return kind **/ - @ApiModelProperty(required = true, value = "kind is the type of resource being referenced.") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -105,8 +127,7 @@ public V1IngressClassParametersReference name(String name) { * name is the name of resource being referenced. * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of resource being referenced.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -127,9 +148,7 @@ public V1IngressClassParametersReference namespace(String namespace) { * 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\". * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -150,9 +169,7 @@ public V1IngressClassParametersReference scope(String scope) { * scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\". * @return scope **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".") - + @jakarta.annotation.Nullable public String getScope() { return scope; } @@ -163,8 +180,9 @@ public void setScope(String scope) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -184,7 +202,6 @@ public int hashCode() { return Objects.hash(apiGroup, kind, name, namespace, scope); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -202,11 +219,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroup"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("scope"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressClassParametersReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressClassParametersReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressClassParametersReference is not found in the empty JSON string", V1IngressClassParametersReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressClassParametersReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressClassParametersReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IngressClassParametersReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if ((jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) && !jsonObj.get("scope").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressClassParametersReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressClassParametersReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressClassParametersReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressClassParametersReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressClassParametersReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressClassParametersReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressClassParametersReference + * @throws IOException if the JSON string is invalid with respect to V1IngressClassParametersReference + */ + public static V1IngressClassParametersReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressClassParametersReference.class); + } + + /** + * Convert an instance of V1IngressClassParametersReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java index 9ad90c3fe7..b41e0e0db0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressClassParametersReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressClassSpec provides information about the class of an Ingress. */ @@ -38,6 +61,8 @@ public class V1IngressClassSpec { @SerializedName(SERIALIZED_NAME_PARAMETERS) private V1IngressClassParametersReference parameters; + public V1IngressClassSpec() { + } public V1IngressClassSpec controller(String controller) { @@ -49,9 +74,7 @@ public V1IngressClassSpec controller(String controller) { * 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. * @return controller **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getController() { return controller; } @@ -72,9 +95,7 @@ public V1IngressClassSpec parameters(V1IngressClassParametersReference parameter * Get parameters * @return parameters **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1IngressClassParametersReference getParameters() { return parameters; } @@ -85,8 +106,9 @@ public void setParameters(V1IngressClassParametersReference parameters) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(controller, parameters); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("controller"); + openapiFields.add("parameters"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressClassSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressClassSpec is not found in the empty JSON string", V1IngressClassSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressClassSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressClassSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("controller") != null && !jsonObj.get("controller").isJsonNull()) && !jsonObj.get("controller").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `controller` to be a primitive type in the JSON string but got `%s`", jsonObj.get("controller").toString())); + } + // validate the optional field `parameters` + if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull()) { + V1IngressClassParametersReference.validateJsonObject(jsonObj.getAsJsonObject("parameters")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressClassSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressClassSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressClassSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressClassSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressClassSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressClassSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressClassSpec + * @throws IOException if the JSON string is invalid with respect to V1IngressClassSpec + */ + public static V1IngressClassSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressClassSpec.class); + } + + /** + * Convert an instance of V1IngressClassSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java index 7a336835f7..5042b50e9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Ingress; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressList is a collection of Ingress. */ @@ -49,6 +72,8 @@ public class V1IngressList implements io.kubernetes.client.common.KubernetesList @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1IngressList() { + } public V1IngressList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1IngressList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1IngressList items(List items) { } public V1IngressList addItemsItem(V1Ingress itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1IngressList addItemsItem(V1Ingress itemsItem) { * items is the list of Ingress. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of Ingress.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1IngressList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1IngressList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressList is not found in the empty JSON string", V1IngressList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IngressList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Ingress.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressList + * @throws IOException if the JSON string is invalid with respect to V1IngressList + */ + public static V1IngressList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressList.class); + } + + /** + * Convert an instance of V1IngressList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java index e0db4734b4..cf8bae6a00 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressPortStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. */ @@ -42,8 +65,10 @@ public class V1IngressLoadBalancerIngress { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; + public V1IngressLoadBalancerIngress() { + } public V1IngressLoadBalancerIngress hostname(String hostname) { @@ -55,9 +80,7 @@ public V1IngressLoadBalancerIngress hostname(String hostname) { * hostname is set for load-balancer ingress points that are DNS based. * @return hostname **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "hostname is set for load-balancer ingress points that are DNS based.") - + @jakarta.annotation.Nullable public String getHostname() { return hostname; } @@ -78,9 +101,7 @@ public V1IngressLoadBalancerIngress ip(String ip) { * ip is set for load-balancer ingress points that are IP based. * @return ip **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ip is set for load-balancer ingress points that are IP based.") - + @jakarta.annotation.Nullable public String getIp() { return ip; } @@ -109,9 +130,7 @@ public V1IngressLoadBalancerIngress addPortsItem(V1IngressPortStatus portsItem) * ports provides information about the ports exposed by this LoadBalancer. * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ports provides information about the ports exposed by this LoadBalancer.") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -122,8 +141,9 @@ public void setPorts(List ports) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -141,7 +161,6 @@ public int hashCode() { return Objects.hash(hostname, ip, ports); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -157,11 +176,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("hostname"); + openapiFields.add("ip"); + openapiFields.add("ports"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressLoadBalancerIngress + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressLoadBalancerIngress.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressLoadBalancerIngress is not found in the empty JSON string", V1IngressLoadBalancerIngress.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressLoadBalancerIngress.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressLoadBalancerIngress` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("hostname") != null && !jsonObj.get("hostname").isJsonNull()) && !jsonObj.get("hostname").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `hostname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostname").toString())); + } + if ((jsonObj.get("ip") != null && !jsonObj.get("ip").isJsonNull()) && !jsonObj.get("ip").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + V1IngressPortStatus.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressLoadBalancerIngress.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressLoadBalancerIngress' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressLoadBalancerIngress.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressLoadBalancerIngress value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressLoadBalancerIngress read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressLoadBalancerIngress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressLoadBalancerIngress + * @throws IOException if the JSON string is invalid with respect to V1IngressLoadBalancerIngress + */ + public static V1IngressLoadBalancerIngress fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressLoadBalancerIngress.class); + } + + /** + * Convert an instance of V1IngressLoadBalancerIngress to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java index 1fd26f1916..5a49ffd52e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressLoadBalancerIngress; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressLoadBalancerStatus represents the status of a load-balancer. */ @@ -34,8 +57,10 @@ public class V1IngressLoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) - private List ingress = null; + private List ingress; + public V1IngressLoadBalancerStatus() { + } public V1IngressLoadBalancerStatus ingress(List ingress) { @@ -55,9 +80,7 @@ public V1IngressLoadBalancerStatus addIngressItem(V1IngressLoadBalancerIngress i * ingress is a list containing ingress points for the load-balancer. * @return ingress **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ingress is a list containing ingress points for the load-balancer.") - + @jakarta.annotation.Nullable public List getIngress() { return ingress; } @@ -68,8 +91,9 @@ public void setIngress(List ingress) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(ingress); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ingress"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressLoadBalancerStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressLoadBalancerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressLoadBalancerStatus is not found in the empty JSON string", V1IngressLoadBalancerStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressLoadBalancerStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressLoadBalancerStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("ingress") != null && !jsonObj.get("ingress").isJsonNull()) { + JsonArray jsonArrayingress = jsonObj.getAsJsonArray("ingress"); + if (jsonArrayingress != null) { + // ensure the json data is an array + if (!jsonObj.get("ingress").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ingress` to be an array in the JSON string but got `%s`", jsonObj.get("ingress").toString())); + } + + // validate the optional field `ingress` (array) + for (int i = 0; i < jsonArrayingress.size(); i++) { + V1IngressLoadBalancerIngress.validateJsonObject(jsonArrayingress.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressLoadBalancerStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressLoadBalancerStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressLoadBalancerStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressLoadBalancerStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressLoadBalancerStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressLoadBalancerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressLoadBalancerStatus + * @throws IOException if the JSON string is invalid with respect to V1IngressLoadBalancerStatus + */ + public static V1IngressLoadBalancerStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressLoadBalancerStatus.class); + } + + /** + * Convert an instance of V1IngressLoadBalancerStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java index c99cfc2599..04a4bf1eb1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressPortStatus represents the error condition of a service port */ @@ -41,6 +64,8 @@ public class V1IngressPortStatus { @SerializedName(SERIALIZED_NAME_PROTOCOL) private String protocol; + public V1IngressPortStatus() { + } public V1IngressPortStatus error(String error) { @@ -52,9 +77,7 @@ public V1IngressPortStatus error(String error) { * 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. * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getError() { return error; } @@ -75,8 +98,7 @@ public V1IngressPortStatus port(Integer port) { * port is the port number of the ingress port. * @return port **/ - @ApiModelProperty(required = true, value = "port is the port number of the ingress port.") - + @jakarta.annotation.Nonnull public Integer getPort() { return port; } @@ -97,8 +119,7 @@ public V1IngressPortStatus protocol(String protocol) { * protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\" * @return protocol **/ - @ApiModelProperty(required = true, value = "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"") - + @jakarta.annotation.Nonnull public String getProtocol() { return protocol; } @@ -109,8 +130,9 @@ public void setProtocol(String protocol) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(error, port, protocol); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("error"); + openapiFields.add("port"); + openapiFields.add("protocol"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("port"); + openapiRequiredFields.add("protocol"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressPortStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressPortStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressPortStatus is not found in the empty JSON string", V1IngressPortStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressPortStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressPortStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IngressPortStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); + } + if (!jsonObj.get("protocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressPortStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressPortStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressPortStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressPortStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressPortStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressPortStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressPortStatus + * @throws IOException if the JSON string is invalid with respect to V1IngressPortStatus + */ + public static V1IngressPortStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressPortStatus.class); + } + + /** + * Convert an instance of V1IngressPortStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java index c5fb3acab3..4f5c54b135 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,6 +61,8 @@ public class V1IngressRule { @SerializedName(SERIALIZED_NAME_HTTP) private V1HTTPIngressRuleValue http; + public V1IngressRule() { + } public V1IngressRule host(String host) { @@ -49,9 +74,7 @@ public V1IngressRule host(String host) { * 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. * @return host **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getHost() { return host; } @@ -72,9 +95,7 @@ public V1IngressRule http(V1HTTPIngressRuleValue http) { * Get http * @return http **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1HTTPIngressRuleValue getHttp() { return http; } @@ -85,8 +106,9 @@ public void setHttp(V1HTTPIngressRuleValue http) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(host, http); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("host"); + openapiFields.add("http"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressRule is not found in the empty JSON string", V1IngressRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("host") != null && !jsonObj.get("host").isJsonNull()) && !jsonObj.get("host").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); + } + // validate the optional field `http` + if (jsonObj.get("http") != null && !jsonObj.get("http").isJsonNull()) { + V1HTTPIngressRuleValue.validateJsonObject(jsonObj.getAsJsonObject("http")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressRule + * @throws IOException if the JSON string is invalid with respect to V1IngressRule + */ + public static V1IngressRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressRule.class); + } + + /** + * Convert an instance of V1IngressRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java index 38e8603a4a..6887701b7d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ServiceBackendPort; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressServiceBackend references a Kubernetes Service as a Backend. */ @@ -38,6 +61,8 @@ public class V1IngressServiceBackend { @SerializedName(SERIALIZED_NAME_PORT) private V1ServiceBackendPort port; + public V1IngressServiceBackend() { + } public V1IngressServiceBackend name(String name) { @@ -49,8 +74,7 @@ public V1IngressServiceBackend name(String name) { * name is the referenced service. The service must exist in the same namespace as the Ingress object. * @return name **/ - @ApiModelProperty(required = true, value = "name is the referenced service. The service must exist in the same namespace as the Ingress object.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -71,9 +95,7 @@ public V1IngressServiceBackend port(V1ServiceBackendPort port) { * Get port * @return port **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ServiceBackendPort getPort() { return port; } @@ -84,8 +106,9 @@ public void setPort(V1ServiceBackendPort port) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +125,6 @@ public int hashCode() { return Objects.hash(name, port); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +139,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("port"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressServiceBackend + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressServiceBackend.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressServiceBackend is not found in the empty JSON string", V1IngressServiceBackend.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressServiceBackend.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressServiceBackend` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IngressServiceBackend.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `port` + if (jsonObj.get("port") != null && !jsonObj.get("port").isJsonNull()) { + V1ServiceBackendPort.validateJsonObject(jsonObj.getAsJsonObject("port")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressServiceBackend.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressServiceBackend' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressServiceBackend.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressServiceBackend value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressServiceBackend read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressServiceBackend given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressServiceBackend + * @throws IOException if the JSON string is invalid with respect to V1IngressServiceBackend + */ + public static V1IngressServiceBackend fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressServiceBackend.class); + } + + /** + * Convert an instance of V1IngressServiceBackend to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java index 23f65dd89f..fb3b7e200b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1IngressBackend; import io.kubernetes.client.openapi.models.V1IngressRule; import io.kubernetes.client.openapi.models.V1IngressTLS; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressSpec describes the Ingress the user wishes to exist. */ @@ -44,12 +67,14 @@ public class V1IngressSpec { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) - private List rules = null; + private List rules; public static final String SERIALIZED_NAME_TLS = "tls"; @SerializedName(SERIALIZED_NAME_TLS) - private List tls = null; + private List tls; + public V1IngressSpec() { + } public V1IngressSpec defaultBackend(V1IngressBackend defaultBackend) { @@ -61,9 +86,7 @@ public V1IngressSpec defaultBackend(V1IngressBackend defaultBackend) { * Get defaultBackend * @return defaultBackend **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1IngressBackend getDefaultBackend() { return defaultBackend; } @@ -84,9 +107,7 @@ public V1IngressSpec ingressClassName(String ingressClassName) { * 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. * @return ingressClassName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getIngressClassName() { return ingressClassName; } @@ -115,9 +136,7 @@ public V1IngressSpec addRulesItem(V1IngressRule rulesItem) { * 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. * @return rules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getRules() { return rules; } @@ -146,9 +165,7 @@ public V1IngressSpec addTlsItem(V1IngressTLS tlsItem) { * 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. * @return tls **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getTls() { return tls; } @@ -159,8 +176,9 @@ public void setTls(List tls) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -179,7 +197,6 @@ public int hashCode() { return Objects.hash(defaultBackend, ingressClassName, rules, tls); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -196,11 +213,132 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("defaultBackend"); + openapiFields.add("ingressClassName"); + openapiFields.add("rules"); + openapiFields.add("tls"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressSpec is not found in the empty JSON string", V1IngressSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `defaultBackend` + if (jsonObj.get("defaultBackend") != null && !jsonObj.get("defaultBackend").isJsonNull()) { + V1IngressBackend.validateJsonObject(jsonObj.getAsJsonObject("defaultBackend")); + } + if ((jsonObj.get("ingressClassName") != null && !jsonObj.get("ingressClassName").isJsonNull()) && !jsonObj.get("ingressClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ingressClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ingressClassName").toString())); + } + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + V1IngressRule.validateJsonObject(jsonArrayrules.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("tls") != null && !jsonObj.get("tls").isJsonNull()) { + JsonArray jsonArraytls = jsonObj.getAsJsonArray("tls"); + if (jsonArraytls != null) { + // ensure the json data is an array + if (!jsonObj.get("tls").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tls` to be an array in the JSON string but got `%s`", jsonObj.get("tls").toString())); + } + + // validate the optional field `tls` (array) + for (int i = 0; i < jsonArraytls.size(); i++) { + V1IngressTLS.validateJsonObject(jsonArraytls.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressSpec + * @throws IOException if the JSON string is invalid with respect to V1IngressSpec + */ + public static V1IngressSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressSpec.class); + } + + /** + * Convert an instance of V1IngressSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java index 4a8b84e885..e3e7a6c95c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressLoadBalancerStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressStatus describe the current state of the Ingress. */ @@ -34,6 +57,8 @@ public class V1IngressStatus { @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) private V1IngressLoadBalancerStatus loadBalancer; + public V1IngressStatus() { + } public V1IngressStatus loadBalancer(V1IngressLoadBalancerStatus loadBalancer) { @@ -45,9 +70,7 @@ public V1IngressStatus loadBalancer(V1IngressLoadBalancerStatus loadBalancer) { * Get loadBalancer * @return loadBalancer **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1IngressLoadBalancerStatus getLoadBalancer() { return loadBalancer; } @@ -58,8 +81,9 @@ public void setLoadBalancer(V1IngressLoadBalancerStatus loadBalancer) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(loadBalancer); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("loadBalancer"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressStatus is not found in the empty JSON string", V1IngressStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `loadBalancer` + if (jsonObj.get("loadBalancer") != null && !jsonObj.get("loadBalancer").isJsonNull()) { + V1IngressLoadBalancerStatus.validateJsonObject(jsonObj.getAsJsonObject("loadBalancer")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressStatus + * @throws IOException if the JSON string is invalid with respect to V1IngressStatus + */ + public static V1IngressStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressStatus.class); + } + + /** + * Convert an instance of V1IngressStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java index 49035fb36d..1253727db9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IngressTLS describes the transport layer security associated with an ingress. */ @@ -33,12 +56,14 @@ public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @SerializedName(SERIALIZED_NAME_HOSTS) - private List hosts = null; + private List hosts; public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; @SerializedName(SERIALIZED_NAME_SECRET_NAME) private String secretName; + public V1IngressTLS() { + } public V1IngressTLS hosts(List hosts) { @@ -58,9 +83,7 @@ public V1IngressTLS addHostsItem(String hostsItem) { * 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. * @return hosts **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getHosts() { return hosts; } @@ -81,9 +104,7 @@ public V1IngressTLS secretName(String secretName) { * 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. * @return secretName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getSecretName() { return secretName; } @@ -94,8 +115,9 @@ public void setSecretName(String secretName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -112,7 +134,6 @@ public int hashCode() { return Objects.hash(hosts, secretName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,11 +148,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("hosts"); + openapiFields.add("secretName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1IngressTLS + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1IngressTLS.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1IngressTLS is not found in the empty JSON string", V1IngressTLS.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1IngressTLS.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IngressTLS` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("hosts") != null && !jsonObj.get("hosts").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `hosts` to be an array in the JSON string but got `%s`", jsonObj.get("hosts").toString())); + } + if ((jsonObj.get("secretName") != null && !jsonObj.get("secretName").isJsonNull()) && !jsonObj.get("secretName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `secretName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1IngressTLS.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1IngressTLS' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1IngressTLS.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1IngressTLS value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1IngressTLS read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1IngressTLS given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1IngressTLS + * @throws IOException if the JSON string is invalid with respect to V1IngressTLS + */ + public static V1IngressTLS fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1IngressTLS.class); + } + + /** + * Convert an instance of V1IngressTLS to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java index 7a97a98396..d234d87ad4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java @@ -21,14 +21,37 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ExternalDocumentation; import io.kubernetes.client.openapi.models.V1ValidationRule; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). */ @@ -53,11 +76,11 @@ public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_ALL_OF = "allOf"; @SerializedName(SERIALIZED_NAME_ALL_OF) - private List allOf = null; + private List allOf; public static final String SERIALIZED_NAME_ANY_OF = "anyOf"; @SerializedName(SERIALIZED_NAME_ANY_OF) - private List anyOf = null; + private List anyOf; public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) @@ -65,11 +88,11 @@ public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_DEFINITIONS = "definitions"; @SerializedName(SERIALIZED_NAME_DEFINITIONS) - private Map definitions = null; + private Map definitions = new HashMap<>(); public static final String SERIALIZED_NAME_DEPENDENCIES = "dependencies"; @SerializedName(SERIALIZED_NAME_DEPENDENCIES) - private Map dependencies = null; + private Map dependencies = new HashMap<>(); public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -77,7 +100,7 @@ public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_ENUM = "enum"; @SerializedName(SERIALIZED_NAME_ENUM) - private List _enum = null; + private List _enum; public static final String SERIALIZED_NAME_EXAMPLE = "example"; @SerializedName(SERIALIZED_NAME_EXAMPLE) @@ -153,7 +176,7 @@ public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_ONE_OF = "oneOf"; @SerializedName(SERIALIZED_NAME_ONE_OF) - private List oneOf = null; + private List oneOf; public static final String SERIALIZED_NAME_PATTERN = "pattern"; @SerializedName(SERIALIZED_NAME_PATTERN) @@ -161,15 +184,15 @@ public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_PATTERN_PROPERTIES = "patternProperties"; @SerializedName(SERIALIZED_NAME_PATTERN_PROPERTIES) - private Map patternProperties = null; + private Map patternProperties = new HashMap<>(); public static final String SERIALIZED_NAME_PROPERTIES = "properties"; @SerializedName(SERIALIZED_NAME_PROPERTIES) - private Map properties = null; + private Map properties = new HashMap<>(); public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_REQUIRED) - private List required = null; + private List required; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -193,7 +216,7 @@ public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_X_KUBERNETES_LIST_MAP_KEYS = "x-kubernetes-list-map-keys"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_LIST_MAP_KEYS) - private List xKubernetesListMapKeys = null; + private List xKubernetesListMapKeys; public static final String SERIALIZED_NAME_X_KUBERNETES_LIST_TYPE = "x-kubernetes-list-type"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_LIST_TYPE) @@ -209,8 +232,10 @@ public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_X_KUBERNETES_VALIDATIONS = "x-kubernetes-validations"; @SerializedName(SERIALIZED_NAME_X_KUBERNETES_VALIDATIONS) - private List xKubernetesValidations = null; + private List xKubernetesValidations; + public V1JSONSchemaProps() { + } public V1JSONSchemaProps $ref(String $ref) { @@ -222,9 +247,7 @@ public class V1JSONSchemaProps { * Get $ref * @return $ref **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String get$Ref() { return $ref; } @@ -245,9 +268,7 @@ public class V1JSONSchemaProps { * Get $schema * @return $schema **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String get$Schema() { return $schema; } @@ -268,9 +289,7 @@ public V1JSONSchemaProps additionalItems(Object additionalItems) { * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. * @return additionalItems **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.") - + @jakarta.annotation.Nullable public Object getAdditionalItems() { return additionalItems; } @@ -291,9 +310,7 @@ public V1JSONSchemaProps additionalProperties(Object additionalProperties) { * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. * @return additionalProperties **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.") - + @jakarta.annotation.Nullable public Object getAdditionalProperties() { return additionalProperties; } @@ -322,9 +339,7 @@ public V1JSONSchemaProps addAllOfItem(V1JSONSchemaProps allOfItem) { * Get allOf * @return allOf **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public List getAllOf() { return allOf; } @@ -353,9 +368,7 @@ public V1JSONSchemaProps addAnyOfItem(V1JSONSchemaProps anyOfItem) { * Get anyOf * @return anyOf **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public List getAnyOf() { return anyOf; } @@ -376,9 +389,7 @@ public V1JSONSchemaProps _default(Object _default) { * 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. * @return _default **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Object getDefault() { return _default; } @@ -407,9 +418,7 @@ public V1JSONSchemaProps putDefinitionsItem(String key, V1JSONSchemaProps defini * Get definitions * @return definitions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Map getDefinitions() { return definitions; } @@ -438,9 +447,7 @@ public V1JSONSchemaProps putDependenciesItem(String key, Object dependenciesItem * Get dependencies * @return dependencies **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Map getDependencies() { return dependencies; } @@ -461,9 +468,7 @@ public V1JSONSchemaProps description(String description) { * Get description * @return description **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getDescription() { return description; } @@ -492,9 +497,7 @@ public V1JSONSchemaProps addEnumItem(Object _enumItem) { * Get _enum * @return _enum **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public List getEnum() { return _enum; } @@ -515,9 +518,7 @@ public V1JSONSchemaProps example(Object example) { * JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. * @return example **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.") - + @jakarta.annotation.Nullable public Object getExample() { return example; } @@ -538,9 +539,7 @@ public V1JSONSchemaProps exclusiveMaximum(Boolean exclusiveMaximum) { * Get exclusiveMaximum * @return exclusiveMaximum **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Boolean getExclusiveMaximum() { return exclusiveMaximum; } @@ -561,9 +560,7 @@ public V1JSONSchemaProps exclusiveMinimum(Boolean exclusiveMinimum) { * Get exclusiveMinimum * @return exclusiveMinimum **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Boolean getExclusiveMinimum() { return exclusiveMinimum; } @@ -584,9 +581,7 @@ public V1JSONSchemaProps externalDocs(V1ExternalDocumentation externalDocs) { * Get externalDocs * @return externalDocs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ExternalDocumentation getExternalDocs() { return externalDocs; } @@ -607,9 +602,7 @@ public V1JSONSchemaProps format(String format) { * 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. * @return format **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFormat() { return format; } @@ -630,9 +623,7 @@ public V1JSONSchemaProps id(String id) { * Get id * @return id **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getId() { return id; } @@ -653,9 +644,7 @@ public V1JSONSchemaProps items(Object items) { * JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.") - + @jakarta.annotation.Nullable public Object getItems() { return items; } @@ -676,9 +665,7 @@ public V1JSONSchemaProps maxItems(Long maxItems) { * Get maxItems * @return maxItems **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Long getMaxItems() { return maxItems; } @@ -699,9 +686,7 @@ public V1JSONSchemaProps maxLength(Long maxLength) { * Get maxLength * @return maxLength **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Long getMaxLength() { return maxLength; } @@ -722,9 +707,7 @@ public V1JSONSchemaProps maxProperties(Long maxProperties) { * Get maxProperties * @return maxProperties **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Long getMaxProperties() { return maxProperties; } @@ -745,9 +728,7 @@ public V1JSONSchemaProps maximum(Double maximum) { * Get maximum * @return maximum **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Double getMaximum() { return maximum; } @@ -768,9 +749,7 @@ public V1JSONSchemaProps minItems(Long minItems) { * Get minItems * @return minItems **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Long getMinItems() { return minItems; } @@ -791,9 +770,7 @@ public V1JSONSchemaProps minLength(Long minLength) { * Get minLength * @return minLength **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Long getMinLength() { return minLength; } @@ -814,9 +791,7 @@ public V1JSONSchemaProps minProperties(Long minProperties) { * Get minProperties * @return minProperties **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Long getMinProperties() { return minProperties; } @@ -837,9 +812,7 @@ public V1JSONSchemaProps minimum(Double minimum) { * Get minimum * @return minimum **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Double getMinimum() { return minimum; } @@ -860,9 +833,7 @@ public V1JSONSchemaProps multipleOf(Double multipleOf) { * Get multipleOf * @return multipleOf **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Double getMultipleOf() { return multipleOf; } @@ -883,9 +854,7 @@ public V1JSONSchemaProps not(V1JSONSchemaProps not) { * Get not * @return not **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1JSONSchemaProps getNot() { return not; } @@ -906,9 +875,7 @@ public V1JSONSchemaProps nullable(Boolean nullable) { * Get nullable * @return nullable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Boolean getNullable() { return nullable; } @@ -937,9 +904,7 @@ public V1JSONSchemaProps addOneOfItem(V1JSONSchemaProps oneOfItem) { * Get oneOf * @return oneOf **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public List getOneOf() { return oneOf; } @@ -960,9 +925,7 @@ public V1JSONSchemaProps pattern(String pattern) { * Get pattern * @return pattern **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getPattern() { return pattern; } @@ -991,9 +954,7 @@ public V1JSONSchemaProps putPatternPropertiesItem(String key, V1JSONSchemaProps * Get patternProperties * @return patternProperties **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Map getPatternProperties() { return patternProperties; } @@ -1022,9 +983,7 @@ public V1JSONSchemaProps putPropertiesItem(String key, V1JSONSchemaProps propert * Get properties * @return properties **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Map getProperties() { return properties; } @@ -1053,9 +1012,7 @@ public V1JSONSchemaProps addRequiredItem(String requiredItem) { * Get required * @return required **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public List getRequired() { return required; } @@ -1076,9 +1033,7 @@ public V1JSONSchemaProps title(String title) { * Get title * @return title **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getTitle() { return title; } @@ -1099,9 +1054,7 @@ public V1JSONSchemaProps type(String type) { * Get type * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -1122,9 +1075,7 @@ public V1JSONSchemaProps uniqueItems(Boolean uniqueItems) { * Get uniqueItems * @return uniqueItems **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public Boolean getUniqueItems() { return uniqueItems; } @@ -1145,9 +1096,7 @@ public V1JSONSchemaProps xKubernetesEmbeddedResource(Boolean xKubernetesEmbedded * 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). * @return xKubernetesEmbeddedResource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public Boolean getxKubernetesEmbeddedResource() { return xKubernetesEmbeddedResource; } @@ -1168,9 +1117,7 @@ public V1JSONSchemaProps xKubernetesIntOrString(Boolean xKubernetesIntOrString) * 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 * @return xKubernetesIntOrString **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getxKubernetesIntOrString() { return xKubernetesIntOrString; } @@ -1199,9 +1146,7 @@ public V1JSONSchemaProps addXKubernetesListMapKeysItem(String xKubernetesListMap * 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. * @return xKubernetesListMapKeys **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getxKubernetesListMapKeys() { return xKubernetesListMapKeys; } @@ -1222,9 +1167,7 @@ public V1JSONSchemaProps xKubernetesListType(String xKubernetesListType) { * 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. * @return xKubernetesListType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getxKubernetesListType() { return xKubernetesListType; } @@ -1245,9 +1188,7 @@ public V1JSONSchemaProps xKubernetesMapType(String xKubernetesMapType) { * 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. * @return xKubernetesMapType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getxKubernetesMapType() { return xKubernetesMapType; } @@ -1268,9 +1209,7 @@ public V1JSONSchemaProps xKubernetesPreserveUnknownFields(Boolean xKubernetesPre * 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. * @return xKubernetesPreserveUnknownFields **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getxKubernetesPreserveUnknownFields() { return xKubernetesPreserveUnknownFields; } @@ -1299,9 +1238,7 @@ public V1JSONSchemaProps addXKubernetesValidationsItem(V1ValidationRule xKuberne * 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. * @return xKubernetesValidations **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getxKubernetesValidations() { return xKubernetesValidations; } @@ -1312,8 +1249,9 @@ public void setxKubernetesValidations(List xKubernetesValidati } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -1372,7 +1310,6 @@ public int hashCode() { return Objects.hash($ref, $schema, additionalItems, additionalProperties, allOf, anyOf, _default, definitions, dependencies, description, _enum, example, exclusiveMaximum, exclusiveMinimum, externalDocs, format, id, items, maxItems, maxLength, maxProperties, maximum, minItems, minLength, minProperties, minimum, multipleOf, not, nullable, oneOf, pattern, patternProperties, properties, required, title, type, uniqueItems, xKubernetesEmbeddedResource, xKubernetesIntOrString, xKubernetesListMapKeys, xKubernetesListType, xKubernetesMapType, xKubernetesPreserveUnknownFields, xKubernetesValidations); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -1429,11 +1366,243 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("$ref"); + openapiFields.add("$schema"); + openapiFields.add("additionalItems"); + openapiFields.add("additionalProperties"); + openapiFields.add("allOf"); + openapiFields.add("anyOf"); + openapiFields.add("default"); + openapiFields.add("definitions"); + openapiFields.add("dependencies"); + openapiFields.add("description"); + openapiFields.add("enum"); + openapiFields.add("example"); + openapiFields.add("exclusiveMaximum"); + openapiFields.add("exclusiveMinimum"); + openapiFields.add("externalDocs"); + openapiFields.add("format"); + openapiFields.add("id"); + openapiFields.add("items"); + openapiFields.add("maxItems"); + openapiFields.add("maxLength"); + openapiFields.add("maxProperties"); + openapiFields.add("maximum"); + openapiFields.add("minItems"); + openapiFields.add("minLength"); + openapiFields.add("minProperties"); + openapiFields.add("minimum"); + openapiFields.add("multipleOf"); + openapiFields.add("not"); + openapiFields.add("nullable"); + openapiFields.add("oneOf"); + openapiFields.add("pattern"); + openapiFields.add("patternProperties"); + openapiFields.add("properties"); + openapiFields.add("required"); + openapiFields.add("title"); + openapiFields.add("type"); + openapiFields.add("uniqueItems"); + openapiFields.add("x-kubernetes-embedded-resource"); + openapiFields.add("x-kubernetes-int-or-string"); + openapiFields.add("x-kubernetes-list-map-keys"); + openapiFields.add("x-kubernetes-list-type"); + openapiFields.add("x-kubernetes-map-type"); + openapiFields.add("x-kubernetes-preserve-unknown-fields"); + openapiFields.add("x-kubernetes-validations"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1JSONSchemaProps + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1JSONSchemaProps.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1JSONSchemaProps is not found in the empty JSON string", V1JSONSchemaProps.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1JSONSchemaProps.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1JSONSchemaProps` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("$ref") != null && !jsonObj.get("$ref").isJsonNull()) && !jsonObj.get("$ref").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `$ref` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$ref").toString())); + } + if ((jsonObj.get("$schema") != null && !jsonObj.get("$schema").isJsonNull()) && !jsonObj.get("$schema").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `$schema` to be a primitive type in the JSON string but got `%s`", jsonObj.get("$schema").toString())); + } + if (jsonObj.get("allOf") != null && !jsonObj.get("allOf").isJsonNull()) { + JsonArray jsonArrayallOf = jsonObj.getAsJsonArray("allOf"); + if (jsonArrayallOf != null) { + // ensure the json data is an array + if (!jsonObj.get("allOf").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `allOf` to be an array in the JSON string but got `%s`", jsonObj.get("allOf").toString())); + } + + // validate the optional field `allOf` (array) + for (int i = 0; i < jsonArrayallOf.size(); i++) { + V1JSONSchemaProps.validateJsonObject(jsonArrayallOf.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("anyOf") != null && !jsonObj.get("anyOf").isJsonNull()) { + JsonArray jsonArrayanyOf = jsonObj.getAsJsonArray("anyOf"); + if (jsonArrayanyOf != null) { + // ensure the json data is an array + if (!jsonObj.get("anyOf").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `anyOf` to be an array in the JSON string but got `%s`", jsonObj.get("anyOf").toString())); + } + + // validate the optional field `anyOf` (array) + for (int i = 0; i < jsonArrayanyOf.size(); i++) { + V1JSONSchemaProps.validateJsonObject(jsonArrayanyOf.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("enum") != null && !jsonObj.get("enum").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `enum` to be an array in the JSON string but got `%s`", jsonObj.get("enum").toString())); + } + // validate the optional field `externalDocs` + if (jsonObj.get("externalDocs") != null && !jsonObj.get("externalDocs").isJsonNull()) { + V1ExternalDocumentation.validateJsonObject(jsonObj.getAsJsonObject("externalDocs")); + } + if ((jsonObj.get("format") != null && !jsonObj.get("format").isJsonNull()) && !jsonObj.get("format").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `format` to be a primitive type in the JSON string but got `%s`", jsonObj.get("format").toString())); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + // validate the optional field `not` + if (jsonObj.get("not") != null && !jsonObj.get("not").isJsonNull()) { + V1JSONSchemaProps.validateJsonObject(jsonObj.getAsJsonObject("not")); + } + if (jsonObj.get("oneOf") != null && !jsonObj.get("oneOf").isJsonNull()) { + JsonArray jsonArrayoneOf = jsonObj.getAsJsonArray("oneOf"); + if (jsonArrayoneOf != null) { + // ensure the json data is an array + if (!jsonObj.get("oneOf").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `oneOf` to be an array in the JSON string but got `%s`", jsonObj.get("oneOf").toString())); + } + + // validate the optional field `oneOf` (array) + for (int i = 0; i < jsonArrayoneOf.size(); i++) { + V1JSONSchemaProps.validateJsonObject(jsonArrayoneOf.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("pattern") != null && !jsonObj.get("pattern").isJsonNull()) && !jsonObj.get("pattern").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pattern` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pattern").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `required` to be an array in the JSON string but got `%s`", jsonObj.get("required").toString())); + } + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("x-kubernetes-list-map-keys") != null && !jsonObj.get("x-kubernetes-list-map-keys").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `x-kubernetes-list-map-keys` to be an array in the JSON string but got `%s`", jsonObj.get("x-kubernetes-list-map-keys").toString())); + } + if ((jsonObj.get("x-kubernetes-list-type") != null && !jsonObj.get("x-kubernetes-list-type").isJsonNull()) && !jsonObj.get("x-kubernetes-list-type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `x-kubernetes-list-type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("x-kubernetes-list-type").toString())); + } + if ((jsonObj.get("x-kubernetes-map-type") != null && !jsonObj.get("x-kubernetes-map-type").isJsonNull()) && !jsonObj.get("x-kubernetes-map-type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `x-kubernetes-map-type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("x-kubernetes-map-type").toString())); + } + if (jsonObj.get("x-kubernetes-validations") != null && !jsonObj.get("x-kubernetes-validations").isJsonNull()) { + JsonArray jsonArrayxKubernetesValidations = jsonObj.getAsJsonArray("x-kubernetes-validations"); + if (jsonArrayxKubernetesValidations != null) { + // ensure the json data is an array + if (!jsonObj.get("x-kubernetes-validations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `x-kubernetes-validations` to be an array in the JSON string but got `%s`", jsonObj.get("x-kubernetes-validations").toString())); + } + + // validate the optional field `x-kubernetes-validations` (array) + for (int i = 0; i < jsonArrayxKubernetesValidations.size(); i++) { + V1ValidationRule.validateJsonObject(jsonArrayxKubernetesValidations.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1JSONSchemaProps.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1JSONSchemaProps' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1JSONSchemaProps.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1JSONSchemaProps value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1JSONSchemaProps read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1JSONSchemaProps given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JSONSchemaProps + * @throws IOException if the JSON string is invalid with respect to V1JSONSchemaProps + */ + public static V1JSONSchemaProps fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1JSONSchemaProps.class); + } + + /** + * Convert an instance of V1JSONSchemaProps to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java index 8bf5634cca..c4ecea2e68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1JobSpec; import io.kubernetes.client.openapi.models.V1JobStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Job represents the configuration of a single job. */ @@ -52,6 +75,8 @@ public class V1Job implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_STATUS) private V1JobStatus status; + public V1Job() { + } public V1Job apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1Job apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1Job kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1Job metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1Job spec(V1JobSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1JobSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1Job status(V1JobStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1JobStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1JobStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Job + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Job.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Job is not found in the empty JSON string", V1Job.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Job.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Job` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1JobSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1JobStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Job.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Job' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Job.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Job value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Job read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Job given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Job + * @throws IOException if the JSON string is invalid with respect to V1Job + */ + public static V1Job fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Job.class); + } + + /** + * Convert an instance of V1Job to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java index 385fa747be..f3ee71e0ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * JobCondition describes current state of a job. */ @@ -54,6 +77,8 @@ public class V1JobCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1JobCondition() { + } public V1JobCondition lastProbeTime(OffsetDateTime lastProbeTime) { @@ -65,9 +90,7 @@ public V1JobCondition lastProbeTime(OffsetDateTime lastProbeTime) { * Last time the condition was checked. * @return lastProbeTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition was checked.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastProbeTime() { return lastProbeTime; } @@ -88,9 +111,7 @@ public V1JobCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { * Last time the condition transit from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transit from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -111,9 +132,7 @@ public V1JobCondition message(String message) { * Human readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Human readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -134,9 +153,7 @@ public V1JobCondition reason(String reason) { * (brief) reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "(brief) reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -157,8 +174,7 @@ public V1JobCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -179,8 +195,7 @@ public V1JobCondition type(String type) { * Type of job condition, Complete or Failed. * @return type **/ - @ApiModelProperty(required = true, value = "Type of job condition, Complete or Failed.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -191,8 +206,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -213,7 +229,6 @@ public int hashCode() { return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -232,11 +247,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastProbeTime"); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1JobCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1JobCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1JobCondition is not found in the empty JSON string", V1JobCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1JobCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1JobCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1JobCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1JobCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1JobCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1JobCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1JobCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1JobCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1JobCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobCondition + * @throws IOException if the JSON string is invalid with respect to V1JobCondition + */ + public static V1JobCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1JobCondition.class); + } + + /** + * Convert an instance of V1JobCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java index 9874a65a2f..b925920b43 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Job; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * JobList is a collection of jobs. */ @@ -49,6 +72,8 @@ public class V1JobList implements io.kubernetes.client.common.KubernetesListObje @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1JobList() { + } public V1JobList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1JobList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1JobList items(List items) { } public V1JobList addItemsItem(V1Job itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1JobList addItemsItem(V1Job itemsItem) { * items is the list of Jobs. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of Jobs.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1JobList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1JobList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1JobList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1JobList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1JobList is not found in the empty JSON string", V1JobList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1JobList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1JobList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1JobList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Job.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1JobList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1JobList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1JobList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1JobList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1JobList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1JobList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobList + * @throws IOException if the JSON string is invalid with respect to V1JobList + */ + public static V1JobList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1JobList.class); + } + + /** + * Convert an instance of V1JobList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java index 7dce8a5215..8d678038b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1PodFailurePolicy; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * JobSpec describes how the job execution will look like. */ @@ -88,6 +111,8 @@ public class V1JobSpec { @SerializedName(SERIALIZED_NAME_TTL_SECONDS_AFTER_FINISHED) private Integer ttlSecondsAfterFinished; + public V1JobSpec() { + } public V1JobSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { @@ -99,9 +124,7 @@ public V1JobSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { * 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. * @return activeDeadlineSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getActiveDeadlineSeconds() { return activeDeadlineSeconds; } @@ -122,9 +145,7 @@ public V1JobSpec backoffLimit(Integer backoffLimit) { * Specifies the number of retries before marking this job failed. Defaults to 6 * @return backoffLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Specifies the number of retries before marking this job failed. Defaults to 6") - + @jakarta.annotation.Nullable public Integer getBackoffLimit() { return backoffLimit; } @@ -168,9 +189,7 @@ public V1JobSpec completionMode(String completionMode) { * 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. * @return completionMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getCompletionMode() { return completionMode; } @@ -191,9 +210,7 @@ public V1JobSpec completions(Integer completions) { * 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/ * @return completions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public Integer getCompletions() { return completions; } @@ -214,9 +231,7 @@ public V1JobSpec manualSelector(Boolean manualSelector) { * 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 * @return manualSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getManualSelector() { return manualSelector; } @@ -260,9 +275,7 @@ public V1JobSpec parallelism(Integer parallelism) { * 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/ * @return parallelism **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public Integer getParallelism() { return parallelism; } @@ -283,9 +296,7 @@ public V1JobSpec podFailurePolicy(V1PodFailurePolicy podFailurePolicy) { * Get podFailurePolicy * @return podFailurePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodFailurePolicy getPodFailurePolicy() { return podFailurePolicy; } @@ -329,9 +340,7 @@ public V1JobSpec selector(V1LabelSelector selector) { * Get selector * @return selector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getSelector() { return selector; } @@ -352,9 +361,7 @@ public V1JobSpec suspend(Boolean suspend) { * 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. * @return suspend **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getSuspend() { return suspend; } @@ -375,8 +382,7 @@ public V1JobSpec template(V1PodTemplateSpec template) { * Get template * @return template **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1PodTemplateSpec getTemplate() { return template; } @@ -397,9 +403,7 @@ public V1JobSpec ttlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { * 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. * @return ttlSecondsAfterFinished **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getTtlSecondsAfterFinished() { return ttlSecondsAfterFinished; } @@ -410,8 +414,9 @@ public void setTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -440,7 +445,6 @@ public int hashCode() { return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, suspend, template, ttlSecondsAfterFinished); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -467,11 +471,131 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("activeDeadlineSeconds"); + openapiFields.add("backoffLimit"); + openapiFields.add("backoffLimitPerIndex"); + openapiFields.add("completionMode"); + openapiFields.add("completions"); + openapiFields.add("manualSelector"); + openapiFields.add("maxFailedIndexes"); + openapiFields.add("parallelism"); + openapiFields.add("podFailurePolicy"); + openapiFields.add("podReplacementPolicy"); + openapiFields.add("selector"); + openapiFields.add("suspend"); + openapiFields.add("template"); + openapiFields.add("ttlSecondsAfterFinished"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("template"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1JobSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1JobSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1JobSpec is not found in the empty JSON string", V1JobSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1JobSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1JobSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1JobSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("completionMode") != null && !jsonObj.get("completionMode").isJsonNull()) && !jsonObj.get("completionMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `completionMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("completionMode").toString())); + } + // validate the optional field `podFailurePolicy` + if (jsonObj.get("podFailurePolicy") != null && !jsonObj.get("podFailurePolicy").isJsonNull()) { + V1PodFailurePolicy.validateJsonObject(jsonObj.getAsJsonObject("podFailurePolicy")); + } + if ((jsonObj.get("podReplacementPolicy") != null && !jsonObj.get("podReplacementPolicy").isJsonNull()) && !jsonObj.get("podReplacementPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `podReplacementPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podReplacementPolicy").toString())); + } + // validate the optional field `selector` + if (jsonObj.get("selector") != null && !jsonObj.get("selector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + } + // validate the required field `template` + V1PodTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("template")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1JobSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1JobSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1JobSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1JobSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1JobSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1JobSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobSpec + * @throws IOException if the JSON string is invalid with respect to V1JobSpec + */ + public static V1JobSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1JobSpec.class); + } + + /** + * Convert an instance of V1JobSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java index 665d49dced..77f09d968c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java @@ -21,13 +21,36 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1JobCondition; import io.kubernetes.client.openapi.models.V1UncountedTerminatedPods; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * JobStatus represents the current state of a Job. */ @@ -48,7 +71,7 @@ public class V1JobStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) @@ -78,6 +101,8 @@ public class V1JobStatus { @SerializedName(SERIALIZED_NAME_UNCOUNTED_TERMINATED_PODS) private V1UncountedTerminatedPods uncountedTerminatedPods; + public V1JobStatus() { + } public V1JobStatus active(Integer active) { @@ -89,9 +114,7 @@ public V1JobStatus active(Integer active) { * The number of pending and running pods. * @return active **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pending and running pods.") - + @jakarta.annotation.Nullable public Integer getActive() { return active; } @@ -112,9 +135,7 @@ public V1JobStatus completedIndexes(String completedIndexes) { * 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\". * @return completedIndexes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public String getCompletedIndexes() { return completedIndexes; } @@ -135,9 +156,7 @@ public V1JobStatus completionTime(OffsetDateTime completionTime) { * 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. * @return completionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public OffsetDateTime getCompletionTime() { return completionTime; } @@ -166,9 +185,7 @@ public V1JobStatus addConditionsItem(V1JobCondition conditionsItem) { * 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/ * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -189,9 +206,7 @@ public V1JobStatus failed(Integer failed) { * The number of pods which reached phase Failed. * @return failed **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods which reached phase Failed.") - + @jakarta.annotation.Nullable public Integer getFailed() { return failed; } @@ -235,9 +250,7 @@ public V1JobStatus ready(Integer ready) { * The number of pods which have a Ready condition. This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default). * @return ready **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods which have a Ready condition. This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).") - + @jakarta.annotation.Nullable public Integer getReady() { return ready; } @@ -258,9 +271,7 @@ public V1JobStatus startTime(OffsetDateTime startTime) { * 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. * @return startTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } @@ -281,9 +292,7 @@ public V1JobStatus succeeded(Integer succeeded) { * The number of pods which reached phase Succeeded. * @return succeeded **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods which reached phase Succeeded.") - + @jakarta.annotation.Nullable public Integer getSucceeded() { return succeeded; } @@ -327,9 +336,7 @@ public V1JobStatus uncountedTerminatedPods(V1UncountedTerminatedPods uncountedTe * Get uncountedTerminatedPods * @return uncountedTerminatedPods **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1UncountedTerminatedPods getUncountedTerminatedPods() { return uncountedTerminatedPods; } @@ -340,8 +347,9 @@ public void setUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTermin } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -367,7 +375,6 @@ public int hashCode() { return Objects.hash(active, completedIndexes, completionTime, conditions, failed, failedIndexes, ready, startTime, succeeded, terminating, uncountedTerminatedPods); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -391,11 +398,128 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("active"); + openapiFields.add("completedIndexes"); + openapiFields.add("completionTime"); + openapiFields.add("conditions"); + openapiFields.add("failed"); + openapiFields.add("failedIndexes"); + openapiFields.add("ready"); + openapiFields.add("startTime"); + openapiFields.add("succeeded"); + openapiFields.add("terminating"); + openapiFields.add("uncountedTerminatedPods"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1JobStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1JobStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1JobStatus is not found in the empty JSON string", V1JobStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1JobStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1JobStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("completedIndexes") != null && !jsonObj.get("completedIndexes").isJsonNull()) && !jsonObj.get("completedIndexes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `completedIndexes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("completedIndexes").toString())); + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1JobCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("failedIndexes") != null && !jsonObj.get("failedIndexes").isJsonNull()) && !jsonObj.get("failedIndexes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `failedIndexes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("failedIndexes").toString())); + } + // validate the optional field `uncountedTerminatedPods` + if (jsonObj.get("uncountedTerminatedPods") != null && !jsonObj.get("uncountedTerminatedPods").isJsonNull()) { + V1UncountedTerminatedPods.validateJsonObject(jsonObj.getAsJsonObject("uncountedTerminatedPods")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1JobStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1JobStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1JobStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1JobStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1JobStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1JobStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobStatus + * @throws IOException if the JSON string is invalid with respect to V1JobStatus + */ + public static V1JobStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1JobStatus.class); + } + + /** + * Convert an instance of V1JobStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java index b2a628983d..9f758f8251 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1JobSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * JobTemplateSpec describes the data a Job should have when created from a template */ @@ -39,6 +62,8 @@ public class V1JobTemplateSpec { @SerializedName(SERIALIZED_NAME_SPEC) private V1JobSpec spec; + public V1JobTemplateSpec() { + } public V1JobTemplateSpec metadata(V1ObjectMeta metadata) { @@ -50,9 +75,7 @@ public V1JobTemplateSpec metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -73,9 +96,7 @@ public V1JobTemplateSpec spec(V1JobSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1JobSpec getSpec() { return spec; } @@ -86,8 +107,9 @@ public void setSpec(V1JobSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -104,7 +126,6 @@ public int hashCode() { return Objects.hash(metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -119,11 +140,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1JobTemplateSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1JobTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1JobTemplateSpec is not found in the empty JSON string", V1JobTemplateSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1JobTemplateSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1JobTemplateSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1JobSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1JobTemplateSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1JobTemplateSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1JobTemplateSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1JobTemplateSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1JobTemplateSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1JobTemplateSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobTemplateSpec + * @throws IOException if the JSON string is invalid with respect to V1JobTemplateSpec + */ + public static V1JobTemplateSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1JobTemplateSpec.class); + } + + /** + * Convert an instance of V1JobTemplateSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java index ff312e0734..7292a2e969 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Maps a string key to a path within a volume. */ @@ -41,6 +64,8 @@ public class V1KeyToPath { @SerializedName(SERIALIZED_NAME_PATH) private String path; + public V1KeyToPath() { + } public V1KeyToPath key(String key) { @@ -52,8 +77,7 @@ public V1KeyToPath key(String key) { * key is the key to project. * @return key **/ - @ApiModelProperty(required = true, value = "key is the key to project.") - + @jakarta.annotation.Nonnull public String getKey() { return key; } @@ -74,9 +98,7 @@ public V1KeyToPath mode(Integer mode) { * 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. * @return mode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getMode() { return mode; } @@ -97,8 +119,7 @@ public V1KeyToPath path(String path) { * 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 '..'. * @return path **/ - @ApiModelProperty(required = true, value = "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 '..'.") - + @jakarta.annotation.Nonnull public String getPath() { return path; } @@ -109,8 +130,9 @@ public void setPath(String path) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(key, mode, path); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("mode"); + openapiFields.add("path"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + openapiRequiredFields.add("path"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1KeyToPath + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1KeyToPath.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1KeyToPath is not found in the empty JSON string", V1KeyToPath.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1KeyToPath.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1KeyToPath` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1KeyToPath.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1KeyToPath.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1KeyToPath' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1KeyToPath.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1KeyToPath value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1KeyToPath read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1KeyToPath given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1KeyToPath + * @throws IOException if the JSON string is invalid with respect to V1KeyToPath + */ + public static V1KeyToPath fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1KeyToPath.class); + } + + /** + * Convert an instance of V1KeyToPath to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java index 8d86fa951d..222e8ea6cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java @@ -20,14 +20,37 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelectorRequirement; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -36,12 +59,14 @@ public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) - private List matchExpressions = null; + private List matchExpressions; public static final String SERIALIZED_NAME_MATCH_LABELS = "matchLabels"; @SerializedName(SERIALIZED_NAME_MATCH_LABELS) - private Map matchLabels = null; + private Map matchLabels = new HashMap<>(); + public V1LabelSelector() { + } public V1LabelSelector matchExpressions(List matchExpressions) { @@ -61,9 +86,7 @@ public V1LabelSelector addMatchExpressionsItem(V1LabelSelectorRequirement matchE * matchExpressions is a list of label selector requirements. The requirements are ANDed. * @return matchExpressions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") - + @jakarta.annotation.Nullable public List getMatchExpressions() { return matchExpressions; } @@ -92,9 +115,7 @@ public V1LabelSelector putMatchLabelsItem(String key, String matchLabelsItem) { * 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. * @return matchLabels **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getMatchLabels() { return matchLabels; } @@ -105,8 +126,9 @@ public void setMatchLabels(Map matchLabels) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -123,7 +145,6 @@ public int hashCode() { return Objects.hash(matchExpressions, matchLabels); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -138,11 +159,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("matchExpressions"); + openapiFields.add("matchLabels"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LabelSelector + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LabelSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LabelSelector is not found in the empty JSON string", V1LabelSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LabelSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LabelSelector` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("matchExpressions") != null && !jsonObj.get("matchExpressions").isJsonNull()) { + JsonArray jsonArraymatchExpressions = jsonObj.getAsJsonArray("matchExpressions"); + if (jsonArraymatchExpressions != null) { + // ensure the json data is an array + if (!jsonObj.get("matchExpressions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchExpressions` to be an array in the JSON string but got `%s`", jsonObj.get("matchExpressions").toString())); + } + + // validate the optional field `matchExpressions` (array) + for (int i = 0; i < jsonArraymatchExpressions.size(); i++) { + V1LabelSelectorRequirement.validateJsonObject(jsonArraymatchExpressions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LabelSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LabelSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LabelSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LabelSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LabelSelector read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LabelSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LabelSelector + * @throws IOException if the JSON string is invalid with respect to V1LabelSelector + */ + public static V1LabelSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LabelSelector.class); + } + + /** + * Convert an instance of V1LabelSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java index 63b59385f2..54f2e8e73e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @@ -41,8 +64,10 @@ public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) - private List values = null; + private List values; + public V1LabelSelectorRequirement() { + } public V1LabelSelectorRequirement key(String key) { @@ -54,8 +79,7 @@ public V1LabelSelectorRequirement key(String key) { * key is the label key that the selector applies to. * @return key **/ - @ApiModelProperty(required = true, value = "key is the label key that the selector applies to.") - + @jakarta.annotation.Nonnull public String getKey() { return key; } @@ -76,8 +100,7 @@ public V1LabelSelectorRequirement operator(String operator) { * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * @return operator **/ - @ApiModelProperty(required = true, value = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.") - + @jakarta.annotation.Nonnull public String getOperator() { return operator; } @@ -106,9 +129,7 @@ public V1LabelSelectorRequirement addValuesItem(String valuesItem) { * 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. * @return values **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getValues() { return values; } @@ -119,8 +140,9 @@ public void setValues(List values) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -138,7 +160,6 @@ public int hashCode() { return Objects.hash(key, operator, values); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -154,11 +175,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("operator"); + openapiFields.add("values"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + openapiRequiredFields.add("operator"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LabelSelectorRequirement + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LabelSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LabelSelectorRequirement is not found in the empty JSON string", V1LabelSelectorRequirement.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LabelSelectorRequirement.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LabelSelectorRequirement` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1LabelSelectorRequirement.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if (!jsonObj.get("operator").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LabelSelectorRequirement.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LabelSelectorRequirement' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LabelSelectorRequirement.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LabelSelectorRequirement value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LabelSelectorRequirement read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LabelSelectorRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LabelSelectorRequirement + * @throws IOException if the JSON string is invalid with respect to V1LabelSelectorRequirement + */ + public static V1LabelSelectorRequirement fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LabelSelectorRequirement.class); + } + + /** + * Convert an instance of V1LabelSelectorRequirement to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java index 2faebcb63e..976d401669 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LeaseSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Lease defines a lease concept. */ @@ -47,6 +70,8 @@ public class V1Lease implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_SPEC) private V1LeaseSpec spec; + public V1Lease() { + } public V1Lease apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1Lease apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1Lease kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1Lease metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1Lease spec(V1LeaseSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LeaseSpec getSpec() { return spec; } @@ -140,8 +157,9 @@ public void setSpec(V1LeaseSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Lease + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Lease.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Lease is not found in the empty JSON string", V1Lease.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Lease.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Lease` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1LeaseSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Lease.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Lease' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Lease.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Lease value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Lease read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Lease given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Lease + * @throws IOException if the JSON string is invalid with respect to V1Lease + */ + public static V1Lease fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Lease.class); + } + + /** + * Convert an instance of V1Lease to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java index 6f8a4edbd5..52468481ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Lease; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LeaseList is a list of Lease objects. */ @@ -49,6 +72,8 @@ public class V1LeaseList implements io.kubernetes.client.common.KubernetesListOb @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1LeaseList() { + } public V1LeaseList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1LeaseList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1LeaseList items(List items) { } public V1LeaseList addItemsItem(V1Lease itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1LeaseList addItemsItem(V1Lease itemsItem) { * items is a list of schema objects. * @return items **/ - @ApiModelProperty(required = true, value = "items is a list of schema objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1LeaseList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1LeaseList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LeaseList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LeaseList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LeaseList is not found in the empty JSON string", V1LeaseList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LeaseList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LeaseList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1LeaseList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Lease.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LeaseList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LeaseList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LeaseList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LeaseList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LeaseList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LeaseList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LeaseList + * @throws IOException if the JSON string is invalid with respect to V1LeaseList + */ + public static V1LeaseList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LeaseList.class); + } + + /** + * Convert an instance of V1LeaseList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java index 3edf6e728b..4f44b6e7fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LeaseSpec is a specification of a Lease. */ @@ -50,6 +73,8 @@ public class V1LeaseSpec { @SerializedName(SERIALIZED_NAME_RENEW_TIME) private OffsetDateTime renewTime; + public V1LeaseSpec() { + } public V1LeaseSpec acquireTime(OffsetDateTime acquireTime) { @@ -61,9 +86,7 @@ public V1LeaseSpec acquireTime(OffsetDateTime acquireTime) { * acquireTime is a time when the current lease was acquired. * @return acquireTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "acquireTime is a time when the current lease was acquired.") - + @jakarta.annotation.Nullable public OffsetDateTime getAcquireTime() { return acquireTime; } @@ -84,9 +107,7 @@ public V1LeaseSpec holderIdentity(String holderIdentity) { * holderIdentity contains the identity of the holder of a current lease. * @return holderIdentity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "holderIdentity contains the identity of the holder of a current lease.") - + @jakarta.annotation.Nullable public String getHolderIdentity() { return holderIdentity; } @@ -107,9 +128,7 @@ public V1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds) { * 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. * @return leaseDurationSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getLeaseDurationSeconds() { return leaseDurationSeconds; } @@ -130,9 +149,7 @@ public V1LeaseSpec leaseTransitions(Integer leaseTransitions) { * leaseTransitions is the number of transitions of a lease between holders. * @return leaseTransitions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "leaseTransitions is the number of transitions of a lease between holders.") - + @jakarta.annotation.Nullable public Integer getLeaseTransitions() { return leaseTransitions; } @@ -153,9 +170,7 @@ public V1LeaseSpec renewTime(OffsetDateTime renewTime) { * renewTime is a time when the current holder of a lease has last updated the lease. * @return renewTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "renewTime is a time when the current holder of a lease has last updated the lease.") - + @jakarta.annotation.Nullable public OffsetDateTime getRenewTime() { return renewTime; } @@ -166,8 +181,9 @@ public void setRenewTime(OffsetDateTime renewTime) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -187,7 +203,6 @@ public int hashCode() { return Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, renewTime); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +220,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("acquireTime"); + openapiFields.add("holderIdentity"); + openapiFields.add("leaseDurationSeconds"); + openapiFields.add("leaseTransitions"); + openapiFields.add("renewTime"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LeaseSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LeaseSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LeaseSpec is not found in the empty JSON string", V1LeaseSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LeaseSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LeaseSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("holderIdentity") != null && !jsonObj.get("holderIdentity").isJsonNull()) && !jsonObj.get("holderIdentity").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `holderIdentity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("holderIdentity").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LeaseSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LeaseSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LeaseSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LeaseSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LeaseSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LeaseSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LeaseSpec + * @throws IOException if the JSON string is invalid with respect to V1LeaseSpec + */ + public static V1LeaseSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LeaseSpec.class); + } + + /** + * Convert an instance of V1LeaseSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java index 1586a04de3..bc539c2a0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LifecycleHandler; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,6 +61,8 @@ public class V1Lifecycle { @SerializedName(SERIALIZED_NAME_PRE_STOP) private V1LifecycleHandler preStop; + public V1Lifecycle() { + } public V1Lifecycle postStart(V1LifecycleHandler postStart) { @@ -49,9 +74,7 @@ public V1Lifecycle postStart(V1LifecycleHandler postStart) { * Get postStart * @return postStart **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LifecycleHandler getPostStart() { return postStart; } @@ -72,9 +95,7 @@ public V1Lifecycle preStop(V1LifecycleHandler preStop) { * Get preStop * @return preStop **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LifecycleHandler getPreStop() { return preStop; } @@ -85,8 +106,9 @@ public void setPreStop(V1LifecycleHandler preStop) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(postStart, preStop); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("postStart"); + openapiFields.add("preStop"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Lifecycle + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Lifecycle.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Lifecycle is not found in the empty JSON string", V1Lifecycle.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Lifecycle.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Lifecycle` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `postStart` + if (jsonObj.get("postStart") != null && !jsonObj.get("postStart").isJsonNull()) { + V1LifecycleHandler.validateJsonObject(jsonObj.getAsJsonObject("postStart")); + } + // validate the optional field `preStop` + if (jsonObj.get("preStop") != null && !jsonObj.get("preStop").isJsonNull()) { + V1LifecycleHandler.validateJsonObject(jsonObj.getAsJsonObject("preStop")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Lifecycle.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Lifecycle' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Lifecycle.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Lifecycle value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Lifecycle read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Lifecycle given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Lifecycle + * @throws IOException if the JSON string is invalid with respect to V1Lifecycle + */ + public static V1Lifecycle fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Lifecycle.class); + } + + /** + * Convert an instance of V1Lifecycle to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java index d75d68c64a..5cd6b0953d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ExecAction; import io.kubernetes.client.openapi.models.V1HTTPGetAction; import io.kubernetes.client.openapi.models.V1TCPSocketAction; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -44,6 +67,8 @@ public class V1LifecycleHandler { @SerializedName(SERIALIZED_NAME_TCP_SOCKET) private V1TCPSocketAction tcpSocket; + public V1LifecycleHandler() { + } public V1LifecycleHandler exec(V1ExecAction exec) { @@ -55,9 +80,7 @@ public V1LifecycleHandler exec(V1ExecAction exec) { * Get exec * @return exec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ExecAction getExec() { return exec; } @@ -78,9 +101,7 @@ public V1LifecycleHandler httpGet(V1HTTPGetAction httpGet) { * Get httpGet * @return httpGet **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1HTTPGetAction getHttpGet() { return httpGet; } @@ -101,9 +122,7 @@ public V1LifecycleHandler tcpSocket(V1TCPSocketAction tcpSocket) { * Get tcpSocket * @return tcpSocket **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1TCPSocketAction getTcpSocket() { return tcpSocket; } @@ -114,8 +133,9 @@ public void setTcpSocket(V1TCPSocketAction tcpSocket) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -133,7 +153,6 @@ public int hashCode() { return Objects.hash(exec, httpGet, tcpSocket); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -149,11 +168,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("exec"); + openapiFields.add("httpGet"); + openapiFields.add("tcpSocket"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LifecycleHandler + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LifecycleHandler.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LifecycleHandler is not found in the empty JSON string", V1LifecycleHandler.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LifecycleHandler.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LifecycleHandler` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `exec` + if (jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonNull()) { + V1ExecAction.validateJsonObject(jsonObj.getAsJsonObject("exec")); + } + // validate the optional field `httpGet` + if (jsonObj.get("httpGet") != null && !jsonObj.get("httpGet").isJsonNull()) { + V1HTTPGetAction.validateJsonObject(jsonObj.getAsJsonObject("httpGet")); + } + // validate the optional field `tcpSocket` + if (jsonObj.get("tcpSocket") != null && !jsonObj.get("tcpSocket").isJsonNull()) { + V1TCPSocketAction.validateJsonObject(jsonObj.getAsJsonObject("tcpSocket")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LifecycleHandler.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LifecycleHandler' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LifecycleHandler.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LifecycleHandler value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LifecycleHandler read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LifecycleHandler given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LifecycleHandler + * @throws IOException if the JSON string is invalid with respect to V1LifecycleHandler + */ + public static V1LifecycleHandler fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LifecycleHandler.class); + } + + /** + * Convert an instance of V1LifecycleHandler to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java index 0701d70388..d9572977f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LimitRangeSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LimitRange sets resource usage limits for each kind of resource in a Namespace. */ @@ -47,6 +70,8 @@ public class V1LimitRange implements io.kubernetes.client.common.KubernetesObjec @SerializedName(SERIALIZED_NAME_SPEC) private V1LimitRangeSpec spec; + public V1LimitRange() { + } public V1LimitRange apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1LimitRange apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1LimitRange kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1LimitRange metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1LimitRange spec(V1LimitRangeSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LimitRangeSpec getSpec() { return spec; } @@ -140,8 +157,9 @@ public void setSpec(V1LimitRangeSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LimitRange + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LimitRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LimitRange is not found in the empty JSON string", V1LimitRange.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LimitRange.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LimitRange` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1LimitRangeSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LimitRange.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LimitRange' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LimitRange.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LimitRange value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LimitRange read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LimitRange given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitRange + * @throws IOException if the JSON string is invalid with respect to V1LimitRange + */ + public static V1LimitRange fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LimitRange.class); + } + + /** + * Convert an instance of V1LimitRange to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java index 5279648a14..6a990faede 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. @@ -35,28 +57,30 @@ public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) - private Map _default = null; + private Map _default = new HashMap<>(); public static final String SERIALIZED_NAME_DEFAULT_REQUEST = "defaultRequest"; @SerializedName(SERIALIZED_NAME_DEFAULT_REQUEST) - private Map defaultRequest = null; + private Map defaultRequest = new HashMap<>(); public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) - private Map max = null; + private Map max = new HashMap<>(); public static final String SERIALIZED_NAME_MAX_LIMIT_REQUEST_RATIO = "maxLimitRequestRatio"; @SerializedName(SERIALIZED_NAME_MAX_LIMIT_REQUEST_RATIO) - private Map maxLimitRequestRatio = null; + private Map maxLimitRequestRatio = new HashMap<>(); public static final String SERIALIZED_NAME_MIN = "min"; @SerializedName(SERIALIZED_NAME_MIN) - private Map min = null; + private Map min = new HashMap<>(); public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1LimitRangeItem() { + } public V1LimitRangeItem _default(Map _default) { @@ -76,9 +100,7 @@ public V1LimitRangeItem putDefaultItem(String key, Quantity _defaultItem) { * Default resource requirement limit value by resource name if resource limit is omitted. * @return _default **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Default resource requirement limit value by resource name if resource limit is omitted.") - + @jakarta.annotation.Nullable public Map getDefault() { return _default; } @@ -107,9 +129,7 @@ public V1LimitRangeItem putDefaultRequestItem(String key, Quantity defaultReques * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. * @return defaultRequest **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.") - + @jakarta.annotation.Nullable public Map getDefaultRequest() { return defaultRequest; } @@ -138,9 +158,7 @@ public V1LimitRangeItem putMaxItem(String key, Quantity maxItem) { * Max usage constraints on this kind by resource name. * @return max **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Max usage constraints on this kind by resource name.") - + @jakarta.annotation.Nullable public Map getMax() { return max; } @@ -169,9 +187,7 @@ public V1LimitRangeItem putMaxLimitRequestRatioItem(String key, Quantity maxLimi * 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. * @return maxLimitRequestRatio **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getMaxLimitRequestRatio() { return maxLimitRequestRatio; } @@ -200,9 +216,7 @@ public V1LimitRangeItem putMinItem(String key, Quantity minItem) { * Min usage constraints on this kind by resource name. * @return min **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Min usage constraints on this kind by resource name.") - + @jakarta.annotation.Nullable public Map getMin() { return min; } @@ -223,8 +237,7 @@ public V1LimitRangeItem type(String type) { * Type of resource that this limit applies to. * @return type **/ - @ApiModelProperty(required = true, value = "Type of resource that this limit applies to.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -235,8 +248,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -257,7 +271,6 @@ public int hashCode() { return Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -276,11 +289,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("default"); + openapiFields.add("defaultRequest"); + openapiFields.add("max"); + openapiFields.add("maxLimitRequestRatio"); + openapiFields.add("min"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LimitRangeItem + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LimitRangeItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LimitRangeItem is not found in the empty JSON string", V1LimitRangeItem.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LimitRangeItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LimitRangeItem` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1LimitRangeItem.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LimitRangeItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LimitRangeItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LimitRangeItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LimitRangeItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LimitRangeItem read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LimitRangeItem given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitRangeItem + * @throws IOException if the JSON string is invalid with respect to V1LimitRangeItem + */ + public static V1LimitRangeItem fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LimitRangeItem.class); + } + + /** + * Convert an instance of V1LimitRangeItem to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java index 8337c621cb..b04e70947d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LimitRange; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LimitRangeList is a list of LimitRange items. */ @@ -49,6 +72,8 @@ public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesL @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1LimitRangeList() { + } public V1LimitRangeList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1LimitRangeList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1LimitRangeList items(List items) { } public V1LimitRangeList addItemsItem(V1LimitRange itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1LimitRangeList addItemsItem(V1LimitRange itemsItem) { * Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @return items **/ - @ApiModelProperty(required = true, value = "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1LimitRangeList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1LimitRangeList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LimitRangeList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LimitRangeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LimitRangeList is not found in the empty JSON string", V1LimitRangeList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LimitRangeList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LimitRangeList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1LimitRangeList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1LimitRange.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LimitRangeList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LimitRangeList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LimitRangeList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LimitRangeList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LimitRangeList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LimitRangeList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitRangeList + * @throws IOException if the JSON string is invalid with respect to V1LimitRangeList + */ + public static V1LimitRangeList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LimitRangeList.class); + } + + /** + * Convert an instance of V1LimitRangeList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java index 0a9eb8c891..b3da2f1c33 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LimitRangeItem; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LimitRangeSpec defines a min/max usage limit for resources that match on kind. */ @@ -36,6 +59,8 @@ public class V1LimitRangeSpec { @SerializedName(SERIALIZED_NAME_LIMITS) private List limits = new ArrayList<>(); + public V1LimitRangeSpec() { + } public V1LimitRangeSpec limits(List limits) { @@ -44,6 +69,9 @@ public V1LimitRangeSpec limits(List limits) { } public V1LimitRangeSpec addLimitsItem(V1LimitRangeItem limitsItem) { + if (this.limits == null) { + this.limits = new ArrayList<>(); + } this.limits.add(limitsItem); return this; } @@ -52,8 +80,7 @@ public V1LimitRangeSpec addLimitsItem(V1LimitRangeItem limitsItem) { * Limits is the list of LimitRangeItem objects that are enforced. * @return limits **/ - @ApiModelProperty(required = true, value = "Limits is the list of LimitRangeItem objects that are enforced.") - + @jakarta.annotation.Nonnull public List getLimits() { return limits; } @@ -64,8 +91,9 @@ public void setLimits(List limits) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -81,7 +109,6 @@ public int hashCode() { return Objects.hash(limits); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,11 +122,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("limits"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("limits"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LimitRangeSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LimitRangeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LimitRangeSpec is not found in the empty JSON string", V1LimitRangeSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LimitRangeSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LimitRangeSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1LimitRangeSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (!jsonObj.get("limits").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `limits` to be an array in the JSON string but got `%s`", jsonObj.get("limits").toString())); + } + + JsonArray jsonArraylimits = jsonObj.getAsJsonArray("limits"); + // validate the required field `limits` (array) + for (int i = 0; i < jsonArraylimits.size(); i++) { + V1LimitRangeItem.validateJsonObject(jsonArraylimits.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LimitRangeSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LimitRangeSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LimitRangeSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LimitRangeSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LimitRangeSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LimitRangeSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LimitRangeSpec + * @throws IOException if the JSON string is invalid with respect to V1LimitRangeSpec + */ + public static V1LimitRangeSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LimitRangeSpec.class); + } + + /** + * Convert an instance of V1LimitRangeSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java index 8852716c20..4e148780de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. */ @@ -45,6 +68,8 @@ public class V1ListMeta { @SerializedName(SERIALIZED_NAME_SELF_LINK) private String selfLink; + public V1ListMeta() { + } public V1ListMeta _continue(String _continue) { @@ -56,9 +81,7 @@ public V1ListMeta _continue(String _continue) { * 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. * @return _continue **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getContinue() { return _continue; } @@ -79,9 +102,7 @@ public V1ListMeta remainingItemCount(Long remainingItemCount) { * 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. * @return remainingItemCount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getRemainingItemCount() { return remainingItemCount; } @@ -102,9 +123,7 @@ public V1ListMeta resourceVersion(String resourceVersion) { * 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 * @return resourceVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getResourceVersion() { return resourceVersion; } @@ -125,9 +144,7 @@ public V1ListMeta selfLink(String selfLink) { * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. * @return selfLink **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.") - + @jakarta.annotation.Nullable public String getSelfLink() { return selfLink; } @@ -138,8 +155,9 @@ public void setSelfLink(String selfLink) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +176,6 @@ public int hashCode() { return Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +192,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("continue"); + openapiFields.add("remainingItemCount"); + openapiFields.add("resourceVersion"); + openapiFields.add("selfLink"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ListMeta + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ListMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ListMeta is not found in the empty JSON string", V1ListMeta.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ListMeta.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ListMeta` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("continue") != null && !jsonObj.get("continue").isJsonNull()) && !jsonObj.get("continue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `continue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("continue").toString())); + } + if ((jsonObj.get("resourceVersion") != null && !jsonObj.get("resourceVersion").isJsonNull()) && !jsonObj.get("resourceVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceVersion").toString())); + } + if ((jsonObj.get("selfLink") != null && !jsonObj.get("selfLink").isJsonNull()) && !jsonObj.get("selfLink").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `selfLink` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selfLink").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ListMeta.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ListMeta' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ListMeta.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ListMeta value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ListMeta read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ListMeta given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ListMeta + * @throws IOException if the JSON string is invalid with respect to V1ListMeta + */ + public static V1ListMeta fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ListMeta.class); + } + + /** + * Convert an instance of V1ListMeta to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java index 11afba5ad8..3179d583fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PortStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. */ @@ -42,8 +65,10 @@ public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; + public V1LoadBalancerIngress() { + } public V1LoadBalancerIngress hostname(String hostname) { @@ -55,9 +80,7 @@ public V1LoadBalancerIngress hostname(String hostname) { * Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) * @return hostname **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)") - + @jakarta.annotation.Nullable public String getHostname() { return hostname; } @@ -78,9 +101,7 @@ public V1LoadBalancerIngress ip(String ip) { * IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) * @return ip **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)") - + @jakarta.annotation.Nullable public String getIp() { return ip; } @@ -109,9 +130,7 @@ public V1LoadBalancerIngress addPortsItem(V1PortStatus portsItem) { * Ports is a list of records of service ports If used, every port defined in the service should have an entry in it * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -122,8 +141,9 @@ public void setPorts(List ports) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -141,7 +161,6 @@ public int hashCode() { return Objects.hash(hostname, ip, ports); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -157,11 +176,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("hostname"); + openapiFields.add("ip"); + openapiFields.add("ports"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LoadBalancerIngress + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LoadBalancerIngress.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LoadBalancerIngress is not found in the empty JSON string", V1LoadBalancerIngress.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LoadBalancerIngress.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LoadBalancerIngress` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("hostname") != null && !jsonObj.get("hostname").isJsonNull()) && !jsonObj.get("hostname").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `hostname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostname").toString())); + } + if ((jsonObj.get("ip") != null && !jsonObj.get("ip").isJsonNull()) && !jsonObj.get("ip").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + V1PortStatus.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LoadBalancerIngress.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LoadBalancerIngress' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LoadBalancerIngress.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LoadBalancerIngress value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LoadBalancerIngress read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LoadBalancerIngress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LoadBalancerIngress + * @throws IOException if the JSON string is invalid with respect to V1LoadBalancerIngress + */ + public static V1LoadBalancerIngress fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LoadBalancerIngress.class); + } + + /** + * Convert an instance of V1LoadBalancerIngress to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java index a2934fecf6..46eb0d5068 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LoadBalancerIngress; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LoadBalancerStatus represents the status of a load-balancer. */ @@ -34,8 +57,10 @@ public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) - private List ingress = null; + private List ingress; + public V1LoadBalancerStatus() { + } public V1LoadBalancerStatus ingress(List ingress) { @@ -55,9 +80,7 @@ public V1LoadBalancerStatus addIngressItem(V1LoadBalancerIngress ingressItem) { * Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. * @return ingress **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.") - + @jakarta.annotation.Nullable public List getIngress() { return ingress; } @@ -68,8 +91,9 @@ public void setIngress(List ingress) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(ingress); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ingress"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LoadBalancerStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LoadBalancerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LoadBalancerStatus is not found in the empty JSON string", V1LoadBalancerStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LoadBalancerStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LoadBalancerStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("ingress") != null && !jsonObj.get("ingress").isJsonNull()) { + JsonArray jsonArrayingress = jsonObj.getAsJsonArray("ingress"); + if (jsonArrayingress != null) { + // ensure the json data is an array + if (!jsonObj.get("ingress").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ingress` to be an array in the JSON string but got `%s`", jsonObj.get("ingress").toString())); + } + + // validate the optional field `ingress` (array) + for (int i = 0; i < jsonArrayingress.size(); i++) { + V1LoadBalancerIngress.validateJsonObject(jsonArrayingress.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LoadBalancerStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LoadBalancerStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LoadBalancerStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LoadBalancerStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LoadBalancerStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LoadBalancerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LoadBalancerStatus + * @throws IOException if the JSON string is invalid with respect to V1LoadBalancerStatus + */ + public static V1LoadBalancerStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LoadBalancerStatus.class); + } + + /** + * Convert an instance of V1LoadBalancerStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java index 83e58a94f6..8802f502bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ @@ -33,6 +56,8 @@ public class V1LocalObjectReference { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1LocalObjectReference() { + } public V1LocalObjectReference name(String name) { @@ -44,9 +69,7 @@ public V1LocalObjectReference name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -57,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -74,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -88,11 +111,97 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LocalObjectReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LocalObjectReference is not found in the empty JSON string", V1LocalObjectReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LocalObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LocalObjectReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LocalObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LocalObjectReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LocalObjectReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LocalObjectReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LocalObjectReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LocalObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LocalObjectReference + * @throws IOException if the JSON string is invalid with respect to V1LocalObjectReference + */ + public static V1LocalObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LocalObjectReference.class); + } + + /** + * Convert an instance of V1LocalObjectReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java index 1471f08322..9b5c6a514a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.K @SerializedName(SERIALIZED_NAME_STATUS) private V1SubjectAccessReviewStatus status; + public V1LocalSubjectAccessReview() { + } public V1LocalSubjectAccessReview apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1LocalSubjectAccessReview apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1LocalSubjectAccessReview kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1LocalSubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1LocalSubjectAccessReview spec(V1SubjectAccessReviewSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1SubjectAccessReviewSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1LocalSubjectAccessReview status(V1SubjectAccessReviewStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SubjectAccessReviewStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1SubjectAccessReviewStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LocalSubjectAccessReview + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LocalSubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LocalSubjectAccessReview is not found in the empty JSON string", V1LocalSubjectAccessReview.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LocalSubjectAccessReview.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LocalSubjectAccessReview` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1LocalSubjectAccessReview.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1SubjectAccessReviewSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1SubjectAccessReviewStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LocalSubjectAccessReview.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LocalSubjectAccessReview' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LocalSubjectAccessReview.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LocalSubjectAccessReview value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LocalSubjectAccessReview read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LocalSubjectAccessReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LocalSubjectAccessReview + * @throws IOException if the JSON string is invalid with respect to V1LocalSubjectAccessReview + */ + public static V1LocalSubjectAccessReview fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LocalSubjectAccessReview.class); + } + + /** + * Convert an instance of V1LocalSubjectAccessReview to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java index 50440a363b..6ce396bee9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Local represents directly-attached storage with node affinity (Beta feature) */ @@ -37,6 +60,8 @@ public class V1LocalVolumeSource { @SerializedName(SERIALIZED_NAME_PATH) private String path; + public V1LocalVolumeSource() { + } public V1LocalVolumeSource fsType(String fsType) { @@ -48,9 +73,7 @@ public V1LocalVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -71,8 +94,7 @@ public V1LocalVolumeSource path(String path) { * path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). * @return path **/ - @ApiModelProperty(required = true, value = "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).") - + @jakarta.annotation.Nonnull public String getPath() { return path; } @@ -83,8 +105,9 @@ public void setPath(String path) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +124,6 @@ public int hashCode() { return Objects.hash(fsType, path); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +138,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("path"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("path"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1LocalVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1LocalVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1LocalVolumeSource is not found in the empty JSON string", V1LocalVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1LocalVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LocalVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1LocalVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1LocalVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1LocalVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1LocalVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1LocalVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1LocalVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1LocalVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1LocalVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1LocalVolumeSource + */ + public static V1LocalVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1LocalVolumeSource.class); + } + + /** + * Convert an instance of V1LocalVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java index 946d0d712b..100f543704 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. */ @@ -58,6 +81,8 @@ public class V1ManagedFieldsEntry { @SerializedName(SERIALIZED_NAME_TIME) private OffsetDateTime time; + public V1ManagedFieldsEntry() { + } public V1ManagedFieldsEntry apiVersion(String apiVersion) { @@ -69,9 +94,7 @@ public V1ManagedFieldsEntry apiVersion(String apiVersion) { * 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. * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -92,9 +115,7 @@ public V1ManagedFieldsEntry fieldsType(String fieldsType) { * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" * @return fieldsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"") - + @jakarta.annotation.Nullable public String getFieldsType() { return fieldsType; } @@ -115,9 +136,7 @@ public V1ManagedFieldsEntry fieldsV1(Object fieldsV1) { * FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. * @return fieldsV1 **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.") - + @jakarta.annotation.Nullable public Object getFieldsV1() { return fieldsV1; } @@ -138,9 +157,7 @@ public V1ManagedFieldsEntry manager(String manager) { * Manager is an identifier of the workflow managing these fields. * @return manager **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Manager is an identifier of the workflow managing these fields.") - + @jakarta.annotation.Nullable public String getManager() { return manager; } @@ -161,9 +178,7 @@ public V1ManagedFieldsEntry operation(String operation) { * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. * @return operation **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.") - + @jakarta.annotation.Nullable public String getOperation() { return operation; } @@ -184,9 +199,7 @@ public V1ManagedFieldsEntry subresource(String subresource) { * 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. * @return subresource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getSubresource() { return subresource; } @@ -207,9 +220,7 @@ public V1ManagedFieldsEntry time(OffsetDateTime time) { * 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. * @return time **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public OffsetDateTime getTime() { return time; } @@ -220,8 +231,9 @@ public void setTime(OffsetDateTime time) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -243,7 +255,6 @@ public int hashCode() { return Objects.hash(apiVersion, fieldsType, fieldsV1, manager, operation, subresource, time); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -263,11 +274,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("fieldsType"); + openapiFields.add("fieldsV1"); + openapiFields.add("manager"); + openapiFields.add("operation"); + openapiFields.add("subresource"); + openapiFields.add("time"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ManagedFieldsEntry + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ManagedFieldsEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ManagedFieldsEntry is not found in the empty JSON string", V1ManagedFieldsEntry.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ManagedFieldsEntry.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ManagedFieldsEntry` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("fieldsType") != null && !jsonObj.get("fieldsType").isJsonNull()) && !jsonObj.get("fieldsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fieldsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldsType").toString())); + } + if ((jsonObj.get("manager") != null && !jsonObj.get("manager").isJsonNull()) && !jsonObj.get("manager").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `manager` to be a primitive type in the JSON string but got `%s`", jsonObj.get("manager").toString())); + } + if ((jsonObj.get("operation") != null && !jsonObj.get("operation").isJsonNull()) && !jsonObj.get("operation").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operation").toString())); + } + if ((jsonObj.get("subresource") != null && !jsonObj.get("subresource").isJsonNull()) && !jsonObj.get("subresource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subresource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subresource").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ManagedFieldsEntry.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ManagedFieldsEntry' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ManagedFieldsEntry.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ManagedFieldsEntry value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ManagedFieldsEntry read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ManagedFieldsEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ManagedFieldsEntry + * @throws IOException if the JSON string is invalid with respect to V1ManagedFieldsEntry + */ + public static V1ManagedFieldsEntry fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ManagedFieldsEntry.class); + } + + /** + * Convert an instance of V1ManagedFieldsEntry to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java index d855099a97..2d0bcbbf5c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. */ @@ -37,6 +60,8 @@ public class V1MatchCondition { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1MatchCondition() { + } public V1MatchCondition expression(String expression) { @@ -48,8 +73,7 @@ public V1MatchCondition expression(String expression) { * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. * @return expression **/ - @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") - + @jakarta.annotation.Nonnull public String getExpression() { return expression; } @@ -70,8 +94,7 @@ public V1MatchCondition name(String name) { * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. * @return name **/ - @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -82,8 +105,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(expression, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expression"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("expression"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1MatchCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1MatchCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1MatchCondition is not found in the empty JSON string", V1MatchCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1MatchCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1MatchCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1MatchCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MatchCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MatchCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MatchCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MatchCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MatchCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MatchCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MatchCondition + * @throws IOException if the JSON string is invalid with respect to V1MatchCondition + */ + public static V1MatchCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MatchCondition.class); + } + + /** + * Convert an instance of V1MatchCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java index 2c54a2d00c..6f02db8281 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java @@ -23,12 +23,35 @@ import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1MatchCondition; import io.kubernetes.client.openapi.models.V1RuleWithOperations; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MutatingWebhook describes an admission webhook and the resources and operations it applies to. */ @@ -49,7 +72,7 @@ public class V1MutatingWebhook { public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) - private List matchConditions = null; + private List matchConditions; public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; @SerializedName(SERIALIZED_NAME_MATCH_POLICY) @@ -73,7 +96,7 @@ public class V1MutatingWebhook { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) - private List rules = null; + private List rules; public static final String SERIALIZED_NAME_SIDE_EFFECTS = "sideEffects"; @SerializedName(SERIALIZED_NAME_SIDE_EFFECTS) @@ -83,6 +106,8 @@ public class V1MutatingWebhook { @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) private Integer timeoutSeconds; + public V1MutatingWebhook() { + } public V1MutatingWebhook admissionReviewVersions(List admissionReviewVersions) { @@ -91,6 +116,9 @@ public V1MutatingWebhook admissionReviewVersions(List admissionReviewVer } public V1MutatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVersionsItem) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList<>(); + } this.admissionReviewVersions.add(admissionReviewVersionsItem); return this; } @@ -99,8 +127,7 @@ public V1MutatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVe * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. * @return admissionReviewVersions **/ - @ApiModelProperty(required = true, value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") - + @jakarta.annotation.Nonnull public List getAdmissionReviewVersions() { return admissionReviewVersions; } @@ -121,8 +148,7 @@ public V1MutatingWebhook clientConfig(AdmissionregistrationV1WebhookClientConfig * Get clientConfig * @return clientConfig **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public AdmissionregistrationV1WebhookClientConfig getClientConfig() { return clientConfig; } @@ -143,9 +169,7 @@ public V1MutatingWebhook failurePolicy(String failurePolicy) { * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") - + @jakarta.annotation.Nullable public String getFailurePolicy() { return failurePolicy; } @@ -197,9 +221,7 @@ public V1MutatingWebhook matchPolicy(String matchPolicy) { * matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" * @return matchPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"") - + @jakarta.annotation.Nullable public String getMatchPolicy() { return matchPolicy; } @@ -220,8 +242,7 @@ public V1MutatingWebhook name(String name) { * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. * @return name **/ - @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -242,9 +263,7 @@ public V1MutatingWebhook namespaceSelector(V1LabelSelector namespaceSelector) { * Get namespaceSelector * @return namespaceSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -265,9 +284,7 @@ public V1MutatingWebhook objectSelector(V1LabelSelector objectSelector) { * Get objectSelector * @return objectSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getObjectSelector() { return objectSelector; } @@ -288,9 +305,7 @@ public V1MutatingWebhook reinvocationPolicy(String reinvocationPolicy) { * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". * @return reinvocationPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public String getReinvocationPolicy() { return reinvocationPolicy; } @@ -319,9 +334,7 @@ public V1MutatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. * @return rules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") - + @jakarta.annotation.Nullable public List getRules() { return rules; } @@ -342,8 +355,7 @@ public V1MutatingWebhook sideEffects(String sideEffects) { * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. * @return sideEffects **/ - @ApiModelProperty(required = true, value = "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.") - + @jakarta.annotation.Nonnull public String getSideEffects() { return sideEffects; } @@ -364,9 +376,7 @@ public V1MutatingWebhook timeoutSeconds(Integer timeoutSeconds) { * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. * @return timeoutSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") - + @jakarta.annotation.Nullable public Integer getTimeoutSeconds() { return timeoutSeconds; } @@ -377,8 +387,9 @@ public void setTimeoutSeconds(Integer timeoutSeconds) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -405,7 +416,6 @@ public int hashCode() { return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, reinvocationPolicy, rules, sideEffects, timeoutSeconds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -430,11 +440,175 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("admissionReviewVersions"); + openapiFields.add("clientConfig"); + openapiFields.add("failurePolicy"); + openapiFields.add("matchConditions"); + openapiFields.add("matchPolicy"); + openapiFields.add("name"); + openapiFields.add("namespaceSelector"); + openapiFields.add("objectSelector"); + openapiFields.add("reinvocationPolicy"); + openapiFields.add("rules"); + openapiFields.add("sideEffects"); + openapiFields.add("timeoutSeconds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("admissionReviewVersions"); + openapiRequiredFields.add("clientConfig"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("sideEffects"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1MutatingWebhook + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1MutatingWebhook.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1MutatingWebhook is not found in the empty JSON string", V1MutatingWebhook.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1MutatingWebhook.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1MutatingWebhook` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1MutatingWebhook.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("admissionReviewVersions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("admissionReviewVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `admissionReviewVersions` to be an array in the JSON string but got `%s`", jsonObj.get("admissionReviewVersions").toString())); + } + // validate the required field `clientConfig` + AdmissionregistrationV1WebhookClientConfig.validateJsonObject(jsonObj.getAsJsonObject("clientConfig")); + if ((jsonObj.get("failurePolicy") != null && !jsonObj.get("failurePolicy").isJsonNull()) && !jsonObj.get("failurePolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `failurePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("failurePolicy").toString())); + } + if (jsonObj.get("matchConditions") != null && !jsonObj.get("matchConditions").isJsonNull()) { + JsonArray jsonArraymatchConditions = jsonObj.getAsJsonArray("matchConditions"); + if (jsonArraymatchConditions != null) { + // ensure the json data is an array + if (!jsonObj.get("matchConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchConditions` to be an array in the JSON string but got `%s`", jsonObj.get("matchConditions").toString())); + } + + // validate the optional field `matchConditions` (array) + for (int i = 0; i < jsonArraymatchConditions.size(); i++) { + V1MatchCondition.validateJsonObject(jsonArraymatchConditions.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("matchPolicy") != null && !jsonObj.get("matchPolicy").isJsonNull()) && !jsonObj.get("matchPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `matchPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchPolicy").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `namespaceSelector` + if (jsonObj.get("namespaceSelector") != null && !jsonObj.get("namespaceSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("namespaceSelector")); + } + // validate the optional field `objectSelector` + if (jsonObj.get("objectSelector") != null && !jsonObj.get("objectSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("objectSelector")); + } + if ((jsonObj.get("reinvocationPolicy") != null && !jsonObj.get("reinvocationPolicy").isJsonNull()) && !jsonObj.get("reinvocationPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reinvocationPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reinvocationPolicy").toString())); + } + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + V1RuleWithOperations.validateJsonObject(jsonArrayrules.get(i).getAsJsonObject()); + }; + } + } + if (!jsonObj.get("sideEffects").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sideEffects` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sideEffects").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingWebhook.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingWebhook' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingWebhook.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingWebhook value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingWebhook read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingWebhook given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingWebhook + * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhook + */ + public static V1MutatingWebhook fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingWebhook.class); + } + + /** + * Convert an instance of V1MutatingWebhook to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java index f9db9116a9..a6fe7eb300 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1MutatingWebhook; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. */ @@ -47,8 +70,10 @@ public class V1MutatingWebhookConfiguration implements io.kubernetes.client.comm public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) - private List webhooks = null; + private List webhooks; + public V1MutatingWebhookConfiguration() { + } public V1MutatingWebhookConfiguration apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1MutatingWebhookConfiguration apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -83,9 +106,7 @@ public V1MutatingWebhookConfiguration kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -106,9 +127,7 @@ public V1MutatingWebhookConfiguration metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -137,9 +156,7 @@ public V1MutatingWebhookConfiguration addWebhooksItem(V1MutatingWebhook webhooks * Webhooks is a list of webhooks and the affected resources and operations. * @return webhooks **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") - + @jakarta.annotation.Nullable public List getWebhooks() { return webhooks; } @@ -150,8 +167,9 @@ public void setWebhooks(List webhooks) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, webhooks); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("webhooks"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1MutatingWebhookConfiguration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1MutatingWebhookConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1MutatingWebhookConfiguration is not found in the empty JSON string", V1MutatingWebhookConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1MutatingWebhookConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1MutatingWebhookConfiguration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if (jsonObj.get("webhooks") != null && !jsonObj.get("webhooks").isJsonNull()) { + JsonArray jsonArraywebhooks = jsonObj.getAsJsonArray("webhooks"); + if (jsonArraywebhooks != null) { + // ensure the json data is an array + if (!jsonObj.get("webhooks").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `webhooks` to be an array in the JSON string but got `%s`", jsonObj.get("webhooks").toString())); + } + + // validate the optional field `webhooks` (array) + for (int i = 0; i < jsonArraywebhooks.size(); i++) { + V1MutatingWebhook.validateJsonObject(jsonArraywebhooks.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingWebhookConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingWebhookConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingWebhookConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingWebhookConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingWebhookConfiguration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingWebhookConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingWebhookConfiguration + * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhookConfiguration + */ + public static V1MutatingWebhookConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingWebhookConfiguration.class); + } + + /** + * Convert an instance of V1MutatingWebhookConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java index 6762a25d02..0b8c113a78 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ @@ -49,6 +72,8 @@ public class V1MutatingWebhookConfigurationList implements io.kubernetes.client. @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1MutatingWebhookConfigurationList() { + } public V1MutatingWebhookConfigurationList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1MutatingWebhookConfigurationList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1MutatingWebhookConfigurationList items(List(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1MutatingWebhookConfigurationList addItemsItem(V1MutatingWebhookConfigur * List of MutatingWebhookConfiguration. * @return items **/ - @ApiModelProperty(required = true, value = "List of MutatingWebhookConfiguration.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1MutatingWebhookConfigurationList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1MutatingWebhookConfigurationList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1MutatingWebhookConfigurationList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1MutatingWebhookConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1MutatingWebhookConfigurationList is not found in the empty JSON string", V1MutatingWebhookConfigurationList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1MutatingWebhookConfigurationList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1MutatingWebhookConfigurationList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1MutatingWebhookConfigurationList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1MutatingWebhookConfiguration.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingWebhookConfigurationList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingWebhookConfigurationList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingWebhookConfigurationList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingWebhookConfigurationList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingWebhookConfigurationList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingWebhookConfigurationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingWebhookConfigurationList + * @throws IOException if the JSON string is invalid with respect to V1MutatingWebhookConfigurationList + */ + public static V1MutatingWebhookConfigurationList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingWebhookConfigurationList.class); + } + + /** + * Convert an instance of V1MutatingWebhookConfigurationList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java index 0709d5a4d9..78d8f62755 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. */ @@ -41,6 +64,8 @@ public class V1NFSVolumeSource { @SerializedName(SERIALIZED_NAME_SERVER) private String server; + public V1NFSVolumeSource() { + } public V1NFSVolumeSource path(String path) { @@ -52,8 +77,7 @@ public V1NFSVolumeSource path(String path) { * path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs * @return path **/ - @ApiModelProperty(required = true, value = "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") - + @jakarta.annotation.Nonnull public String getPath() { return path; } @@ -74,9 +98,7 @@ public V1NFSVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -97,8 +119,7 @@ public V1NFSVolumeSource server(String server) { * server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs * @return server **/ - @ApiModelProperty(required = true, value = "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") - + @jakarta.annotation.Nonnull public String getServer() { return server; } @@ -109,8 +130,9 @@ public void setServer(String server) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(path, readOnly, server); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("path"); + openapiFields.add("readOnly"); + openapiFields.add("server"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("path"); + openapiRequiredFields.add("server"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NFSVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NFSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NFSVolumeSource is not found in the empty JSON string", V1NFSVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NFSVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NFSVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NFSVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if (!jsonObj.get("server").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `server` to be a primitive type in the JSON string but got `%s`", jsonObj.get("server").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NFSVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NFSVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NFSVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NFSVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NFSVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NFSVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NFSVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1NFSVolumeSource + */ + public static V1NFSVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NFSVolumeSource.class); + } + + /** + * Convert an instance of V1NFSVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java index ed0ce19fd5..760af9283f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1NamespaceSpec; import io.kubernetes.client.openapi.models.V1NamespaceStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Namespace provides a scope for Names. Use of multiple namespaces is optional. */ @@ -52,6 +75,8 @@ public class V1Namespace implements io.kubernetes.client.common.KubernetesObject @SerializedName(SERIALIZED_NAME_STATUS) private V1NamespaceStatus status; + public V1Namespace() { + } public V1Namespace apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1Namespace apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1Namespace kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1Namespace metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1Namespace spec(V1NamespaceSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NamespaceSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1Namespace status(V1NamespaceStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NamespaceStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1NamespaceStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Namespace + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Namespace.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Namespace is not found in the empty JSON string", V1Namespace.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Namespace.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Namespace` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1NamespaceSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1NamespaceStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Namespace.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Namespace' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Namespace.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Namespace value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Namespace read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Namespace given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Namespace + * @throws IOException if the JSON string is invalid with respect to V1Namespace + */ + public static V1Namespace fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Namespace.class); + } + + /** + * Convert an instance of V1Namespace to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java index 610b9262b6..3bf2411eeb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NamespaceCondition contains details about state of namespace. */ @@ -50,6 +73,8 @@ public class V1NamespaceCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1NamespaceCondition() { + } public V1NamespaceCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1NamespaceCondition lastTransitionTime(OffsetDateTime lastTransitionTime * 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. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1NamespaceCondition message(String message) { * Get message * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1NamespaceCondition reason(String reason) { * Get reason * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,8 +149,7 @@ public V1NamespaceCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -152,8 +170,7 @@ public V1NamespaceCondition type(String type) { * Type of namespace controller condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type of namespace controller condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -164,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NamespaceCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NamespaceCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NamespaceCondition is not found in the empty JSON string", V1NamespaceCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NamespaceCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NamespaceCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NamespaceCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NamespaceCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NamespaceCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NamespaceCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NamespaceCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NamespaceCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NamespaceCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamespaceCondition + * @throws IOException if the JSON string is invalid with respect to V1NamespaceCondition + */ + public static V1NamespaceCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NamespaceCondition.class); + } + + /** + * Convert an instance of V1NamespaceCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java index c859d7e8e0..7b01a67369 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Namespace; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NamespaceList is a list of Namespaces. */ @@ -49,6 +72,8 @@ public class V1NamespaceList implements io.kubernetes.client.common.KubernetesLi @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1NamespaceList() { + } public V1NamespaceList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1NamespaceList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1NamespaceList items(List items) { } public V1NamespaceList addItemsItem(V1Namespace itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1NamespaceList addItemsItem(V1Namespace itemsItem) { * Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1NamespaceList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1NamespaceList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NamespaceList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NamespaceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NamespaceList is not found in the empty JSON string", V1NamespaceList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NamespaceList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NamespaceList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NamespaceList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Namespace.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NamespaceList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NamespaceList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NamespaceList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NamespaceList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NamespaceList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NamespaceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamespaceList + * @throws IOException if the JSON string is invalid with respect to V1NamespaceList + */ + public static V1NamespaceList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NamespaceList.class); + } + + /** + * Convert an instance of V1NamespaceList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java index 6eaaa1adb3..a6ee3b6cf7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NamespaceSpec describes the attributes on a Namespace. */ @@ -33,8 +56,10 @@ public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_FINALIZERS) - private List finalizers = null; + private List finalizers; + public V1NamespaceSpec() { + } public V1NamespaceSpec finalizers(List finalizers) { @@ -54,9 +79,7 @@ public V1NamespaceSpec addFinalizersItem(String finalizersItem) { * 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/ * @return finalizers **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public List getFinalizers() { return finalizers; } @@ -67,8 +90,9 @@ public void setFinalizers(List finalizers) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -84,7 +108,6 @@ public int hashCode() { return Objects.hash(finalizers); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -98,11 +121,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("finalizers"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NamespaceSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NamespaceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NamespaceSpec is not found in the empty JSON string", V1NamespaceSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NamespaceSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NamespaceSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("finalizers") != null && !jsonObj.get("finalizers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `finalizers` to be an array in the JSON string but got `%s`", jsonObj.get("finalizers").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NamespaceSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NamespaceSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NamespaceSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NamespaceSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NamespaceSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NamespaceSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamespaceSpec + * @throws IOException if the JSON string is invalid with respect to V1NamespaceSpec + */ + public static V1NamespaceSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NamespaceSpec.class); + } + + /** + * Convert an instance of V1NamespaceSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java index 6f0a9dc024..87d98b53b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NamespaceCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NamespaceStatus is information about the current status of a Namespace. */ @@ -34,12 +57,14 @@ public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) private String phase; + public V1NamespaceStatus() { + } public V1NamespaceStatus conditions(List conditions) { @@ -59,9 +84,7 @@ public V1NamespaceStatus addConditionsItem(V1NamespaceCondition conditionsItem) * Represents the latest available observations of a namespace's current state. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Represents the latest available observations of a namespace's current state.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -82,9 +105,7 @@ public V1NamespaceStatus phase(String phase) { * Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ * @return phase **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/") - + @jakarta.annotation.Nullable public String getPhase() { return phase; } @@ -95,8 +116,9 @@ public void setPhase(String phase) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -113,7 +135,6 @@ public int hashCode() { return Objects.hash(conditions, phase); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -128,11 +149,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + openapiFields.add("phase"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NamespaceStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NamespaceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NamespaceStatus is not found in the empty JSON string", V1NamespaceStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NamespaceStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NamespaceStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1NamespaceCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("phase") != null && !jsonObj.get("phase").isJsonNull()) && !jsonObj.get("phase").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `phase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phase").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NamespaceStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NamespaceStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NamespaceStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NamespaceStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NamespaceStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NamespaceStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NamespaceStatus + * @throws IOException if the JSON string is invalid with respect to V1NamespaceStatus + */ + public static V1NamespaceStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NamespaceStatus.class); + } + + /** + * Convert an instance of V1NamespaceStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java index e9776a4e92..87de0051f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NetworkPolicySpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NetworkPolicy describes what network traffic is allowed for a set of Pods */ @@ -58,9 +81,7 @@ public V1NetworkPolicy apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +102,7 @@ public V1NetworkPolicy kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +123,7 @@ public V1NetworkPolicy metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +144,7 @@ public V1NetworkPolicy spec(V1NetworkPolicySpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NetworkPolicySpec getSpec() { return spec; } @@ -141,7 +156,7 @@ public void setSpec(V1NetworkPolicySpec spec) { @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +175,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +191,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NetworkPolicy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NetworkPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkPolicy is not found in the empty JSON string", V1NetworkPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NetworkPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkPolicy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1NetworkPolicySpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NetworkPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NetworkPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NetworkPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NetworkPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NetworkPolicy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NetworkPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicy + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicy + */ + public static V1NetworkPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NetworkPolicy.class); + } + + /** + * Convert an instance of V1NetworkPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java index cdc1eaf414..5dbe28ddca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NetworkPolicyPeer; import io.kubernetes.client.openapi.models.V1NetworkPolicyPort; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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 */ @@ -35,12 +58,14 @@ public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) - private List to = null; + private List to; + public V1NetworkPolicyEgressRule() { + } public V1NetworkPolicyEgressRule ports(List ports) { @@ -60,9 +85,7 @@ public V1NetworkPolicyEgressRule addPortsItem(V1NetworkPolicyPort portsItem) { * 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. * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -91,9 +114,7 @@ public V1NetworkPolicyEgressRule addToItem(V1NetworkPolicyPeer toItem) { * 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. * @return to **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getTo() { return to; } @@ -104,8 +125,9 @@ public void setTo(List to) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -122,7 +144,6 @@ public int hashCode() { return Objects.hash(ports, to); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -137,11 +158,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ports"); + openapiFields.add("to"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NetworkPolicyEgressRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NetworkPolicyEgressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkPolicyEgressRule is not found in the empty JSON string", V1NetworkPolicyEgressRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NetworkPolicyEgressRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkPolicyEgressRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + V1NetworkPolicyPort.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) { + JsonArray jsonArrayto = jsonObj.getAsJsonArray("to"); + if (jsonArrayto != null) { + // ensure the json data is an array + if (!jsonObj.get("to").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `to` to be an array in the JSON string but got `%s`", jsonObj.get("to").toString())); + } + + // validate the optional field `to` (array) + for (int i = 0; i < jsonArrayto.size(); i++) { + V1NetworkPolicyPeer.validateJsonObject(jsonArrayto.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NetworkPolicyEgressRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NetworkPolicyEgressRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NetworkPolicyEgressRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NetworkPolicyEgressRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NetworkPolicyEgressRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NetworkPolicyEgressRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyEgressRule + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyEgressRule + */ + public static V1NetworkPolicyEgressRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NetworkPolicyEgressRule.class); + } + + /** + * Convert an instance of V1NetworkPolicyEgressRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java index 71b083e478..2633fdb59d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NetworkPolicyPeer; import io.kubernetes.client.openapi.models.V1NetworkPolicyPort; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -35,12 +58,14 @@ public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) - private List from = null; + private List from; public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; + public V1NetworkPolicyIngressRule() { + } public V1NetworkPolicyIngressRule from(List from) { @@ -60,9 +85,7 @@ public V1NetworkPolicyIngressRule addFromItem(V1NetworkPolicyPeer fromItem) { * 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. * @return from **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getFrom() { return from; } @@ -91,9 +114,7 @@ public V1NetworkPolicyIngressRule addPortsItem(V1NetworkPolicyPort portsItem) { * 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. * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -104,8 +125,9 @@ public void setPorts(List ports) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -122,7 +144,6 @@ public int hashCode() { return Objects.hash(from, ports); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -137,11 +158,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("from"); + openapiFields.add("ports"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NetworkPolicyIngressRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NetworkPolicyIngressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkPolicyIngressRule is not found in the empty JSON string", V1NetworkPolicyIngressRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NetworkPolicyIngressRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkPolicyIngressRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("from") != null && !jsonObj.get("from").isJsonNull()) { + JsonArray jsonArrayfrom = jsonObj.getAsJsonArray("from"); + if (jsonArrayfrom != null) { + // ensure the json data is an array + if (!jsonObj.get("from").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `from` to be an array in the JSON string but got `%s`", jsonObj.get("from").toString())); + } + + // validate the optional field `from` (array) + for (int i = 0; i < jsonArrayfrom.size(); i++) { + V1NetworkPolicyPeer.validateJsonObject(jsonArrayfrom.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + V1NetworkPolicyPort.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NetworkPolicyIngressRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NetworkPolicyIngressRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NetworkPolicyIngressRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NetworkPolicyIngressRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NetworkPolicyIngressRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NetworkPolicyIngressRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyIngressRule + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyIngressRule + */ + public static V1NetworkPolicyIngressRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NetworkPolicyIngressRule.class); + } + + /** + * Convert an instance of V1NetworkPolicyIngressRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java index 22b1988004..8a34894793 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1NetworkPolicy; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NetworkPolicyList is a list of NetworkPolicy objects. */ @@ -49,6 +72,8 @@ public class V1NetworkPolicyList implements io.kubernetes.client.common.Kubernet @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1NetworkPolicyList() { + } public V1NetworkPolicyList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1NetworkPolicyList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1NetworkPolicyList items(List items) { } public V1NetworkPolicyList addItemsItem(V1NetworkPolicy itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1NetworkPolicyList addItemsItem(V1NetworkPolicy itemsItem) { * items is a list of schema objects. * @return items **/ - @ApiModelProperty(required = true, value = "items is a list of schema objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1NetworkPolicyList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1NetworkPolicyList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NetworkPolicyList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NetworkPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkPolicyList is not found in the empty JSON string", V1NetworkPolicyList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NetworkPolicyList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkPolicyList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NetworkPolicyList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1NetworkPolicy.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NetworkPolicyList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NetworkPolicyList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NetworkPolicyList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NetworkPolicyList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NetworkPolicyList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NetworkPolicyList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyList + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyList + */ + public static V1NetworkPolicyList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NetworkPolicyList.class); + } + + /** + * Convert an instance of V1NetworkPolicyList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java index c5d846c73e..55ad24bd96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IPBlock; import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed */ @@ -43,6 +66,8 @@ public class V1NetworkPolicyPeer { @SerializedName(SERIALIZED_NAME_POD_SELECTOR) private V1LabelSelector podSelector; + public V1NetworkPolicyPeer() { + } public V1NetworkPolicyPeer ipBlock(V1IPBlock ipBlock) { @@ -54,9 +79,7 @@ public V1NetworkPolicyPeer ipBlock(V1IPBlock ipBlock) { * Get ipBlock * @return ipBlock **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1IPBlock getIpBlock() { return ipBlock; } @@ -77,9 +100,7 @@ public V1NetworkPolicyPeer namespaceSelector(V1LabelSelector namespaceSelector) * Get namespaceSelector * @return namespaceSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -100,9 +121,7 @@ public V1NetworkPolicyPeer podSelector(V1LabelSelector podSelector) { * Get podSelector * @return podSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getPodSelector() { return podSelector; } @@ -113,8 +132,9 @@ public void setPodSelector(V1LabelSelector podSelector) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -132,7 +152,6 @@ public int hashCode() { return Objects.hash(ipBlock, namespaceSelector, podSelector); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -148,11 +167,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ipBlock"); + openapiFields.add("namespaceSelector"); + openapiFields.add("podSelector"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NetworkPolicyPeer + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NetworkPolicyPeer.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkPolicyPeer is not found in the empty JSON string", V1NetworkPolicyPeer.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NetworkPolicyPeer.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkPolicyPeer` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `ipBlock` + if (jsonObj.get("ipBlock") != null && !jsonObj.get("ipBlock").isJsonNull()) { + V1IPBlock.validateJsonObject(jsonObj.getAsJsonObject("ipBlock")); + } + // validate the optional field `namespaceSelector` + if (jsonObj.get("namespaceSelector") != null && !jsonObj.get("namespaceSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("namespaceSelector")); + } + // validate the optional field `podSelector` + if (jsonObj.get("podSelector") != null && !jsonObj.get("podSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("podSelector")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NetworkPolicyPeer.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NetworkPolicyPeer' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NetworkPolicyPeer.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NetworkPolicyPeer value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NetworkPolicyPeer read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NetworkPolicyPeer given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyPeer + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyPeer + */ + public static V1NetworkPolicyPeer fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NetworkPolicyPeer.class); + } + + /** + * Convert an instance of V1NetworkPolicyPeer to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java index a65797b6d2..baf5c624a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NetworkPolicyPort describes a port to allow traffic on */ @@ -42,6 +65,8 @@ public class V1NetworkPolicyPort { @SerializedName(SERIALIZED_NAME_PROTOCOL) private String protocol; + public V1NetworkPolicyPort() { + } public V1NetworkPolicyPort endPort(Integer endPort) { @@ -53,9 +78,7 @@ public V1NetworkPolicyPort endPort(Integer endPort) { * 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. * @return endPort **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getEndPort() { return endPort; } @@ -76,9 +99,7 @@ public V1NetworkPolicyPort port(IntOrString port) { * 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. * @return port **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getPort() { return port; } @@ -99,9 +120,7 @@ public V1NetworkPolicyPort protocol(String protocol) { * protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. * @return protocol **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.") - + @jakarta.annotation.Nullable public String getProtocol() { return protocol; } @@ -112,8 +131,9 @@ public void setProtocol(String protocol) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -131,7 +151,6 @@ public int hashCode() { return Objects.hash(endPort, port, protocol); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -147,11 +166,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("endPort"); + openapiFields.add("port"); + openapiFields.add("protocol"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NetworkPolicyPort + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NetworkPolicyPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkPolicyPort is not found in the empty JSON string", V1NetworkPolicyPort.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NetworkPolicyPort.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkPolicyPort` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("port") != null && !jsonObj.get("port").isJsonNull()) && !jsonObj.get("port").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `port` to be a primitive type in the JSON string but got `%s`", jsonObj.get("port").toString())); + } + if ((jsonObj.get("protocol") != null && !jsonObj.get("protocol").isJsonNull()) && !jsonObj.get("protocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NetworkPolicyPort.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NetworkPolicyPort' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NetworkPolicyPort.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NetworkPolicyPort value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NetworkPolicyPort read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NetworkPolicyPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicyPort + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicyPort + */ + public static V1NetworkPolicyPort fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NetworkPolicyPort.class); + } + + /** + * Convert an instance of V1NetworkPolicyPort to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java index c1ebe4076d..ab123f003f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule; import io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NetworkPolicySpec provides the specification of a NetworkPolicy */ @@ -36,11 +59,11 @@ public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) - private List egress = null; + private List egress; public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) - private List ingress = null; + private List ingress; public static final String SERIALIZED_NAME_POD_SELECTOR = "podSelector"; @SerializedName(SERIALIZED_NAME_POD_SELECTOR) @@ -48,8 +71,10 @@ public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_POLICY_TYPES = "policyTypes"; @SerializedName(SERIALIZED_NAME_POLICY_TYPES) - private List policyTypes = null; + private List policyTypes; + public V1NetworkPolicySpec() { + } public V1NetworkPolicySpec egress(List egress) { @@ -69,9 +94,7 @@ public V1NetworkPolicySpec addEgressItem(V1NetworkPolicyEgressRule egressItem) { * 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 * @return egress **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getEgress() { return egress; } @@ -100,9 +123,7 @@ public V1NetworkPolicySpec addIngressItem(V1NetworkPolicyIngressRule ingressItem * 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) * @return ingress **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)") - + @jakarta.annotation.Nullable public List getIngress() { return ingress; } @@ -123,8 +144,7 @@ public V1NetworkPolicySpec podSelector(V1LabelSelector podSelector) { * Get podSelector * @return podSelector **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1LabelSelector getPodSelector() { return podSelector; } @@ -153,9 +173,7 @@ public V1NetworkPolicySpec addPolicyTypesItem(String policyTypesItem) { * 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 * @return policyTypes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getPolicyTypes() { return policyTypes; } @@ -166,8 +184,9 @@ public void setPolicyTypes(List policyTypes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -186,7 +205,6 @@ public int hashCode() { return Objects.hash(egress, ingress, podSelector, policyTypes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +221,139 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("egress"); + openapiFields.add("ingress"); + openapiFields.add("podSelector"); + openapiFields.add("policyTypes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("podSelector"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NetworkPolicySpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NetworkPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkPolicySpec is not found in the empty JSON string", V1NetworkPolicySpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NetworkPolicySpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkPolicySpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NetworkPolicySpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("egress") != null && !jsonObj.get("egress").isJsonNull()) { + JsonArray jsonArrayegress = jsonObj.getAsJsonArray("egress"); + if (jsonArrayegress != null) { + // ensure the json data is an array + if (!jsonObj.get("egress").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `egress` to be an array in the JSON string but got `%s`", jsonObj.get("egress").toString())); + } + + // validate the optional field `egress` (array) + for (int i = 0; i < jsonArrayegress.size(); i++) { + V1NetworkPolicyEgressRule.validateJsonObject(jsonArrayegress.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("ingress") != null && !jsonObj.get("ingress").isJsonNull()) { + JsonArray jsonArrayingress = jsonObj.getAsJsonArray("ingress"); + if (jsonArrayingress != null) { + // ensure the json data is an array + if (!jsonObj.get("ingress").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ingress` to be an array in the JSON string but got `%s`", jsonObj.get("ingress").toString())); + } + + // validate the optional field `ingress` (array) + for (int i = 0; i < jsonArrayingress.size(); i++) { + V1NetworkPolicyIngressRule.validateJsonObject(jsonArrayingress.get(i).getAsJsonObject()); + }; + } + } + // validate the required field `podSelector` + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("podSelector")); + // ensure the optional json data is an array if present + if (jsonObj.get("policyTypes") != null && !jsonObj.get("policyTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `policyTypes` to be an array in the JSON string but got `%s`", jsonObj.get("policyTypes").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NetworkPolicySpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NetworkPolicySpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NetworkPolicySpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NetworkPolicySpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NetworkPolicySpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NetworkPolicySpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NetworkPolicySpec + * @throws IOException if the JSON string is invalid with respect to V1NetworkPolicySpec + */ + public static V1NetworkPolicySpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NetworkPolicySpec.class); + } + + /** + * Convert an instance of V1NetworkPolicySpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java index d1e4fe7e83..a8b7445ba1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1NodeSpec; import io.kubernetes.client.openapi.models.V1NodeStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). */ @@ -52,6 +75,8 @@ public class V1Node implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_STATUS) private V1NodeStatus status; + public V1Node() { + } public V1Node apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1Node apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1Node kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1Node metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1Node spec(V1NodeSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1Node status(V1NodeStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1NodeStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Node + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Node.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Node is not found in the empty JSON string", V1Node.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Node.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Node` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1NodeSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1NodeStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Node.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Node' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Node.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Node value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Node read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Node given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Node + * @throws IOException if the JSON string is invalid with respect to V1Node + */ + public static V1Node fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Node.class); + } + + /** + * Convert an instance of V1Node to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java index fdc403c8ef..dc8e7c8f91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeAddress contains information for the node's address. */ @@ -37,6 +60,8 @@ public class V1NodeAddress { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1NodeAddress() { + } public V1NodeAddress address(String address) { @@ -48,8 +73,7 @@ public V1NodeAddress address(String address) { * The node address. * @return address **/ - @ApiModelProperty(required = true, value = "The node address.") - + @jakarta.annotation.Nonnull public String getAddress() { return address; } @@ -70,8 +94,7 @@ public V1NodeAddress type(String type) { * Node address type, one of Hostname, ExternalIP or InternalIP. * @return type **/ - @ApiModelProperty(required = true, value = "Node address type, one of Hostname, ExternalIP or InternalIP.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -82,8 +105,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(address, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("address"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("address"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeAddress + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeAddress is not found in the empty JSON string", V1NodeAddress.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeAddress.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeAddress` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeAddress.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("address").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeAddress.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAddress' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAddress.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeAddress value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeAddress read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeAddress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAddress + * @throws IOException if the JSON string is invalid with respect to V1NodeAddress + */ + public static V1NodeAddress fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAddress.class); + } + + /** + * Convert an instance of V1NodeAddress to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java index ac9d39c8f2..3f9498c433 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelector; import io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Node affinity is a group of node affinity scheduling rules. */ @@ -35,12 +58,14 @@ public class V1NodeAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) - private List preferredDuringSchedulingIgnoredDuringExecution = null; + private List preferredDuringSchedulingIgnoredDuringExecution; public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) private V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution; + public V1NodeAffinity() { + } public V1NodeAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { @@ -60,9 +85,7 @@ public V1NodeAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1P * 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. * @return preferredDuringSchedulingIgnoredDuringExecution **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } @@ -83,9 +106,7 @@ public V1NodeAffinity requiredDuringSchedulingIgnoredDuringExecution(V1NodeSelec * Get requiredDuringSchedulingIgnoredDuringExecution * @return requiredDuringSchedulingIgnoredDuringExecution **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } @@ -96,8 +117,9 @@ public void setRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector req } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -114,7 +136,6 @@ public int hashCode() { return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -129,11 +150,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("preferredDuringSchedulingIgnoredDuringExecution"); + openapiFields.add("requiredDuringSchedulingIgnoredDuringExecution"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeAffinity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeAffinity is not found in the empty JSON string", V1NodeAffinity.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeAffinity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeAffinity` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution") != null && !jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").isJsonNull()) { + JsonArray jsonArraypreferredDuringSchedulingIgnoredDuringExecution = jsonObj.getAsJsonArray("preferredDuringSchedulingIgnoredDuringExecution"); + if (jsonArraypreferredDuringSchedulingIgnoredDuringExecution != null) { + // ensure the json data is an array + if (!jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `preferredDuringSchedulingIgnoredDuringExecution` to be an array in the JSON string but got `%s`", jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").toString())); + } + + // validate the optional field `preferredDuringSchedulingIgnoredDuringExecution` (array) + for (int i = 0; i < jsonArraypreferredDuringSchedulingIgnoredDuringExecution.size(); i++) { + V1PreferredSchedulingTerm.validateJsonObject(jsonArraypreferredDuringSchedulingIgnoredDuringExecution.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `requiredDuringSchedulingIgnoredDuringExecution` + if (jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution") != null && !jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution").isJsonNull()) { + V1NodeSelector.validateJsonObject(jsonObj.getAsJsonObject("requiredDuringSchedulingIgnoredDuringExecution")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeAffinity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAffinity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAffinity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeAffinity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeAffinity read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeAffinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAffinity + * @throws IOException if the JSON string is invalid with respect to V1NodeAffinity + */ + public static V1NodeAffinity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAffinity.class); + } + + /** + * Convert an instance of V1NodeAffinity to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java index a93b389cad..08ded188c9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeCondition contains condition information for a node. */ @@ -54,6 +77,8 @@ public class V1NodeCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1NodeCondition() { + } public V1NodeCondition lastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { @@ -65,9 +90,7 @@ public V1NodeCondition lastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { * Last time we got an update on a given condition. * @return lastHeartbeatTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time we got an update on a given condition.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastHeartbeatTime() { return lastHeartbeatTime; } @@ -88,9 +111,7 @@ public V1NodeCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { * Last time the condition transit from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transit from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -111,9 +132,7 @@ public V1NodeCondition message(String message) { * Human readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Human readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -134,9 +153,7 @@ public V1NodeCondition reason(String reason) { * (brief) reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "(brief) reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -157,8 +174,7 @@ public V1NodeCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -179,8 +195,7 @@ public V1NodeCondition type(String type) { * Type of node condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type of node condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -191,8 +206,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -213,7 +229,6 @@ public int hashCode() { return Objects.hash(lastHeartbeatTime, lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -232,11 +247,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastHeartbeatTime"); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeCondition is not found in the empty JSON string", V1NodeCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeCondition + * @throws IOException if the JSON string is invalid with respect to V1NodeCondition + */ + public static V1NodeCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeCondition.class); + } + + /** + * Convert an instance of V1NodeCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java index c37dc9eadc..1c9b5d84bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 */ @@ -34,6 +57,8 @@ public class V1NodeConfigSource { @SerializedName(SERIALIZED_NAME_CONFIG_MAP) private V1ConfigMapNodeConfigSource configMap; + public V1NodeConfigSource() { + } public V1NodeConfigSource configMap(V1ConfigMapNodeConfigSource configMap) { @@ -45,9 +70,7 @@ public V1NodeConfigSource configMap(V1ConfigMapNodeConfigSource configMap) { * Get configMap * @return configMap **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ConfigMapNodeConfigSource getConfigMap() { return configMap; } @@ -58,8 +81,9 @@ public void setConfigMap(V1ConfigMapNodeConfigSource configMap) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(configMap); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("configMap"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeConfigSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeConfigSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeConfigSource is not found in the empty JSON string", V1NodeConfigSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeConfigSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeConfigSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `configMap` + if (jsonObj.get("configMap") != null && !jsonObj.get("configMap").isJsonNull()) { + V1ConfigMapNodeConfigSource.validateJsonObject(jsonObj.getAsJsonObject("configMap")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeConfigSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeConfigSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeConfigSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeConfigSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeConfigSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeConfigSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeConfigSource + * @throws IOException if the JSON string is invalid with respect to V1NodeConfigSource + */ + public static V1NodeConfigSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeConfigSource.class); + } + + /** + * Convert an instance of V1NodeConfigSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java index 5aadd18792..eb4de4a428 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeConfigSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. */ @@ -46,6 +69,8 @@ public class V1NodeConfigStatus { @SerializedName(SERIALIZED_NAME_LAST_KNOWN_GOOD) private V1NodeConfigSource lastKnownGood; + public V1NodeConfigStatus() { + } public V1NodeConfigStatus active(V1NodeConfigSource active) { @@ -57,9 +82,7 @@ public V1NodeConfigStatus active(V1NodeConfigSource active) { * Get active * @return active **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeConfigSource getActive() { return active; } @@ -80,9 +103,7 @@ public V1NodeConfigStatus assigned(V1NodeConfigSource assigned) { * Get assigned * @return assigned **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeConfigSource getAssigned() { return assigned; } @@ -103,9 +124,7 @@ public V1NodeConfigStatus error(String error) { * 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. * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getError() { return error; } @@ -126,9 +145,7 @@ public V1NodeConfigStatus lastKnownGood(V1NodeConfigSource lastKnownGood) { * Get lastKnownGood * @return lastKnownGood **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeConfigSource getLastKnownGood() { return lastKnownGood; } @@ -139,8 +156,9 @@ public void setLastKnownGood(V1NodeConfigSource lastKnownGood) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +177,6 @@ public int hashCode() { return Objects.hash(active, assigned, error, lastKnownGood); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +193,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("active"); + openapiFields.add("assigned"); + openapiFields.add("error"); + openapiFields.add("lastKnownGood"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeConfigStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeConfigStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeConfigStatus is not found in the empty JSON string", V1NodeConfigStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeConfigStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeConfigStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `active` + if (jsonObj.get("active") != null && !jsonObj.get("active").isJsonNull()) { + V1NodeConfigSource.validateJsonObject(jsonObj.getAsJsonObject("active")); + } + // validate the optional field `assigned` + if (jsonObj.get("assigned") != null && !jsonObj.get("assigned").isJsonNull()) { + V1NodeConfigSource.validateJsonObject(jsonObj.getAsJsonObject("assigned")); + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); + } + // validate the optional field `lastKnownGood` + if (jsonObj.get("lastKnownGood") != null && !jsonObj.get("lastKnownGood").isJsonNull()) { + V1NodeConfigSource.validateJsonObject(jsonObj.getAsJsonObject("lastKnownGood")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeConfigStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeConfigStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeConfigStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeConfigStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeConfigStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeConfigStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeConfigStatus + * @throws IOException if the JSON string is invalid with respect to V1NodeConfigStatus + */ + public static V1NodeConfigStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeConfigStatus.class); + } + + /** + * Convert an instance of V1NodeConfigStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java index dc6ddcb4fd..6419ab6bc2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DaemonEndpoint; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeDaemonEndpoints lists ports opened by daemons running on the Node. */ @@ -34,6 +57,8 @@ public class V1NodeDaemonEndpoints { @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) private V1DaemonEndpoint kubeletEndpoint; + public V1NodeDaemonEndpoints() { + } public V1NodeDaemonEndpoints kubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { @@ -45,9 +70,7 @@ public V1NodeDaemonEndpoints kubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { * Get kubeletEndpoint * @return kubeletEndpoint **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DaemonEndpoint getKubeletEndpoint() { return kubeletEndpoint; } @@ -58,8 +81,9 @@ public void setKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(kubeletEndpoint); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("kubeletEndpoint"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeDaemonEndpoints + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeDaemonEndpoints.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeDaemonEndpoints is not found in the empty JSON string", V1NodeDaemonEndpoints.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeDaemonEndpoints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeDaemonEndpoints` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `kubeletEndpoint` + if (jsonObj.get("kubeletEndpoint") != null && !jsonObj.get("kubeletEndpoint").isJsonNull()) { + V1DaemonEndpoint.validateJsonObject(jsonObj.getAsJsonObject("kubeletEndpoint")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeDaemonEndpoints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeDaemonEndpoints' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeDaemonEndpoints.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeDaemonEndpoints value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeDaemonEndpoints read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeDaemonEndpoints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeDaemonEndpoints + * @throws IOException if the JSON string is invalid with respect to V1NodeDaemonEndpoints + */ + public static V1NodeDaemonEndpoints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeDaemonEndpoints.class); + } + + /** + * Convert an instance of V1NodeDaemonEndpoints to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java index 6598b7bdd7..85c54d9acd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Node; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeList is the whole list of all Nodes which have been registered with master. */ @@ -49,6 +72,8 @@ public class V1NodeList implements io.kubernetes.client.common.KubernetesListObj @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1NodeList() { + } public V1NodeList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1NodeList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1NodeList items(List items) { } public V1NodeList addItemsItem(V1Node itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1NodeList addItemsItem(V1Node itemsItem) { * List of nodes * @return items **/ - @ApiModelProperty(required = true, value = "List of nodes") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1NodeList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1NodeList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeList is not found in the empty JSON string", V1NodeList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Node.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeList + * @throws IOException if the JSON string is invalid with respect to V1NodeList + */ + public static V1NodeList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeList.class); + } + + /** + * Convert an instance of V1NodeList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java index 595de86c4a..dc9e408b80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelectorTerm; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -36,6 +59,8 @@ public class V1NodeSelector { @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) private List nodeSelectorTerms = new ArrayList<>(); + public V1NodeSelector() { + } public V1NodeSelector nodeSelectorTerms(List nodeSelectorTerms) { @@ -44,6 +69,9 @@ public V1NodeSelector nodeSelectorTerms(List nodeSelectorTer } public V1NodeSelector addNodeSelectorTermsItem(V1NodeSelectorTerm nodeSelectorTermsItem) { + if (this.nodeSelectorTerms == null) { + this.nodeSelectorTerms = new ArrayList<>(); + } this.nodeSelectorTerms.add(nodeSelectorTermsItem); return this; } @@ -52,8 +80,7 @@ public V1NodeSelector addNodeSelectorTermsItem(V1NodeSelectorTerm nodeSelectorTe * Required. A list of node selector terms. The terms are ORed. * @return nodeSelectorTerms **/ - @ApiModelProperty(required = true, value = "Required. A list of node selector terms. The terms are ORed.") - + @jakarta.annotation.Nonnull public List getNodeSelectorTerms() { return nodeSelectorTerms; } @@ -64,8 +91,9 @@ public void setNodeSelectorTerms(List nodeSelectorTerms) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -81,7 +109,6 @@ public int hashCode() { return Objects.hash(nodeSelectorTerms); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,11 +122,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nodeSelectorTerms"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("nodeSelectorTerms"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeSelector + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeSelector is not found in the empty JSON string", V1NodeSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeSelector` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeSelector.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (!jsonObj.get("nodeSelectorTerms").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeSelectorTerms` to be an array in the JSON string but got `%s`", jsonObj.get("nodeSelectorTerms").toString())); + } + + JsonArray jsonArraynodeSelectorTerms = jsonObj.getAsJsonArray("nodeSelectorTerms"); + // validate the required field `nodeSelectorTerms` (array) + for (int i = 0; i < jsonArraynodeSelectorTerms.size(); i++) { + V1NodeSelectorTerm.validateJsonObject(jsonArraynodeSelectorTerms.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeSelector read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSelector + * @throws IOException if the JSON string is invalid with respect to V1NodeSelector + */ + public static V1NodeSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeSelector.class); + } + + /** + * Convert an instance of V1NodeSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java index 43a08e16da..2bdb941bd3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @@ -41,8 +64,10 @@ public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) - private List values = null; + private List values; + public V1NodeSelectorRequirement() { + } public V1NodeSelectorRequirement key(String key) { @@ -54,8 +79,7 @@ public V1NodeSelectorRequirement key(String key) { * The label key that the selector applies to. * @return key **/ - @ApiModelProperty(required = true, value = "The label key that the selector applies to.") - + @jakarta.annotation.Nonnull public String getKey() { return key; } @@ -76,8 +100,7 @@ public V1NodeSelectorRequirement operator(String operator) { * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. * @return operator **/ - @ApiModelProperty(required = true, value = "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.") - + @jakarta.annotation.Nonnull public String getOperator() { return operator; } @@ -106,9 +129,7 @@ public V1NodeSelectorRequirement addValuesItem(String valuesItem) { * 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. * @return values **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getValues() { return values; } @@ -119,8 +140,9 @@ public void setValues(List values) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -138,7 +160,6 @@ public int hashCode() { return Objects.hash(key, operator, values); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -154,11 +175,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("operator"); + openapiFields.add("values"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + openapiRequiredFields.add("operator"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeSelectorRequirement + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeSelectorRequirement is not found in the empty JSON string", V1NodeSelectorRequirement.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeSelectorRequirement.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeSelectorRequirement` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeSelectorRequirement.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if (!jsonObj.get("operator").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeSelectorRequirement.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeSelectorRequirement' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeSelectorRequirement.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeSelectorRequirement value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeSelectorRequirement read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeSelectorRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSelectorRequirement + * @throws IOException if the JSON string is invalid with respect to V1NodeSelectorRequirement + */ + public static V1NodeSelectorRequirement fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeSelectorRequirement.class); + } + + /** + * Convert an instance of V1NodeSelectorRequirement to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java index bf61a0d390..df20bc76ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelectorRequirement; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -34,12 +57,14 @@ public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) - private List matchExpressions = null; + private List matchExpressions; public static final String SERIALIZED_NAME_MATCH_FIELDS = "matchFields"; @SerializedName(SERIALIZED_NAME_MATCH_FIELDS) - private List matchFields = null; + private List matchFields; + public V1NodeSelectorTerm() { + } public V1NodeSelectorTerm matchExpressions(List matchExpressions) { @@ -59,9 +84,7 @@ public V1NodeSelectorTerm addMatchExpressionsItem(V1NodeSelectorRequirement matc * A list of node selector requirements by node's labels. * @return matchExpressions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A list of node selector requirements by node's labels.") - + @jakarta.annotation.Nullable public List getMatchExpressions() { return matchExpressions; } @@ -90,9 +113,7 @@ public V1NodeSelectorTerm addMatchFieldsItem(V1NodeSelectorRequirement matchFiel * A list of node selector requirements by node's fields. * @return matchFields **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A list of node selector requirements by node's fields.") - + @jakarta.annotation.Nullable public List getMatchFields() { return matchFields; } @@ -103,8 +124,9 @@ public void setMatchFields(List matchFields) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -121,7 +143,6 @@ public int hashCode() { return Objects.hash(matchExpressions, matchFields); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -136,11 +157,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("matchExpressions"); + openapiFields.add("matchFields"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeSelectorTerm + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeSelectorTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeSelectorTerm is not found in the empty JSON string", V1NodeSelectorTerm.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeSelectorTerm.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeSelectorTerm` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("matchExpressions") != null && !jsonObj.get("matchExpressions").isJsonNull()) { + JsonArray jsonArraymatchExpressions = jsonObj.getAsJsonArray("matchExpressions"); + if (jsonArraymatchExpressions != null) { + // ensure the json data is an array + if (!jsonObj.get("matchExpressions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchExpressions` to be an array in the JSON string but got `%s`", jsonObj.get("matchExpressions").toString())); + } + + // validate the optional field `matchExpressions` (array) + for (int i = 0; i < jsonArraymatchExpressions.size(); i++) { + V1NodeSelectorRequirement.validateJsonObject(jsonArraymatchExpressions.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("matchFields") != null && !jsonObj.get("matchFields").isJsonNull()) { + JsonArray jsonArraymatchFields = jsonObj.getAsJsonArray("matchFields"); + if (jsonArraymatchFields != null) { + // ensure the json data is an array + if (!jsonObj.get("matchFields").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchFields` to be an array in the JSON string but got `%s`", jsonObj.get("matchFields").toString())); + } + + // validate the optional field `matchFields` (array) + for (int i = 0; i < jsonArraymatchFields.size(); i++) { + V1NodeSelectorRequirement.validateJsonObject(jsonArraymatchFields.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeSelectorTerm.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeSelectorTerm' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeSelectorTerm.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeSelectorTerm value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeSelectorTerm read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeSelectorTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSelectorTerm + * @throws IOException if the JSON string is invalid with respect to V1NodeSelectorTerm + */ + public static V1NodeSelectorTerm fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeSelectorTerm.class); + } + + /** + * Convert an instance of V1NodeSelectorTerm to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java index b9cda295f3..4fe8cdb231 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeConfigSource; import io.kubernetes.client.openapi.models.V1Taint; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeSpec describes the attributes that a node is created with. */ @@ -47,7 +70,7 @@ public class V1NodeSpec { public static final String SERIALIZED_NAME_POD_C_I_D_RS = "podCIDRs"; @SerializedName(SERIALIZED_NAME_POD_C_I_D_RS) - private List podCIDRs = null; + private List podCIDRs; public static final String SERIALIZED_NAME_PROVIDER_I_D = "providerID"; @SerializedName(SERIALIZED_NAME_PROVIDER_I_D) @@ -55,12 +78,14 @@ public class V1NodeSpec { public static final String SERIALIZED_NAME_TAINTS = "taints"; @SerializedName(SERIALIZED_NAME_TAINTS) - private List taints = null; + private List taints; public static final String SERIALIZED_NAME_UNSCHEDULABLE = "unschedulable"; @SerializedName(SERIALIZED_NAME_UNSCHEDULABLE) private Boolean unschedulable; + public V1NodeSpec() { + } public V1NodeSpec configSource(V1NodeConfigSource configSource) { @@ -72,9 +97,7 @@ public V1NodeSpec configSource(V1NodeConfigSource configSource) { * Get configSource * @return configSource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeConfigSource getConfigSource() { return configSource; } @@ -95,9 +118,7 @@ public V1NodeSpec externalID(String externalID) { * Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 * @return externalID **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966") - + @jakarta.annotation.Nullable public String getExternalID() { return externalID; } @@ -118,9 +139,7 @@ public V1NodeSpec podCIDR(String podCIDR) { * PodCIDR represents the pod IP range assigned to the node. * @return podCIDR **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "PodCIDR represents the pod IP range assigned to the node.") - + @jakarta.annotation.Nullable public String getPodCIDR() { return podCIDR; } @@ -149,9 +168,7 @@ public V1NodeSpec addPodCIDRsItem(String podCIDRsItem) { * 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. * @return podCIDRs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPodCIDRs() { return podCIDRs; } @@ -172,9 +189,7 @@ public V1NodeSpec providerID(String providerID) { * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> * @return providerID **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ID of the node assigned by the cloud provider in the format: ://") - + @jakarta.annotation.Nullable public String getProviderID() { return providerID; } @@ -203,9 +218,7 @@ public V1NodeSpec addTaintsItem(V1Taint taintsItem) { * If specified, the node's taints. * @return taints **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If specified, the node's taints.") - + @jakarta.annotation.Nullable public List getTaints() { return taints; } @@ -226,9 +239,7 @@ public V1NodeSpec unschedulable(Boolean unschedulable) { * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration * @return unschedulable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration") - + @jakarta.annotation.Nullable public Boolean getUnschedulable() { return unschedulable; } @@ -239,8 +250,9 @@ public void setUnschedulable(Boolean unschedulable) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -262,7 +274,6 @@ public int hashCode() { return Objects.hash(configSource, externalID, podCIDR, podCIDRs, providerID, taints, unschedulable); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -282,11 +293,131 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("configSource"); + openapiFields.add("externalID"); + openapiFields.add("podCIDR"); + openapiFields.add("podCIDRs"); + openapiFields.add("providerID"); + openapiFields.add("taints"); + openapiFields.add("unschedulable"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeSpec is not found in the empty JSON string", V1NodeSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `configSource` + if (jsonObj.get("configSource") != null && !jsonObj.get("configSource").isJsonNull()) { + V1NodeConfigSource.validateJsonObject(jsonObj.getAsJsonObject("configSource")); + } + if ((jsonObj.get("externalID") != null && !jsonObj.get("externalID").isJsonNull()) && !jsonObj.get("externalID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `externalID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("externalID").toString())); + } + if ((jsonObj.get("podCIDR") != null && !jsonObj.get("podCIDR").isJsonNull()) && !jsonObj.get("podCIDR").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `podCIDR` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podCIDR").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("podCIDRs") != null && !jsonObj.get("podCIDRs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `podCIDRs` to be an array in the JSON string but got `%s`", jsonObj.get("podCIDRs").toString())); + } + if ((jsonObj.get("providerID") != null && !jsonObj.get("providerID").isJsonNull()) && !jsonObj.get("providerID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `providerID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("providerID").toString())); + } + if (jsonObj.get("taints") != null && !jsonObj.get("taints").isJsonNull()) { + JsonArray jsonArraytaints = jsonObj.getAsJsonArray("taints"); + if (jsonArraytaints != null) { + // ensure the json data is an array + if (!jsonObj.get("taints").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `taints` to be an array in the JSON string but got `%s`", jsonObj.get("taints").toString())); + } + + // validate the optional field `taints` (array) + for (int i = 0; i < jsonArraytaints.size(); i++) { + V1Taint.validateJsonObject(jsonArraytaints.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSpec + * @throws IOException if the JSON string is invalid with respect to V1NodeSpec + */ + public static V1NodeSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeSpec.class); + } + + /** + * Convert an instance of V1NodeSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java index 50f2926099..beb7909895 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java @@ -27,14 +27,37 @@ import io.kubernetes.client.openapi.models.V1NodeConfigStatus; import io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints; import io.kubernetes.client.openapi.models.V1NodeSystemInfo; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeStatus is information about the current status of a node. */ @@ -43,19 +66,19 @@ public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) - private List addresses = null; + private List addresses; public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @SerializedName(SERIALIZED_NAME_ALLOCATABLE) - private Map allocatable = null; + private Map allocatable = new HashMap<>(); public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) - private Map capacity = null; + private Map capacity = new HashMap<>(); public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -67,7 +90,7 @@ public class V1NodeStatus { public static final String SERIALIZED_NAME_IMAGES = "images"; @SerializedName(SERIALIZED_NAME_IMAGES) - private List images = null; + private List images; public static final String SERIALIZED_NAME_NODE_INFO = "nodeInfo"; @SerializedName(SERIALIZED_NAME_NODE_INFO) @@ -79,12 +102,14 @@ public class V1NodeStatus { public static final String SERIALIZED_NAME_VOLUMES_ATTACHED = "volumesAttached"; @SerializedName(SERIALIZED_NAME_VOLUMES_ATTACHED) - private List volumesAttached = null; + private List volumesAttached; public static final String SERIALIZED_NAME_VOLUMES_IN_USE = "volumesInUse"; @SerializedName(SERIALIZED_NAME_VOLUMES_IN_USE) - private List volumesInUse = null; + private List volumesInUse; + public V1NodeStatus() { + } public V1NodeStatus addresses(List addresses) { @@ -104,9 +129,7 @@ public V1NodeStatus addAddressesItem(V1NodeAddress addressesItem) { * 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). * @return addresses **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public List getAddresses() { return addresses; } @@ -135,9 +158,7 @@ public V1NodeStatus putAllocatableItem(String key, Quantity allocatableItem) { * Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. * @return allocatable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.") - + @jakarta.annotation.Nullable public Map getAllocatable() { return allocatable; } @@ -166,9 +187,7 @@ public V1NodeStatus putCapacityItem(String key, Quantity capacityItem) { * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity * @return capacity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity") - + @jakarta.annotation.Nullable public Map getCapacity() { return capacity; } @@ -197,9 +216,7 @@ public V1NodeStatus addConditionsItem(V1NodeCondition conditionsItem) { * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -220,9 +237,7 @@ public V1NodeStatus config(V1NodeConfigStatus config) { * Get config * @return config **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeConfigStatus getConfig() { return config; } @@ -243,9 +258,7 @@ public V1NodeStatus daemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { * Get daemonEndpoints * @return daemonEndpoints **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeDaemonEndpoints getDaemonEndpoints() { return daemonEndpoints; } @@ -274,9 +287,7 @@ public V1NodeStatus addImagesItem(V1ContainerImage imagesItem) { * List of container images on this node * @return images **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of container images on this node") - + @jakarta.annotation.Nullable public List getImages() { return images; } @@ -297,9 +308,7 @@ public V1NodeStatus nodeInfo(V1NodeSystemInfo nodeInfo) { * Get nodeInfo * @return nodeInfo **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeSystemInfo getNodeInfo() { return nodeInfo; } @@ -320,9 +329,7 @@ public V1NodeStatus phase(String phase) { * 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. * @return phase **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getPhase() { return phase; } @@ -351,9 +358,7 @@ public V1NodeStatus addVolumesAttachedItem(V1AttachedVolume volumesAttachedItem) * List of volumes that are attached to the node. * @return volumesAttached **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of volumes that are attached to the node.") - + @jakarta.annotation.Nullable public List getVolumesAttached() { return volumesAttached; } @@ -382,9 +387,7 @@ public V1NodeStatus addVolumesInUseItem(String volumesInUseItem) { * List of attachable volumes in use (mounted) by the node. * @return volumesInUse **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of attachable volumes in use (mounted) by the node.") - + @jakarta.annotation.Nullable public List getVolumesInUse() { return volumesInUse; } @@ -395,8 +398,9 @@ public void setVolumesInUse(List volumesInUse) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -422,7 +426,6 @@ public int hashCode() { return Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, images, nodeInfo, phase, volumesAttached, volumesInUse); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -446,11 +449,179 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("addresses"); + openapiFields.add("allocatable"); + openapiFields.add("capacity"); + openapiFields.add("conditions"); + openapiFields.add("config"); + openapiFields.add("daemonEndpoints"); + openapiFields.add("images"); + openapiFields.add("nodeInfo"); + openapiFields.add("phase"); + openapiFields.add("volumesAttached"); + openapiFields.add("volumesInUse"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeStatus is not found in the empty JSON string", V1NodeStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("addresses") != null && !jsonObj.get("addresses").isJsonNull()) { + JsonArray jsonArrayaddresses = jsonObj.getAsJsonArray("addresses"); + if (jsonArrayaddresses != null) { + // ensure the json data is an array + if (!jsonObj.get("addresses").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `addresses` to be an array in the JSON string but got `%s`", jsonObj.get("addresses").toString())); + } + + // validate the optional field `addresses` (array) + for (int i = 0; i < jsonArrayaddresses.size(); i++) { + V1NodeAddress.validateJsonObject(jsonArrayaddresses.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1NodeCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + V1NodeConfigStatus.validateJsonObject(jsonObj.getAsJsonObject("config")); + } + // validate the optional field `daemonEndpoints` + if (jsonObj.get("daemonEndpoints") != null && !jsonObj.get("daemonEndpoints").isJsonNull()) { + V1NodeDaemonEndpoints.validateJsonObject(jsonObj.getAsJsonObject("daemonEndpoints")); + } + if (jsonObj.get("images") != null && !jsonObj.get("images").isJsonNull()) { + JsonArray jsonArrayimages = jsonObj.getAsJsonArray("images"); + if (jsonArrayimages != null) { + // ensure the json data is an array + if (!jsonObj.get("images").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `images` to be an array in the JSON string but got `%s`", jsonObj.get("images").toString())); + } + + // validate the optional field `images` (array) + for (int i = 0; i < jsonArrayimages.size(); i++) { + V1ContainerImage.validateJsonObject(jsonArrayimages.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `nodeInfo` + if (jsonObj.get("nodeInfo") != null && !jsonObj.get("nodeInfo").isJsonNull()) { + V1NodeSystemInfo.validateJsonObject(jsonObj.getAsJsonObject("nodeInfo")); + } + if ((jsonObj.get("phase") != null && !jsonObj.get("phase").isJsonNull()) && !jsonObj.get("phase").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `phase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phase").toString())); + } + if (jsonObj.get("volumesAttached") != null && !jsonObj.get("volumesAttached").isJsonNull()) { + JsonArray jsonArrayvolumesAttached = jsonObj.getAsJsonArray("volumesAttached"); + if (jsonArrayvolumesAttached != null) { + // ensure the json data is an array + if (!jsonObj.get("volumesAttached").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumesAttached` to be an array in the JSON string but got `%s`", jsonObj.get("volumesAttached").toString())); + } + + // validate the optional field `volumesAttached` (array) + for (int i = 0; i < jsonArrayvolumesAttached.size(); i++) { + V1AttachedVolume.validateJsonObject(jsonArrayvolumesAttached.get(i).getAsJsonObject()); + }; + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("volumesInUse") != null && !jsonObj.get("volumesInUse").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumesInUse` to be an array in the JSON string but got `%s`", jsonObj.get("volumesInUse").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeStatus + * @throws IOException if the JSON string is invalid with respect to V1NodeStatus + */ + public static V1NodeStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeStatus.class); + } + + /** + * Convert an instance of V1NodeStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java index b9b4c5b9a4..ab511a6230 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. */ @@ -69,6 +92,8 @@ public class V1NodeSystemInfo { @SerializedName(SERIALIZED_NAME_SYSTEM_U_U_I_D) private String systemUUID; + public V1NodeSystemInfo() { + } public V1NodeSystemInfo architecture(String architecture) { @@ -80,8 +105,7 @@ public V1NodeSystemInfo architecture(String architecture) { * The Architecture reported by the node * @return architecture **/ - @ApiModelProperty(required = true, value = "The Architecture reported by the node") - + @jakarta.annotation.Nonnull public String getArchitecture() { return architecture; } @@ -102,8 +126,7 @@ public V1NodeSystemInfo bootID(String bootID) { * Boot ID reported by the node. * @return bootID **/ - @ApiModelProperty(required = true, value = "Boot ID reported by the node.") - + @jakarta.annotation.Nonnull public String getBootID() { return bootID; } @@ -124,8 +147,7 @@ public V1NodeSystemInfo containerRuntimeVersion(String containerRuntimeVersion) * ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). * @return containerRuntimeVersion **/ - @ApiModelProperty(required = true, value = "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).") - + @jakarta.annotation.Nonnull public String getContainerRuntimeVersion() { return containerRuntimeVersion; } @@ -146,8 +168,7 @@ public V1NodeSystemInfo kernelVersion(String kernelVersion) { * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). * @return kernelVersion **/ - @ApiModelProperty(required = true, value = "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).") - + @jakarta.annotation.Nonnull public String getKernelVersion() { return kernelVersion; } @@ -168,8 +189,7 @@ public V1NodeSystemInfo kubeProxyVersion(String kubeProxyVersion) { * KubeProxy Version reported by the node. * @return kubeProxyVersion **/ - @ApiModelProperty(required = true, value = "KubeProxy Version reported by the node.") - + @jakarta.annotation.Nonnull public String getKubeProxyVersion() { return kubeProxyVersion; } @@ -190,8 +210,7 @@ public V1NodeSystemInfo kubeletVersion(String kubeletVersion) { * Kubelet Version reported by the node. * @return kubeletVersion **/ - @ApiModelProperty(required = true, value = "Kubelet Version reported by the node.") - + @jakarta.annotation.Nonnull public String getKubeletVersion() { return kubeletVersion; } @@ -212,8 +231,7 @@ public V1NodeSystemInfo machineID(String machineID) { * 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 * @return machineID **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getMachineID() { return machineID; } @@ -234,8 +252,7 @@ public V1NodeSystemInfo operatingSystem(String operatingSystem) { * The Operating System reported by the node * @return operatingSystem **/ - @ApiModelProperty(required = true, value = "The Operating System reported by the node") - + @jakarta.annotation.Nonnull public String getOperatingSystem() { return operatingSystem; } @@ -256,8 +273,7 @@ public V1NodeSystemInfo osImage(String osImage) { * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). * @return osImage **/ - @ApiModelProperty(required = true, value = "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).") - + @jakarta.annotation.Nonnull public String getOsImage() { return osImage; } @@ -278,8 +294,7 @@ public V1NodeSystemInfo systemUUID(String systemUUID) { * 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 * @return systemUUID **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getSystemUUID() { return systemUUID; } @@ -290,8 +305,9 @@ public void setSystemUUID(String systemUUID) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -316,7 +332,6 @@ public int hashCode() { return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -339,11 +354,150 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("architecture"); + openapiFields.add("bootID"); + openapiFields.add("containerRuntimeVersion"); + openapiFields.add("kernelVersion"); + openapiFields.add("kubeProxyVersion"); + openapiFields.add("kubeletVersion"); + openapiFields.add("machineID"); + openapiFields.add("operatingSystem"); + openapiFields.add("osImage"); + openapiFields.add("systemUUID"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("architecture"); + openapiRequiredFields.add("bootID"); + openapiRequiredFields.add("containerRuntimeVersion"); + openapiRequiredFields.add("kernelVersion"); + openapiRequiredFields.add("kubeProxyVersion"); + openapiRequiredFields.add("kubeletVersion"); + openapiRequiredFields.add("machineID"); + openapiRequiredFields.add("operatingSystem"); + openapiRequiredFields.add("osImage"); + openapiRequiredFields.add("systemUUID"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NodeSystemInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NodeSystemInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeSystemInfo is not found in the empty JSON string", V1NodeSystemInfo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NodeSystemInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeSystemInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeSystemInfo.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("architecture").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `architecture` to be a primitive type in the JSON string but got `%s`", jsonObj.get("architecture").toString())); + } + if (!jsonObj.get("bootID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `bootID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bootID").toString())); + } + if (!jsonObj.get("containerRuntimeVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `containerRuntimeVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerRuntimeVersion").toString())); + } + if (!jsonObj.get("kernelVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kernelVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kernelVersion").toString())); + } + if (!jsonObj.get("kubeProxyVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kubeProxyVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kubeProxyVersion").toString())); + } + if (!jsonObj.get("kubeletVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kubeletVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kubeletVersion").toString())); + } + if (!jsonObj.get("machineID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `machineID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("machineID").toString())); + } + if (!jsonObj.get("operatingSystem").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operatingSystem` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operatingSystem").toString())); + } + if (!jsonObj.get("osImage").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `osImage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osImage").toString())); + } + if (!jsonObj.get("systemUUID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `systemUUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("systemUUID").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeSystemInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeSystemInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeSystemInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeSystemInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeSystemInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeSystemInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeSystemInfo + * @throws IOException if the JSON string is invalid with respect to V1NodeSystemInfo + */ + public static V1NodeSystemInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeSystemInfo.class); + } + + /** + * Convert an instance of V1NodeSystemInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java index 855c4a440e..b3c519f31e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface */ @@ -37,6 +60,8 @@ public class V1NonResourceAttributes { @SerializedName(SERIALIZED_NAME_VERB) private String verb; + public V1NonResourceAttributes() { + } public V1NonResourceAttributes path(String path) { @@ -48,9 +73,7 @@ public V1NonResourceAttributes path(String path) { * Path is the URL path of the request * @return path **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Path is the URL path of the request") - + @jakarta.annotation.Nullable public String getPath() { return path; } @@ -71,9 +94,7 @@ public V1NonResourceAttributes verb(String verb) { * Verb is the standard HTTP verb * @return verb **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Verb is the standard HTTP verb") - + @jakarta.annotation.Nullable public String getVerb() { return verb; } @@ -84,8 +105,9 @@ public void setVerb(String verb) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(path, verb); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("path"); + openapiFields.add("verb"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NonResourceAttributes + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NonResourceAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NonResourceAttributes is not found in the empty JSON string", V1NonResourceAttributes.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NonResourceAttributes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NonResourceAttributes` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("verb") != null && !jsonObj.get("verb").isJsonNull()) && !jsonObj.get("verb").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `verb` to be a primitive type in the JSON string but got `%s`", jsonObj.get("verb").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NonResourceAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NonResourceAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NonResourceAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NonResourceAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NonResourceAttributes read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NonResourceAttributes given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NonResourceAttributes + * @throws IOException if the JSON string is invalid with respect to V1NonResourceAttributes + */ + public static V1NonResourceAttributes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NonResourceAttributes.class); + } + + /** + * Convert an instance of V1NonResourceAttributes to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java index f64c33c891..3572fc2a03 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NonResourceRule holds information that describes a rule for the non-resource */ @@ -33,12 +56,14 @@ public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) - private List nonResourceURLs = null; + private List nonResourceURLs; public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList<>(); + public V1NonResourceRule() { + } public V1NonResourceRule nonResourceURLs(List nonResourceURLs) { @@ -58,9 +83,7 @@ public V1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) { * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. * @return nonResourceURLs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.") - + @jakarta.annotation.Nullable public List getNonResourceURLs() { return nonResourceURLs; } @@ -78,6 +101,9 @@ public V1NonResourceRule verbs(List verbs) { } public V1NonResourceRule addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } this.verbs.add(verbsItem); return this; } @@ -86,8 +112,7 @@ public V1NonResourceRule addVerbsItem(String verbsItem) { * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. * @return verbs **/ - @ApiModelProperty(required = true, value = "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.") - + @jakarta.annotation.Nonnull public List getVerbs() { return verbs; } @@ -98,8 +123,9 @@ public void setVerbs(List verbs) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -116,7 +142,6 @@ public int hashCode() { return Objects.hash(nonResourceURLs, verbs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,11 +156,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nonResourceURLs"); + openapiFields.add("verbs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("verbs"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1NonResourceRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1NonResourceRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NonResourceRule is not found in the empty JSON string", V1NonResourceRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1NonResourceRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NonResourceRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NonResourceRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("nonResourceURLs") != null && !jsonObj.get("nonResourceURLs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nonResourceURLs` to be an array in the JSON string but got `%s`", jsonObj.get("nonResourceURLs").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NonResourceRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NonResourceRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NonResourceRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NonResourceRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NonResourceRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NonResourceRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NonResourceRule + * @throws IOException if the JSON string is invalid with respect to V1NonResourceRule + */ + public static V1NonResourceRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NonResourceRule.class); + } + + /** + * Convert an instance of V1NonResourceRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java index fbfa3acc72..149ed5310b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ObjectFieldSelector selects an APIVersioned field of an object. */ @@ -37,6 +60,8 @@ public class V1ObjectFieldSelector { @SerializedName(SERIALIZED_NAME_FIELD_PATH) private String fieldPath; + public V1ObjectFieldSelector() { + } public V1ObjectFieldSelector apiVersion(String apiVersion) { @@ -48,9 +73,7 @@ public V1ObjectFieldSelector apiVersion(String apiVersion) { * Version of the schema the FieldPath is written in terms of, defaults to \"v1\". * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -71,8 +94,7 @@ public V1ObjectFieldSelector fieldPath(String fieldPath) { * Path of the field to select in the specified API version. * @return fieldPath **/ - @ApiModelProperty(required = true, value = "Path of the field to select in the specified API version.") - + @jakarta.annotation.Nonnull public String getFieldPath() { return fieldPath; } @@ -83,8 +105,9 @@ public void setFieldPath(String fieldPath) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +124,6 @@ public int hashCode() { return Objects.hash(apiVersion, fieldPath); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +138,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("fieldPath"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("fieldPath"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ObjectFieldSelector + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ObjectFieldSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ObjectFieldSelector is not found in the empty JSON string", V1ObjectFieldSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ObjectFieldSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ObjectFieldSelector` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ObjectFieldSelector.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (!jsonObj.get("fieldPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fieldPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldPath").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ObjectFieldSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ObjectFieldSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ObjectFieldSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ObjectFieldSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ObjectFieldSelector read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ObjectFieldSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ObjectFieldSelector + * @throws IOException if the JSON string is invalid with respect to V1ObjectFieldSelector + */ + public static V1ObjectFieldSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ObjectFieldSelector.class); + } + + /** + * Convert an instance of V1ObjectFieldSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java index 0a0c2ff3a8..60bea6dcb7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java @@ -21,8 +21,6 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ManagedFieldsEntry; import io.kubernetes.client.openapi.models.V1OwnerReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -30,6 +28,31 @@ import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. */ @@ -38,7 +61,7 @@ public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @SerializedName(SERIALIZED_NAME_ANNOTATIONS) - private Map annotations = null; + private Map annotations = new HashMap<>(); public static final String SERIALIZED_NAME_CREATION_TIMESTAMP = "creationTimestamp"; @SerializedName(SERIALIZED_NAME_CREATION_TIMESTAMP) @@ -54,7 +77,7 @@ public class V1ObjectMeta { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_FINALIZERS) - private List finalizers = null; + private List finalizers; public static final String SERIALIZED_NAME_GENERATE_NAME = "generateName"; @SerializedName(SERIALIZED_NAME_GENERATE_NAME) @@ -66,11 +89,11 @@ public class V1ObjectMeta { public static final String SERIALIZED_NAME_LABELS = "labels"; @SerializedName(SERIALIZED_NAME_LABELS) - private Map labels = null; + private Map labels = new HashMap<>(); public static final String SERIALIZED_NAME_MANAGED_FIELDS = "managedFields"; @SerializedName(SERIALIZED_NAME_MANAGED_FIELDS) - private List managedFields = null; + private List managedFields; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -82,7 +105,7 @@ public class V1ObjectMeta { public static final String SERIALIZED_NAME_OWNER_REFERENCES = "ownerReferences"; @SerializedName(SERIALIZED_NAME_OWNER_REFERENCES) - private List ownerReferences = null; + private List ownerReferences; public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) @@ -96,6 +119,8 @@ public class V1ObjectMeta { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1ObjectMeta() { + } public V1ObjectMeta annotations(Map annotations) { @@ -115,9 +140,7 @@ public V1ObjectMeta putAnnotationsItem(String key, String annotationsItem) { * 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 * @return annotations **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Map getAnnotations() { return annotations; } @@ -138,9 +161,7 @@ public V1ObjectMeta creationTimestamp(OffsetDateTime creationTimestamp) { * 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. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * @return creationTimestamp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") - + @jakarta.annotation.Nullable public OffsetDateTime getCreationTimestamp() { return creationTimestamp; } @@ -161,9 +182,7 @@ public V1ObjectMeta deletionGracePeriodSeconds(Long deletionGracePeriodSeconds) * 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. * @return deletionGracePeriodSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getDeletionGracePeriodSeconds() { return deletionGracePeriodSeconds; } @@ -184,9 +203,7 @@ public V1ObjectMeta deletionTimestamp(OffsetDateTime deletionTimestamp) { * 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. Populated 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 * @return deletionTimestamp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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. Populated 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") - + @jakarta.annotation.Nullable public OffsetDateTime getDeletionTimestamp() { return deletionTimestamp; } @@ -215,9 +232,7 @@ public V1ObjectMeta addFinalizersItem(String finalizersItem) { * 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. * @return finalizers **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getFinalizers() { return finalizers; } @@ -238,9 +253,7 @@ public V1ObjectMeta generateName(String generateName) { * 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 * @return generateName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getGenerateName() { return generateName; } @@ -261,9 +274,7 @@ public V1ObjectMeta generation(Long generation) { * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. * @return generation **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.") - + @jakarta.annotation.Nullable public Long getGeneration() { return generation; } @@ -292,9 +303,7 @@ public V1ObjectMeta putLabelsItem(String key, String labelsItem) { * 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 * @return labels **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Map getLabels() { return labels; } @@ -323,9 +332,7 @@ public V1ObjectMeta addManagedFieldsItem(V1ManagedFieldsEntry managedFieldsItem) * 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. * @return managedFields **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getManagedFields() { return managedFields; } @@ -346,9 +353,7 @@ public V1ObjectMeta name(String name) { * 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 * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -369,9 +374,7 @@ public V1ObjectMeta namespace(String namespace) { * 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 * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -400,9 +403,7 @@ public V1ObjectMeta addOwnerReferencesItem(V1OwnerReference ownerReferencesItem) * 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. * @return ownerReferences **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getOwnerReferences() { return ownerReferences; } @@ -423,9 +424,7 @@ public V1ObjectMeta resourceVersion(String resourceVersion) { * 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 * @return resourceVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getResourceVersion() { return resourceVersion; } @@ -446,9 +445,7 @@ public V1ObjectMeta selfLink(String selfLink) { * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. * @return selfLink **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.") - + @jakarta.annotation.Nullable public String getSelfLink() { return selfLink; } @@ -469,9 +466,7 @@ public V1ObjectMeta uid(String uid) { * 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 * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -482,8 +477,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -513,7 +509,6 @@ public int hashCode() { return Objects.hash(annotations, creationTimestamp, deletionGracePeriodSeconds, deletionTimestamp, finalizers, generateName, generation, labels, managedFields, name, namespace, ownerReferences, resourceVersion, selfLink, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -541,11 +536,158 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("annotations"); + openapiFields.add("creationTimestamp"); + openapiFields.add("deletionGracePeriodSeconds"); + openapiFields.add("deletionTimestamp"); + openapiFields.add("finalizers"); + openapiFields.add("generateName"); + openapiFields.add("generation"); + openapiFields.add("labels"); + openapiFields.add("managedFields"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("ownerReferences"); + openapiFields.add("resourceVersion"); + openapiFields.add("selfLink"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ObjectMeta + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ObjectMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ObjectMeta is not found in the empty JSON string", V1ObjectMeta.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ObjectMeta.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ObjectMeta` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("finalizers") != null && !jsonObj.get("finalizers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `finalizers` to be an array in the JSON string but got `%s`", jsonObj.get("finalizers").toString())); + } + if ((jsonObj.get("generateName") != null && !jsonObj.get("generateName").isJsonNull()) && !jsonObj.get("generateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `generateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("generateName").toString())); + } + if (jsonObj.get("managedFields") != null && !jsonObj.get("managedFields").isJsonNull()) { + JsonArray jsonArraymanagedFields = jsonObj.getAsJsonArray("managedFields"); + if (jsonArraymanagedFields != null) { + // ensure the json data is an array + if (!jsonObj.get("managedFields").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `managedFields` to be an array in the JSON string but got `%s`", jsonObj.get("managedFields").toString())); + } + + // validate the optional field `managedFields` (array) + for (int i = 0; i < jsonArraymanagedFields.size(); i++) { + V1ManagedFieldsEntry.validateJsonObject(jsonArraymanagedFields.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if (jsonObj.get("ownerReferences") != null && !jsonObj.get("ownerReferences").isJsonNull()) { + JsonArray jsonArrayownerReferences = jsonObj.getAsJsonArray("ownerReferences"); + if (jsonArrayownerReferences != null) { + // ensure the json data is an array + if (!jsonObj.get("ownerReferences").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ownerReferences` to be an array in the JSON string but got `%s`", jsonObj.get("ownerReferences").toString())); + } + + // validate the optional field `ownerReferences` (array) + for (int i = 0; i < jsonArrayownerReferences.size(); i++) { + V1OwnerReference.validateJsonObject(jsonArrayownerReferences.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("resourceVersion") != null && !jsonObj.get("resourceVersion").isJsonNull()) && !jsonObj.get("resourceVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceVersion").toString())); + } + if ((jsonObj.get("selfLink") != null && !jsonObj.get("selfLink").isJsonNull()) && !jsonObj.get("selfLink").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `selfLink` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selfLink").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ObjectMeta.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ObjectMeta' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ObjectMeta.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ObjectMeta value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ObjectMeta read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ObjectMeta given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ObjectMeta + * @throws IOException if the JSON string is invalid with respect to V1ObjectMeta + */ + public static V1ObjectMeta fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ObjectMeta.class); + } + + /** + * Convert an instance of V1ObjectMeta to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java index e6354e76b9..6a52e877a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ObjectReference contains enough information to let you inspect or modify the referred object. */ @@ -57,6 +80,8 @@ public class V1ObjectReference { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1ObjectReference() { + } public V1ObjectReference apiVersion(String apiVersion) { @@ -68,9 +93,7 @@ public V1ObjectReference apiVersion(String apiVersion) { * API version of the referent. * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "API version of the referent.") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -91,9 +114,7 @@ public V1ObjectReference fieldPath(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. * @return fieldPath **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFieldPath() { return fieldPath; } @@ -114,9 +135,7 @@ public V1ObjectReference kind(String kind) { * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -137,9 +156,7 @@ public V1ObjectReference name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -160,9 +177,7 @@ public V1ObjectReference namespace(String namespace) { * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -183,9 +198,7 @@ public V1ObjectReference resourceVersion(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 * @return resourceVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getResourceVersion() { return resourceVersion; } @@ -206,9 +219,7 @@ public V1ObjectReference uid(String uid) { * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -219,8 +230,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -242,7 +254,6 @@ public int hashCode() { return Objects.hash(apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -262,11 +273,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("fieldPath"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("resourceVersion"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ObjectReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ObjectReference is not found in the empty JSON string", V1ObjectReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ObjectReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("fieldPath") != null && !jsonObj.get("fieldPath").isJsonNull()) && !jsonObj.get("fieldPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fieldPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldPath").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if ((jsonObj.get("resourceVersion") != null && !jsonObj.get("resourceVersion").isJsonNull()) && !jsonObj.get("resourceVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceVersion").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ObjectReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ObjectReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ObjectReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ObjectReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ObjectReference + * @throws IOException if the JSON string is invalid with respect to V1ObjectReference + */ + public static V1ObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ObjectReference.class); + } + + /** + * Convert an instance of V1ObjectReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java index 612737e824..0fac7e644c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * Overhead structure represents the resource overhead associated with running a pod. @@ -35,8 +57,10 @@ public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @SerializedName(SERIALIZED_NAME_POD_FIXED) - private Map podFixed = null; + private Map podFixed = new HashMap<>(); + public V1Overhead() { + } public V1Overhead podFixed(Map podFixed) { @@ -56,9 +80,7 @@ public V1Overhead putPodFixedItem(String key, Quantity podFixedItem) { * podFixed represents the fixed resource overhead associated with running a pod. * @return podFixed **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "podFixed represents the fixed resource overhead associated with running a pod.") - + @jakarta.annotation.Nullable public Map getPodFixed() { return podFixed; } @@ -69,8 +91,9 @@ public void setPodFixed(Map podFixed) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -86,7 +109,6 @@ public int hashCode() { return Objects.hash(podFixed); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -100,11 +122,94 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("podFixed"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Overhead + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Overhead.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Overhead is not found in the empty JSON string", V1Overhead.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Overhead.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Overhead` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Overhead.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Overhead' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Overhead.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Overhead value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Overhead read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Overhead given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Overhead + * @throws IOException if the JSON string is invalid with respect to V1Overhead + */ + public static V1Overhead fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Overhead.class); + } + + /** + * Convert an instance of V1Overhead to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java index 627f87aed1..c6ce0beb2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -53,6 +76,8 @@ public class V1OwnerReference { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1OwnerReference() { + } public V1OwnerReference apiVersion(String apiVersion) { @@ -64,8 +89,7 @@ public V1OwnerReference apiVersion(String apiVersion) { * API version of the referent. * @return apiVersion **/ - @ApiModelProperty(required = true, value = "API version of the referent.") - + @jakarta.annotation.Nonnull public String getApiVersion() { return apiVersion; } @@ -86,9 +110,7 @@ public V1OwnerReference blockOwnerDeletion(Boolean blockOwnerDeletion) { * 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. * @return blockOwnerDeletion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getBlockOwnerDeletion() { return blockOwnerDeletion; } @@ -109,9 +131,7 @@ public V1OwnerReference controller(Boolean controller) { * If true, this reference points to the managing controller. * @return controller **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If true, this reference points to the managing controller.") - + @jakarta.annotation.Nullable public Boolean getController() { return controller; } @@ -132,8 +152,7 @@ public V1OwnerReference kind(String kind) { * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind **/ - @ApiModelProperty(required = true, value = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -154,8 +173,7 @@ public V1OwnerReference name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names * @return name **/ - @ApiModelProperty(required = true, value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -176,8 +194,7 @@ public V1OwnerReference uid(String uid) { * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids * @return uid **/ - @ApiModelProperty(required = true, value = "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids") - + @jakarta.annotation.Nonnull public String getUid() { return uid; } @@ -188,8 +205,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -210,7 +228,6 @@ public int hashCode() { return Objects.hash(apiVersion, blockOwnerDeletion, controller, kind, name, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -229,11 +246,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("blockOwnerDeletion"); + openapiFields.add("controller"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("apiVersion"); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("uid"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1OwnerReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1OwnerReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1OwnerReference is not found in the empty JSON string", V1OwnerReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1OwnerReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1OwnerReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1OwnerReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1OwnerReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1OwnerReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1OwnerReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1OwnerReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1OwnerReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1OwnerReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1OwnerReference + * @throws IOException if the JSON string is invalid with respect to V1OwnerReference + */ + public static V1OwnerReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1OwnerReference.class); + } + + /** + * Convert an instance of V1OwnerReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java index 742df2ab26..90fbc05fc1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PersistentVolumeSpec; import io.kubernetes.client.openapi.models.V1PersistentVolumeStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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 */ @@ -52,6 +75,8 @@ public class V1PersistentVolume implements io.kubernetes.client.common.Kubernete @SerializedName(SERIALIZED_NAME_STATUS) private V1PersistentVolumeStatus status; + public V1PersistentVolume() { + } public V1PersistentVolume apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1PersistentVolume apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1PersistentVolume kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1PersistentVolume metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1PersistentVolume spec(V1PersistentVolumeSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PersistentVolumeSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1PersistentVolume status(V1PersistentVolumeStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PersistentVolumeStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1PersistentVolumeStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolume + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolume.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolume is not found in the empty JSON string", V1PersistentVolume.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolume.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolume` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1PersistentVolumeSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1PersistentVolumeStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolume.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolume' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolume.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolume value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolume read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolume given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolume + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolume + */ + public static V1PersistentVolume fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolume.class); + } + + /** + * Convert an instance of V1PersistentVolume to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java index 4b64b83a34..0f7b207e16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PersistentVolumeClaim is a user's request for and claim to a persistent volume */ @@ -52,6 +75,8 @@ public class V1PersistentVolumeClaim implements io.kubernetes.client.common.Kube @SerializedName(SERIALIZED_NAME_STATUS) private V1PersistentVolumeClaimStatus status; + public V1PersistentVolumeClaim() { + } public V1PersistentVolumeClaim apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1PersistentVolumeClaim apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1PersistentVolumeClaim kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1PersistentVolumeClaim metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1PersistentVolumeClaim spec(V1PersistentVolumeClaimSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PersistentVolumeClaimSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1PersistentVolumeClaim status(V1PersistentVolumeClaimStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PersistentVolumeClaimStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1PersistentVolumeClaimStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeClaim + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeClaim is not found in the empty JSON string", V1PersistentVolumeClaim.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaim` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1PersistentVolumeClaimSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1PersistentVolumeClaimStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeClaim' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeClaim.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeClaim value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeClaim read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaim + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaim + */ + public static V1PersistentVolumeClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaim.class); + } + + /** + * Convert an instance of V1PersistentVolumeClaim to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java index 69b134a946..74b34da1a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PersistentVolumeClaimCondition contains details about state of pvc */ @@ -54,6 +77,8 @@ public class V1PersistentVolumeClaimCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1PersistentVolumeClaimCondition() { + } public V1PersistentVolumeClaimCondition lastProbeTime(OffsetDateTime lastProbeTime) { @@ -65,9 +90,7 @@ public V1PersistentVolumeClaimCondition lastProbeTime(OffsetDateTime lastProbeTi * lastProbeTime is the time we probed the condition. * @return lastProbeTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "lastProbeTime is the time we probed the condition.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastProbeTime() { return lastProbeTime; } @@ -88,9 +111,7 @@ public V1PersistentVolumeClaimCondition lastTransitionTime(OffsetDateTime lastTr * lastTransitionTime is the time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "lastTransitionTime is the time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -111,9 +132,7 @@ public V1PersistentVolumeClaimCondition message(String message) { * message is the human-readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "message is the human-readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -134,9 +153,7 @@ public V1PersistentVolumeClaimCondition reason(String reason) { * reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -157,8 +174,7 @@ public V1PersistentVolumeClaimCondition status(String status) { * Get status * @return status **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -179,8 +195,7 @@ public V1PersistentVolumeClaimCondition type(String type) { * Get type * @return type **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -191,8 +206,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -213,7 +229,6 @@ public int hashCode() { return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -232,11 +247,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastProbeTime"); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeClaimCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeClaimCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeClaimCondition is not found in the empty JSON string", V1PersistentVolumeClaimCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeClaimCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PersistentVolumeClaimCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeClaimCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeClaimCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeClaimCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeClaimCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeClaimCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeClaimCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimCondition + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimCondition + */ + public static V1PersistentVolumeClaimCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimCondition.class); + } + + /** + * Convert an instance of V1PersistentVolumeClaimCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java index 9f7696457a..9fbae7ee71 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaim; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. */ @@ -49,6 +72,8 @@ public class V1PersistentVolumeClaimList implements io.kubernetes.client.common. @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1PersistentVolumeClaimList() { + } public V1PersistentVolumeClaimList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1PersistentVolumeClaimList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1PersistentVolumeClaimList items(List items) { } public V1PersistentVolumeClaimList addItemsItem(V1PersistentVolumeClaim itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1PersistentVolumeClaimList addItemsItem(V1PersistentVolumeClaim itemsIte * items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims * @return items **/ - @ApiModelProperty(required = true, value = "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1PersistentVolumeClaimList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1PersistentVolumeClaimList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeClaimList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeClaimList is not found in the empty JSON string", V1PersistentVolumeClaimList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeClaimList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PersistentVolumeClaimList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1PersistentVolumeClaim.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeClaimList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeClaimList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeClaimList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeClaimList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeClaimList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeClaimList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimList + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimList + */ + public static V1PersistentVolumeClaimList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimList.class); + } + + /** + * Convert an instance of V1PersistentVolumeClaimList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java index cae4884788..7e1e37c77d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java @@ -23,12 +23,35 @@ import io.kubernetes.client.openapi.models.V1ResourceRequirements; import io.kubernetes.client.openapi.models.V1TypedLocalObjectReference; import io.kubernetes.client.openapi.models.V1TypedObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes */ @@ -37,7 +60,7 @@ public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) - private List accessModes = null; + private List accessModes; public static final String SERIALIZED_NAME_DATA_SOURCE = "dataSource"; @SerializedName(SERIALIZED_NAME_DATA_SOURCE) @@ -67,6 +90,8 @@ public class V1PersistentVolumeClaimSpec { @SerializedName(SERIALIZED_NAME_VOLUME_NAME) private String volumeName; + public V1PersistentVolumeClaimSpec() { + } public V1PersistentVolumeClaimSpec accessModes(List accessModes) { @@ -86,9 +111,7 @@ public V1PersistentVolumeClaimSpec addAccessModesItem(String accessModesItem) { * accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 * @return accessModes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") - + @jakarta.annotation.Nullable public List getAccessModes() { return accessModes; } @@ -109,9 +132,7 @@ public V1PersistentVolumeClaimSpec dataSource(V1TypedLocalObjectReference dataSo * Get dataSource * @return dataSource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1TypedLocalObjectReference getDataSource() { return dataSource; } @@ -132,9 +153,7 @@ public V1PersistentVolumeClaimSpec dataSourceRef(V1TypedObjectReference dataSour * Get dataSourceRef * @return dataSourceRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1TypedObjectReference getDataSourceRef() { return dataSourceRef; } @@ -155,9 +174,7 @@ public V1PersistentVolumeClaimSpec resources(V1ResourceRequirements resources) { * Get resources * @return resources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceRequirements getResources() { return resources; } @@ -178,9 +195,7 @@ public V1PersistentVolumeClaimSpec selector(V1LabelSelector selector) { * Get selector * @return selector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getSelector() { return selector; } @@ -201,9 +216,7 @@ public V1PersistentVolumeClaimSpec storageClassName(String storageClassName) { * storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 * @return storageClassName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1") - + @jakarta.annotation.Nullable public String getStorageClassName() { return storageClassName; } @@ -224,9 +237,7 @@ public V1PersistentVolumeClaimSpec volumeMode(String volumeMode) { * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. * @return volumeMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.") - + @jakarta.annotation.Nullable public String getVolumeMode() { return volumeMode; } @@ -247,9 +258,7 @@ public V1PersistentVolumeClaimSpec volumeName(String volumeName) { * volumeName is the binding reference to the PersistentVolume backing this claim. * @return volumeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeName is the binding reference to the PersistentVolume backing this claim.") - + @jakarta.annotation.Nullable public String getVolumeName() { return volumeName; } @@ -260,8 +269,9 @@ public void setVolumeName(String volumeName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -284,7 +294,6 @@ public int hashCode() { return Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeMode, volumeName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -305,11 +314,130 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("accessModes"); + openapiFields.add("dataSource"); + openapiFields.add("dataSourceRef"); + openapiFields.add("resources"); + openapiFields.add("selector"); + openapiFields.add("storageClassName"); + openapiFields.add("volumeMode"); + openapiFields.add("volumeName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeClaimSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeClaimSpec is not found in the empty JSON string", V1PersistentVolumeClaimSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeClaimSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("accessModes") != null && !jsonObj.get("accessModes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `accessModes` to be an array in the JSON string but got `%s`", jsonObj.get("accessModes").toString())); + } + // validate the optional field `dataSource` + if (jsonObj.get("dataSource") != null && !jsonObj.get("dataSource").isJsonNull()) { + V1TypedLocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("dataSource")); + } + // validate the optional field `dataSourceRef` + if (jsonObj.get("dataSourceRef") != null && !jsonObj.get("dataSourceRef").isJsonNull()) { + V1TypedObjectReference.validateJsonObject(jsonObj.getAsJsonObject("dataSourceRef")); + } + // validate the optional field `resources` + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { + V1ResourceRequirements.validateJsonObject(jsonObj.getAsJsonObject("resources")); + } + // validate the optional field `selector` + if (jsonObj.get("selector") != null && !jsonObj.get("selector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + } + if ((jsonObj.get("storageClassName") != null && !jsonObj.get("storageClassName").isJsonNull()) && !jsonObj.get("storageClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storageClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storageClassName").toString())); + } + if ((jsonObj.get("volumeMode") != null && !jsonObj.get("volumeMode").isJsonNull()) && !jsonObj.get("volumeMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeMode").toString())); + } + if ((jsonObj.get("volumeName") != null && !jsonObj.get("volumeName").isJsonNull()) && !jsonObj.get("volumeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeClaimSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeClaimSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeClaimSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeClaimSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeClaimSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeClaimSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimSpec + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimSpec + */ + public static V1PersistentVolumeClaimSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimSpec.class); + } + + /** + * Convert an instance of V1PersistentVolumeClaimSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java index 3b97a1ca4e..bec7b32a73 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java @@ -21,14 +21,37 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PersistentVolumeClaimStatus is the current status of a persistent volume claim. */ @@ -37,7 +60,11 @@ public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) - private List accessModes = null; + private List accessModes; + + public static final String SERIALIZED_NAME_ALLOCATED_RESOURCE_STATUSES = "allocatedResourceStatuses"; + @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCE_STATUSES) + private Map allocatedResourceStatuses = new HashMap<>(); public static final String SERIALIZED_NAME_ALLOCATED_RESOURCE_STATUSES = "allocatedResourceStatuses"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCE_STATUSES) @@ -45,15 +72,15 @@ public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) - private Map allocatedResources = null; + private Map allocatedResources = new HashMap<>(); public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) - private Map capacity = null; + private Map capacity = new HashMap<>(); public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) @@ -78,9 +105,7 @@ public V1PersistentVolumeClaimStatus addAccessModesItem(String accessModesItem) * 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 * @return accessModes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getAccessModes() { return accessModes; } @@ -171,9 +196,7 @@ public V1PersistentVolumeClaimStatus putCapacityItem(String key, Quantity capaci * capacity represents the actual resources of the underlying volume. * @return capacity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "capacity represents the actual resources of the underlying volume.") - + @jakarta.annotation.Nullable public Map getCapacity() { return capacity; } @@ -202,9 +225,7 @@ public V1PersistentVolumeClaimStatus addConditionsItem(V1PersistentVolumeClaimCo * conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -225,9 +246,7 @@ public V1PersistentVolumeClaimStatus phase(String phase) { * phase represents the current phase of PersistentVolumeClaim. * @return phase **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "phase represents the current phase of PersistentVolumeClaim.") - + @jakarta.annotation.Nullable public String getPhase() { return phase; } @@ -239,7 +258,7 @@ public void setPhase(String phase) { @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -260,7 +279,6 @@ public int hashCode() { return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, phase); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -279,11 +297,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("accessModes"); + openapiFields.add("allocatedResourceStatuses"); + openapiFields.add("allocatedResources"); + openapiFields.add("capacity"); + openapiFields.add("conditions"); + openapiFields.add("phase"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeClaimStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeClaimStatus is not found in the empty JSON string", V1PersistentVolumeClaimStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeClaimStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("accessModes") != null && !jsonObj.get("accessModes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `accessModes` to be an array in the JSON string but got `%s`", jsonObj.get("accessModes").toString())); + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1PersistentVolumeClaimCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("phase") != null && !jsonObj.get("phase").isJsonNull()) && !jsonObj.get("phase").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `phase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phase").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeClaimStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeClaimStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeClaimStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeClaimStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeClaimStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeClaimStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimStatus + */ + public static V1PersistentVolumeClaimStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimStatus.class); + } + + /** + * Convert an instance of V1PersistentVolumeClaimStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java index 5f13b01f7e..bf65ee93fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. */ @@ -39,6 +62,8 @@ public class V1PersistentVolumeClaimTemplate { @SerializedName(SERIALIZED_NAME_SPEC) private V1PersistentVolumeClaimSpec spec; + public V1PersistentVolumeClaimTemplate() { + } public V1PersistentVolumeClaimTemplate metadata(V1ObjectMeta metadata) { @@ -50,9 +75,7 @@ public V1PersistentVolumeClaimTemplate metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -73,8 +96,7 @@ public V1PersistentVolumeClaimTemplate spec(V1PersistentVolumeClaimSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1PersistentVolumeClaimSpec getSpec() { return spec; } @@ -85,8 +107,9 @@ public void setSpec(V1PersistentVolumeClaimSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +126,6 @@ public int hashCode() { return Objects.hash(metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +140,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeClaimTemplate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeClaimTemplate is not found in the empty JSON string", V1PersistentVolumeClaimTemplate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeClaimTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimTemplate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PersistentVolumeClaimTemplate.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1PersistentVolumeClaimSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeClaimTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeClaimTemplate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeClaimTemplate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeClaimTemplate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeClaimTemplate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeClaimTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimTemplate + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimTemplate + */ + public static V1PersistentVolumeClaimTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimTemplate.class); + } + + /** + * Convert an instance of V1PersistentVolumeClaimTemplate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java index 26fe835a38..1e72aae9fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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). */ @@ -37,6 +60,8 @@ public class V1PersistentVolumeClaimVolumeSource { @SerializedName(SERIALIZED_NAME_READ_ONLY) private Boolean readOnly; + public V1PersistentVolumeClaimVolumeSource() { + } public V1PersistentVolumeClaimVolumeSource claimName(String claimName) { @@ -48,8 +73,7 @@ public V1PersistentVolumeClaimVolumeSource claimName(String claimName) { * 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 * @return claimName **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getClaimName() { return claimName; } @@ -70,9 +94,7 @@ public V1PersistentVolumeClaimVolumeSource readOnly(Boolean readOnly) { * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -83,8 +105,9 @@ public void setReadOnly(Boolean readOnly) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +124,6 @@ public int hashCode() { return Objects.hash(claimName, readOnly); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +138,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("claimName"); + openapiFields.add("readOnly"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("claimName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeClaimVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeClaimVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeClaimVolumeSource is not found in the empty JSON string", V1PersistentVolumeClaimVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeClaimVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PersistentVolumeClaimVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("claimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `claimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("claimName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeClaimVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeClaimVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeClaimVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeClaimVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeClaimVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeClaimVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeClaimVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeClaimVolumeSource + */ + public static V1PersistentVolumeClaimVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeClaimVolumeSource.class); + } + + /** + * Convert an instance of V1PersistentVolumeClaimVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java index b0e22413e1..835240f268 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PersistentVolume; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PersistentVolumeList is a list of PersistentVolume items. */ @@ -49,6 +72,8 @@ public class V1PersistentVolumeList implements io.kubernetes.client.common.Kuber @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1PersistentVolumeList() { + } public V1PersistentVolumeList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1PersistentVolumeList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1PersistentVolumeList items(List items) { } public V1PersistentVolumeList addItemsItem(V1PersistentVolume itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1PersistentVolumeList addItemsItem(V1PersistentVolume itemsItem) { * items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes * @return items **/ - @ApiModelProperty(required = true, value = "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1PersistentVolumeList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1PersistentVolumeList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeList is not found in the empty JSON string", V1PersistentVolumeList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PersistentVolumeList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1PersistentVolume.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeList + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeList + */ + public static V1PersistentVolumeList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeList.class); + } + + /** + * Convert an instance of V1PersistentVolumeList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java index aa5975b9fc..9e6bbaca7d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java @@ -44,14 +44,37 @@ import io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource; import io.kubernetes.client.openapi.models.V1VolumeNodeAffinity; import io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PersistentVolumeSpec is the specification of a persistent volume. */ @@ -60,7 +83,7 @@ public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) - private List accessModes = null; + private List accessModes; public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) @@ -76,7 +99,7 @@ public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) - private Map capacity = null; + private Map capacity = new HashMap<>(); public static final String SERIALIZED_NAME_CEPHFS = "cephfs"; @SerializedName(SERIALIZED_NAME_CEPHFS) @@ -128,7 +151,7 @@ public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_MOUNT_OPTIONS = "mountOptions"; @SerializedName(SERIALIZED_NAME_MOUNT_OPTIONS) - private List mountOptions = null; + private List mountOptions; public static final String SERIALIZED_NAME_NFS = "nfs"; @SerializedName(SERIALIZED_NAME_NFS) @@ -178,6 +201,8 @@ public class V1PersistentVolumeSpec { @SerializedName(SERIALIZED_NAME_VSPHERE_VOLUME) private V1VsphereVirtualDiskVolumeSource vsphereVolume; + public V1PersistentVolumeSpec() { + } public V1PersistentVolumeSpec accessModes(List accessModes) { @@ -197,9 +222,7 @@ public V1PersistentVolumeSpec addAccessModesItem(String accessModesItem) { * accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes * @return accessModes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes") - + @jakarta.annotation.Nullable public List getAccessModes() { return accessModes; } @@ -220,9 +243,7 @@ public V1PersistentVolumeSpec awsElasticBlockStore(V1AWSElasticBlockStoreVolumeS * Get awsElasticBlockStore * @return awsElasticBlockStore **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore; } @@ -243,9 +264,7 @@ public V1PersistentVolumeSpec azureDisk(V1AzureDiskVolumeSource azureDisk) { * Get azureDisk * @return azureDisk **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1AzureDiskVolumeSource getAzureDisk() { return azureDisk; } @@ -266,9 +285,7 @@ public V1PersistentVolumeSpec azureFile(V1AzureFilePersistentVolumeSource azureF * Get azureFile * @return azureFile **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1AzureFilePersistentVolumeSource getAzureFile() { return azureFile; } @@ -297,9 +314,7 @@ public V1PersistentVolumeSpec putCapacityItem(String key, Quantity capacityItem) * capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity * @return capacity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity") - + @jakarta.annotation.Nullable public Map getCapacity() { return capacity; } @@ -320,9 +335,7 @@ public V1PersistentVolumeSpec cephfs(V1CephFSPersistentVolumeSource cephfs) { * Get cephfs * @return cephfs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CephFSPersistentVolumeSource getCephfs() { return cephfs; } @@ -343,9 +356,7 @@ public V1PersistentVolumeSpec cinder(V1CinderPersistentVolumeSource cinder) { * Get cinder * @return cinder **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CinderPersistentVolumeSource getCinder() { return cinder; } @@ -366,9 +377,7 @@ public V1PersistentVolumeSpec claimRef(V1ObjectReference claimRef) { * Get claimRef * @return claimRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectReference getClaimRef() { return claimRef; } @@ -389,9 +398,7 @@ public V1PersistentVolumeSpec csi(V1CSIPersistentVolumeSource csi) { * Get csi * @return csi **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CSIPersistentVolumeSource getCsi() { return csi; } @@ -412,9 +419,7 @@ public V1PersistentVolumeSpec fc(V1FCVolumeSource fc) { * Get fc * @return fc **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1FCVolumeSource getFc() { return fc; } @@ -435,9 +440,7 @@ public V1PersistentVolumeSpec flexVolume(V1FlexPersistentVolumeSource flexVolume * Get flexVolume * @return flexVolume **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1FlexPersistentVolumeSource getFlexVolume() { return flexVolume; } @@ -458,9 +461,7 @@ public V1PersistentVolumeSpec flocker(V1FlockerVolumeSource flocker) { * Get flocker * @return flocker **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1FlockerVolumeSource getFlocker() { return flocker; } @@ -481,9 +482,7 @@ public V1PersistentVolumeSpec gcePersistentDisk(V1GCEPersistentDiskVolumeSource * Get gcePersistentDisk * @return gcePersistentDisk **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk; } @@ -504,9 +503,7 @@ public V1PersistentVolumeSpec glusterfs(V1GlusterfsPersistentVolumeSource gluste * Get glusterfs * @return glusterfs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1GlusterfsPersistentVolumeSource getGlusterfs() { return glusterfs; } @@ -527,9 +524,7 @@ public V1PersistentVolumeSpec hostPath(V1HostPathVolumeSource hostPath) { * Get hostPath * @return hostPath **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1HostPathVolumeSource getHostPath() { return hostPath; } @@ -550,9 +545,7 @@ public V1PersistentVolumeSpec iscsi(V1ISCSIPersistentVolumeSource iscsi) { * Get iscsi * @return iscsi **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ISCSIPersistentVolumeSource getIscsi() { return iscsi; } @@ -573,9 +566,7 @@ public V1PersistentVolumeSpec local(V1LocalVolumeSource local) { * Get local * @return local **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LocalVolumeSource getLocal() { return local; } @@ -604,9 +595,7 @@ public V1PersistentVolumeSpec addMountOptionsItem(String mountOptionsItem) { * 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 * @return mountOptions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getMountOptions() { return mountOptions; } @@ -627,9 +616,7 @@ public V1PersistentVolumeSpec nfs(V1NFSVolumeSource nfs) { * Get nfs * @return nfs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NFSVolumeSource getNfs() { return nfs; } @@ -650,9 +637,7 @@ public V1PersistentVolumeSpec nodeAffinity(V1VolumeNodeAffinity nodeAffinity) { * Get nodeAffinity * @return nodeAffinity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1VolumeNodeAffinity getNodeAffinity() { return nodeAffinity; } @@ -673,9 +658,7 @@ public V1PersistentVolumeSpec persistentVolumeReclaimPolicy(String persistentVol * 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 * @return persistentVolumeReclaimPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getPersistentVolumeReclaimPolicy() { return persistentVolumeReclaimPolicy; } @@ -696,9 +679,7 @@ public V1PersistentVolumeSpec photonPersistentDisk(V1PhotonPersistentDiskVolumeS * Get photonPersistentDisk * @return photonPersistentDisk **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk; } @@ -719,9 +700,7 @@ public V1PersistentVolumeSpec portworxVolume(V1PortworxVolumeSource portworxVolu * Get portworxVolume * @return portworxVolume **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PortworxVolumeSource getPortworxVolume() { return portworxVolume; } @@ -742,9 +721,7 @@ public V1PersistentVolumeSpec quobyte(V1QuobyteVolumeSource quobyte) { * Get quobyte * @return quobyte **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1QuobyteVolumeSource getQuobyte() { return quobyte; } @@ -765,9 +742,7 @@ public V1PersistentVolumeSpec rbd(V1RBDPersistentVolumeSource rbd) { * Get rbd * @return rbd **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1RBDPersistentVolumeSource getRbd() { return rbd; } @@ -788,9 +763,7 @@ public V1PersistentVolumeSpec scaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { * Get scaleIO * @return scaleIO **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ScaleIOPersistentVolumeSource getScaleIO() { return scaleIO; } @@ -811,9 +784,7 @@ public V1PersistentVolumeSpec storageClassName(String storageClassName) { * storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. * @return storageClassName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.") - + @jakarta.annotation.Nullable public String getStorageClassName() { return storageClassName; } @@ -834,9 +805,7 @@ public V1PersistentVolumeSpec storageos(V1StorageOSPersistentVolumeSource storag * Get storageos * @return storageos **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1StorageOSPersistentVolumeSource getStorageos() { return storageos; } @@ -857,9 +826,7 @@ public V1PersistentVolumeSpec volumeMode(String volumeMode) { * 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. * @return volumeMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getVolumeMode() { return volumeMode; } @@ -880,9 +847,7 @@ public V1PersistentVolumeSpec vsphereVolume(V1VsphereVirtualDiskVolumeSource vsp * Get vsphereVolume * @return vsphereVolume **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume; } @@ -893,8 +858,9 @@ public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -939,7 +905,6 @@ public int hashCode() { return Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeMode, vsphereVolume); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -982,11 +947,236 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("accessModes"); + openapiFields.add("awsElasticBlockStore"); + openapiFields.add("azureDisk"); + openapiFields.add("azureFile"); + openapiFields.add("capacity"); + openapiFields.add("cephfs"); + openapiFields.add("cinder"); + openapiFields.add("claimRef"); + openapiFields.add("csi"); + openapiFields.add("fc"); + openapiFields.add("flexVolume"); + openapiFields.add("flocker"); + openapiFields.add("gcePersistentDisk"); + openapiFields.add("glusterfs"); + openapiFields.add("hostPath"); + openapiFields.add("iscsi"); + openapiFields.add("local"); + openapiFields.add("mountOptions"); + openapiFields.add("nfs"); + openapiFields.add("nodeAffinity"); + openapiFields.add("persistentVolumeReclaimPolicy"); + openapiFields.add("photonPersistentDisk"); + openapiFields.add("portworxVolume"); + openapiFields.add("quobyte"); + openapiFields.add("rbd"); + openapiFields.add("scaleIO"); + openapiFields.add("storageClassName"); + openapiFields.add("storageos"); + openapiFields.add("volumeMode"); + openapiFields.add("vsphereVolume"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeSpec is not found in the empty JSON string", V1PersistentVolumeSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("accessModes") != null && !jsonObj.get("accessModes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `accessModes` to be an array in the JSON string but got `%s`", jsonObj.get("accessModes").toString())); + } + // validate the optional field `awsElasticBlockStore` + if (jsonObj.get("awsElasticBlockStore") != null && !jsonObj.get("awsElasticBlockStore").isJsonNull()) { + V1AWSElasticBlockStoreVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("awsElasticBlockStore")); + } + // validate the optional field `azureDisk` + if (jsonObj.get("azureDisk") != null && !jsonObj.get("azureDisk").isJsonNull()) { + V1AzureDiskVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("azureDisk")); + } + // validate the optional field `azureFile` + if (jsonObj.get("azureFile") != null && !jsonObj.get("azureFile").isJsonNull()) { + V1AzureFilePersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("azureFile")); + } + // validate the optional field `cephfs` + if (jsonObj.get("cephfs") != null && !jsonObj.get("cephfs").isJsonNull()) { + V1CephFSPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("cephfs")); + } + // validate the optional field `cinder` + if (jsonObj.get("cinder") != null && !jsonObj.get("cinder").isJsonNull()) { + V1CinderPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("cinder")); + } + // validate the optional field `claimRef` + if (jsonObj.get("claimRef") != null && !jsonObj.get("claimRef").isJsonNull()) { + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("claimRef")); + } + // validate the optional field `csi` + if (jsonObj.get("csi") != null && !jsonObj.get("csi").isJsonNull()) { + V1CSIPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("csi")); + } + // validate the optional field `fc` + if (jsonObj.get("fc") != null && !jsonObj.get("fc").isJsonNull()) { + V1FCVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("fc")); + } + // validate the optional field `flexVolume` + if (jsonObj.get("flexVolume") != null && !jsonObj.get("flexVolume").isJsonNull()) { + V1FlexPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("flexVolume")); + } + // validate the optional field `flocker` + if (jsonObj.get("flocker") != null && !jsonObj.get("flocker").isJsonNull()) { + V1FlockerVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("flocker")); + } + // validate the optional field `gcePersistentDisk` + if (jsonObj.get("gcePersistentDisk") != null && !jsonObj.get("gcePersistentDisk").isJsonNull()) { + V1GCEPersistentDiskVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("gcePersistentDisk")); + } + // validate the optional field `glusterfs` + if (jsonObj.get("glusterfs") != null && !jsonObj.get("glusterfs").isJsonNull()) { + V1GlusterfsPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("glusterfs")); + } + // validate the optional field `hostPath` + if (jsonObj.get("hostPath") != null && !jsonObj.get("hostPath").isJsonNull()) { + V1HostPathVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("hostPath")); + } + // validate the optional field `iscsi` + if (jsonObj.get("iscsi") != null && !jsonObj.get("iscsi").isJsonNull()) { + V1ISCSIPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("iscsi")); + } + // validate the optional field `local` + if (jsonObj.get("local") != null && !jsonObj.get("local").isJsonNull()) { + V1LocalVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("local")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("mountOptions") != null && !jsonObj.get("mountOptions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mountOptions` to be an array in the JSON string but got `%s`", jsonObj.get("mountOptions").toString())); + } + // validate the optional field `nfs` + if (jsonObj.get("nfs") != null && !jsonObj.get("nfs").isJsonNull()) { + V1NFSVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("nfs")); + } + // validate the optional field `nodeAffinity` + if (jsonObj.get("nodeAffinity") != null && !jsonObj.get("nodeAffinity").isJsonNull()) { + V1VolumeNodeAffinity.validateJsonObject(jsonObj.getAsJsonObject("nodeAffinity")); + } + if ((jsonObj.get("persistentVolumeReclaimPolicy") != null && !jsonObj.get("persistentVolumeReclaimPolicy").isJsonNull()) && !jsonObj.get("persistentVolumeReclaimPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `persistentVolumeReclaimPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("persistentVolumeReclaimPolicy").toString())); + } + // validate the optional field `photonPersistentDisk` + if (jsonObj.get("photonPersistentDisk") != null && !jsonObj.get("photonPersistentDisk").isJsonNull()) { + V1PhotonPersistentDiskVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("photonPersistentDisk")); + } + // validate the optional field `portworxVolume` + if (jsonObj.get("portworxVolume") != null && !jsonObj.get("portworxVolume").isJsonNull()) { + V1PortworxVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("portworxVolume")); + } + // validate the optional field `quobyte` + if (jsonObj.get("quobyte") != null && !jsonObj.get("quobyte").isJsonNull()) { + V1QuobyteVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("quobyte")); + } + // validate the optional field `rbd` + if (jsonObj.get("rbd") != null && !jsonObj.get("rbd").isJsonNull()) { + V1RBDPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("rbd")); + } + // validate the optional field `scaleIO` + if (jsonObj.get("scaleIO") != null && !jsonObj.get("scaleIO").isJsonNull()) { + V1ScaleIOPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("scaleIO")); + } + if ((jsonObj.get("storageClassName") != null && !jsonObj.get("storageClassName").isJsonNull()) && !jsonObj.get("storageClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storageClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storageClassName").toString())); + } + // validate the optional field `storageos` + if (jsonObj.get("storageos") != null && !jsonObj.get("storageos").isJsonNull()) { + V1StorageOSPersistentVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("storageos")); + } + if ((jsonObj.get("volumeMode") != null && !jsonObj.get("volumeMode").isJsonNull()) && !jsonObj.get("volumeMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeMode").toString())); + } + // validate the optional field `vsphereVolume` + if (jsonObj.get("vsphereVolume") != null && !jsonObj.get("vsphereVolume").isJsonNull()) { + V1VsphereVirtualDiskVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("vsphereVolume")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeSpec + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeSpec + */ + public static V1PersistentVolumeSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeSpec.class); + } + + /** + * Convert an instance of V1PersistentVolumeSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java index 8f9d3f78af..55c00a85f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java @@ -19,8 +19,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; @@ -46,6 +44,29 @@ public class V1PersistentVolumeStatus { @SerializedName(SERIALIZED_NAME_REASON) private String reason; + public V1PersistentVolumeStatus() { + } + + public V1PersistentVolumeStatus lastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { + + this.lastPhaseTransitionTime = lastPhaseTransitionTime; + return this; + } + + /** + * lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature. + * @return lastPhaseTransitionTime + **/ + @jakarta.annotation.Nullable + public OffsetDateTime getLastPhaseTransitionTime() { + return lastPhaseTransitionTime; + } + + + public void setLastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { + this.lastPhaseTransitionTime = lastPhaseTransitionTime; + } + public V1PersistentVolumeStatus lastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { @@ -80,9 +101,7 @@ public V1PersistentVolumeStatus message(String message) { * message is a human-readable message indicating details about why the volume is in this state. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "message is a human-readable message indicating details about why the volume is in this state.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -103,9 +122,7 @@ public V1PersistentVolumeStatus phase(String phase) { * 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 * @return phase **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getPhase() { return phase; } @@ -126,9 +143,7 @@ public V1PersistentVolumeStatus reason(String reason) { * reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -139,8 +154,9 @@ public void setReason(String reason) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +175,6 @@ public int hashCode() { return Objects.hash(lastPhaseTransitionTime, message, phase, reason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +191,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastPhaseTransitionTime"); + openapiFields.add("message"); + openapiFields.add("phase"); + openapiFields.add("reason"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PersistentVolumeStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PersistentVolumeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PersistentVolumeStatus is not found in the empty JSON string", V1PersistentVolumeStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PersistentVolumeStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PersistentVolumeStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("phase") != null && !jsonObj.get("phase").isJsonNull()) && !jsonObj.get("phase").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `phase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phase").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PersistentVolumeStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PersistentVolumeStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PersistentVolumeStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PersistentVolumeStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PersistentVolumeStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PersistentVolumeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PersistentVolumeStatus + * @throws IOException if the JSON string is invalid with respect to V1PersistentVolumeStatus + */ + public static V1PersistentVolumeStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PersistentVolumeStatus.class); + } + + /** + * Convert an instance of V1PersistentVolumeStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java index 9880e4d31d..32bf818629 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a Photon Controller persistent disk resource. */ @@ -37,6 +60,8 @@ public class V1PhotonPersistentDiskVolumeSource { @SerializedName(SERIALIZED_NAME_PD_I_D) private String pdID; + public V1PhotonPersistentDiskVolumeSource() { + } public V1PhotonPersistentDiskVolumeSource fsType(String fsType) { @@ -48,9 +73,7 @@ public V1PhotonPersistentDiskVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -71,8 +94,7 @@ public V1PhotonPersistentDiskVolumeSource pdID(String pdID) { * pdID is the ID that identifies Photon Controller persistent disk * @return pdID **/ - @ApiModelProperty(required = true, value = "pdID is the ID that identifies Photon Controller persistent disk") - + @jakarta.annotation.Nonnull public String getPdID() { return pdID; } @@ -83,8 +105,9 @@ public void setPdID(String pdID) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +124,6 @@ public int hashCode() { return Objects.hash(fsType, pdID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +138,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("pdID"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("pdID"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PhotonPersistentDiskVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PhotonPersistentDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PhotonPersistentDiskVolumeSource is not found in the empty JSON string", V1PhotonPersistentDiskVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PhotonPersistentDiskVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PhotonPersistentDiskVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PhotonPersistentDiskVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("pdID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pdID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pdID").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PhotonPersistentDiskVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PhotonPersistentDiskVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PhotonPersistentDiskVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PhotonPersistentDiskVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PhotonPersistentDiskVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PhotonPersistentDiskVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PhotonPersistentDiskVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1PhotonPersistentDiskVolumeSource + */ + public static V1PhotonPersistentDiskVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PhotonPersistentDiskVolumeSource.class); + } + + /** + * Convert an instance of V1PhotonPersistentDiskVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java index 68e32dd78e..def25fdaf6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PodSpec; import io.kubernetes.client.openapi.models.V1PodStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. */ @@ -52,6 +75,8 @@ public class V1Pod implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_STATUS) private V1PodStatus status; + public V1Pod() { + } public V1Pod apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1Pod apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1Pod kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1Pod metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1Pod spec(V1PodSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1Pod status(V1PodStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1PodStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Pod + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Pod.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Pod is not found in the empty JSON string", V1Pod.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Pod.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Pod` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1PodSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1PodStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Pod.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Pod' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Pod.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Pod value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Pod read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Pod given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Pod + * @throws IOException if the JSON string is invalid with respect to V1Pod + */ + public static V1Pod fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Pod.class); + } + + /** + * Convert an instance of V1Pod to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java index ec06a32181..af2481cfa4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodAffinityTerm; import io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Pod affinity is a group of inter pod affinity scheduling rules. */ @@ -35,12 +58,14 @@ public class V1PodAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) - private List preferredDuringSchedulingIgnoredDuringExecution = null; + private List preferredDuringSchedulingIgnoredDuringExecution; public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) - private List requiredDuringSchedulingIgnoredDuringExecution = null; + private List requiredDuringSchedulingIgnoredDuringExecution; + public V1PodAffinity() { + } public V1PodAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { @@ -60,9 +85,7 @@ public V1PodAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1We * 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. * @return preferredDuringSchedulingIgnoredDuringExecution **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } @@ -91,9 +114,7 @@ public V1PodAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V1Pod * 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. * @return requiredDuringSchedulingIgnoredDuringExecution **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } @@ -104,8 +125,9 @@ public void setRequiredDuringSchedulingIgnoredDuringExecution(List openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("preferredDuringSchedulingIgnoredDuringExecution"); + openapiFields.add("requiredDuringSchedulingIgnoredDuringExecution"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodAffinity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodAffinity is not found in the empty JSON string", V1PodAffinity.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodAffinity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodAffinity` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution") != null && !jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").isJsonNull()) { + JsonArray jsonArraypreferredDuringSchedulingIgnoredDuringExecution = jsonObj.getAsJsonArray("preferredDuringSchedulingIgnoredDuringExecution"); + if (jsonArraypreferredDuringSchedulingIgnoredDuringExecution != null) { + // ensure the json data is an array + if (!jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `preferredDuringSchedulingIgnoredDuringExecution` to be an array in the JSON string but got `%s`", jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").toString())); + } + + // validate the optional field `preferredDuringSchedulingIgnoredDuringExecution` (array) + for (int i = 0; i < jsonArraypreferredDuringSchedulingIgnoredDuringExecution.size(); i++) { + V1WeightedPodAffinityTerm.validateJsonObject(jsonArraypreferredDuringSchedulingIgnoredDuringExecution.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution") != null && !jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution").isJsonNull()) { + JsonArray jsonArrayrequiredDuringSchedulingIgnoredDuringExecution = jsonObj.getAsJsonArray("requiredDuringSchedulingIgnoredDuringExecution"); + if (jsonArrayrequiredDuringSchedulingIgnoredDuringExecution != null) { + // ensure the json data is an array + if (!jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `requiredDuringSchedulingIgnoredDuringExecution` to be an array in the JSON string but got `%s`", jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution").toString())); + } + + // validate the optional field `requiredDuringSchedulingIgnoredDuringExecution` (array) + for (int i = 0; i < jsonArrayrequiredDuringSchedulingIgnoredDuringExecution.size(); i++) { + V1PodAffinityTerm.validateJsonObject(jsonArrayrequiredDuringSchedulingIgnoredDuringExecution.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodAffinity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodAffinity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodAffinity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodAffinity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodAffinity read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodAffinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodAffinity + * @throws IOException if the JSON string is invalid with respect to V1PodAffinity + */ + public static V1PodAffinity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodAffinity.class); + } + + /** + * Convert an instance of V1PodAffinity to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java index b86823dafc..c0744a9ec7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running */ @@ -42,12 +65,14 @@ public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = null; + private List namespaces; public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) private String topologyKey; + public V1PodAffinityTerm() { + } public V1PodAffinityTerm labelSelector(V1LabelSelector labelSelector) { @@ -59,9 +84,7 @@ public V1PodAffinityTerm labelSelector(V1LabelSelector labelSelector) { * Get labelSelector * @return labelSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getLabelSelector() { return labelSelector; } @@ -82,9 +105,7 @@ public V1PodAffinityTerm namespaceSelector(V1LabelSelector namespaceSelector) { * Get namespaceSelector * @return namespaceSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -113,9 +134,7 @@ public V1PodAffinityTerm addNamespacesItem(String namespacesItem) { * 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\". * @return namespaces **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public List getNamespaces() { return namespaces; } @@ -136,8 +155,7 @@ public V1PodAffinityTerm topologyKey(String topologyKey) { * 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. * @return topologyKey **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getTopologyKey() { return topologyKey; } @@ -148,8 +166,9 @@ public void setTopologyKey(String topologyKey) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -168,7 +187,6 @@ public int hashCode() { return Objects.hash(labelSelector, namespaceSelector, namespaces, topologyKey); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -185,11 +203,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("labelSelector"); + openapiFields.add("namespaceSelector"); + openapiFields.add("namespaces"); + openapiFields.add("topologyKey"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("topologyKey"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodAffinityTerm + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodAffinityTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodAffinityTerm is not found in the empty JSON string", V1PodAffinityTerm.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodAffinityTerm.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodAffinityTerm` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodAffinityTerm.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `labelSelector` + if (jsonObj.get("labelSelector") != null && !jsonObj.get("labelSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("labelSelector")); + } + // validate the optional field `namespaceSelector` + if (jsonObj.get("namespaceSelector") != null && !jsonObj.get("namespaceSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("namespaceSelector")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); + } + if (!jsonObj.get("topologyKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `topologyKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("topologyKey").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodAffinityTerm.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodAffinityTerm' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodAffinityTerm.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodAffinityTerm value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodAffinityTerm read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodAffinityTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodAffinityTerm + * @throws IOException if the JSON string is invalid with respect to V1PodAffinityTerm + */ + public static V1PodAffinityTerm fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodAffinityTerm.class); + } + + /** + * Convert an instance of V1PodAffinityTerm to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java index 05c9f21796..c01151321e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodAffinityTerm; import io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Pod anti affinity is a group of inter pod anti affinity scheduling rules. */ @@ -35,12 +58,14 @@ public class V1PodAntiAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) - private List preferredDuringSchedulingIgnoredDuringExecution = null; + private List preferredDuringSchedulingIgnoredDuringExecution; public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) - private List requiredDuringSchedulingIgnoredDuringExecution = null; + private List requiredDuringSchedulingIgnoredDuringExecution; + public V1PodAntiAffinity() { + } public V1PodAntiAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { @@ -60,9 +85,7 @@ public V1PodAntiAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem( * 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. * @return preferredDuringSchedulingIgnoredDuringExecution **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } @@ -91,9 +114,7 @@ public V1PodAntiAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V * 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. * @return requiredDuringSchedulingIgnoredDuringExecution **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } @@ -104,8 +125,9 @@ public void setRequiredDuringSchedulingIgnoredDuringExecution(List openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("preferredDuringSchedulingIgnoredDuringExecution"); + openapiFields.add("requiredDuringSchedulingIgnoredDuringExecution"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodAntiAffinity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodAntiAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodAntiAffinity is not found in the empty JSON string", V1PodAntiAffinity.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodAntiAffinity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodAntiAffinity` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution") != null && !jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").isJsonNull()) { + JsonArray jsonArraypreferredDuringSchedulingIgnoredDuringExecution = jsonObj.getAsJsonArray("preferredDuringSchedulingIgnoredDuringExecution"); + if (jsonArraypreferredDuringSchedulingIgnoredDuringExecution != null) { + // ensure the json data is an array + if (!jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `preferredDuringSchedulingIgnoredDuringExecution` to be an array in the JSON string but got `%s`", jsonObj.get("preferredDuringSchedulingIgnoredDuringExecution").toString())); + } + + // validate the optional field `preferredDuringSchedulingIgnoredDuringExecution` (array) + for (int i = 0; i < jsonArraypreferredDuringSchedulingIgnoredDuringExecution.size(); i++) { + V1WeightedPodAffinityTerm.validateJsonObject(jsonArraypreferredDuringSchedulingIgnoredDuringExecution.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution") != null && !jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution").isJsonNull()) { + JsonArray jsonArrayrequiredDuringSchedulingIgnoredDuringExecution = jsonObj.getAsJsonArray("requiredDuringSchedulingIgnoredDuringExecution"); + if (jsonArrayrequiredDuringSchedulingIgnoredDuringExecution != null) { + // ensure the json data is an array + if (!jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `requiredDuringSchedulingIgnoredDuringExecution` to be an array in the JSON string but got `%s`", jsonObj.get("requiredDuringSchedulingIgnoredDuringExecution").toString())); + } + + // validate the optional field `requiredDuringSchedulingIgnoredDuringExecution` (array) + for (int i = 0; i < jsonArrayrequiredDuringSchedulingIgnoredDuringExecution.size(); i++) { + V1PodAffinityTerm.validateJsonObject(jsonArrayrequiredDuringSchedulingIgnoredDuringExecution.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodAntiAffinity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodAntiAffinity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodAntiAffinity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodAntiAffinity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodAntiAffinity read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodAntiAffinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodAntiAffinity + * @throws IOException if the JSON string is invalid with respect to V1PodAntiAffinity + */ + public static V1PodAntiAffinity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodAntiAffinity.class); + } + + /** + * Convert an instance of V1PodAntiAffinity to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java index b6e63a45f3..6515850e52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodCondition contains details for the current condition of this pod. */ @@ -54,6 +77,8 @@ public class V1PodCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1PodCondition() { + } public V1PodCondition lastProbeTime(OffsetDateTime lastProbeTime) { @@ -65,9 +90,7 @@ public V1PodCondition lastProbeTime(OffsetDateTime lastProbeTime) { * Last time we probed the condition. * @return lastProbeTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time we probed the condition.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastProbeTime() { return lastProbeTime; } @@ -88,9 +111,7 @@ public V1PodCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -111,9 +132,7 @@ public V1PodCondition message(String message) { * Human-readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Human-readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -134,9 +153,7 @@ public V1PodCondition reason(String reason) { * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -157,8 +174,7 @@ public V1PodCondition status(String status) { * 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 * @return status **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -179,8 +195,7 @@ public V1PodCondition type(String type) { * Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions * @return type **/ - @ApiModelProperty(required = true, value = "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -191,8 +206,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -213,7 +229,6 @@ public int hashCode() { return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -232,11 +247,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastProbeTime"); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodCondition is not found in the empty JSON string", V1PodCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodCondition + * @throws IOException if the JSON string is invalid with respect to V1PodCondition + */ + public static V1PodCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodCondition.class); + } + + /** + * Convert an instance of V1PodCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java index bc865fca18..f052c6aecf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodDNSConfigOption; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. */ @@ -34,16 +57,18 @@ public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; @SerializedName(SERIALIZED_NAME_NAMESERVERS) - private List nameservers = null; + private List nameservers; public static final String SERIALIZED_NAME_OPTIONS = "options"; @SerializedName(SERIALIZED_NAME_OPTIONS) - private List options = null; + private List options; public static final String SERIALIZED_NAME_SEARCHES = "searches"; @SerializedName(SERIALIZED_NAME_SEARCHES) - private List searches = null; + private List searches; + public V1PodDNSConfig() { + } public V1PodDNSConfig nameservers(List nameservers) { @@ -63,9 +88,7 @@ public V1PodDNSConfig addNameserversItem(String nameserversItem) { * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. * @return nameservers **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.") - + @jakarta.annotation.Nullable public List getNameservers() { return nameservers; } @@ -94,9 +117,7 @@ public V1PodDNSConfig addOptionsItem(V1PodDNSConfigOption optionsItem) { * 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. * @return options **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getOptions() { return options; } @@ -125,9 +146,7 @@ public V1PodDNSConfig addSearchesItem(String searchesItem) { * 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. * @return searches **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getSearches() { return searches; } @@ -138,8 +157,9 @@ public void setSearches(List searches) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +177,6 @@ public int hashCode() { return Objects.hash(nameservers, options, searches); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,11 +192,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nameservers"); + openapiFields.add("options"); + openapiFields.add("searches"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodDNSConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodDNSConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodDNSConfig is not found in the empty JSON string", V1PodDNSConfig.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodDNSConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodDNSConfig` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("nameservers") != null && !jsonObj.get("nameservers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nameservers` to be an array in the JSON string but got `%s`", jsonObj.get("nameservers").toString())); + } + if (jsonObj.get("options") != null && !jsonObj.get("options").isJsonNull()) { + JsonArray jsonArrayoptions = jsonObj.getAsJsonArray("options"); + if (jsonArrayoptions != null) { + // ensure the json data is an array + if (!jsonObj.get("options").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `options` to be an array in the JSON string but got `%s`", jsonObj.get("options").toString())); + } + + // validate the optional field `options` (array) + for (int i = 0; i < jsonArrayoptions.size(); i++) { + V1PodDNSConfigOption.validateJsonObject(jsonArrayoptions.get(i).getAsJsonObject()); + }; + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("searches") != null && !jsonObj.get("searches").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `searches` to be an array in the JSON string but got `%s`", jsonObj.get("searches").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodDNSConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodDNSConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodDNSConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodDNSConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodDNSConfig read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodDNSConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDNSConfig + * @throws IOException if the JSON string is invalid with respect to V1PodDNSConfig + */ + public static V1PodDNSConfig fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodDNSConfig.class); + } + + /** + * Convert an instance of V1PodDNSConfig to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java index 9f06453648..d24fb85536 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodDNSConfigOption defines DNS resolver options of a pod. */ @@ -37,6 +60,8 @@ public class V1PodDNSConfigOption { @SerializedName(SERIALIZED_NAME_VALUE) private String value; + public V1PodDNSConfigOption() { + } public V1PodDNSConfigOption name(String name) { @@ -48,9 +73,7 @@ public V1PodDNSConfigOption name(String name) { * Required. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Required.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -71,9 +94,7 @@ public V1PodDNSConfigOption value(String value) { * Get value * @return value **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public String getValue() { return value; } @@ -84,8 +105,9 @@ public void setValue(String value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(name, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodDNSConfigOption + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodDNSConfigOption.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodDNSConfigOption is not found in the empty JSON string", V1PodDNSConfigOption.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodDNSConfigOption.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodDNSConfigOption` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodDNSConfigOption.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodDNSConfigOption' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodDNSConfigOption.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodDNSConfigOption value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodDNSConfigOption read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodDNSConfigOption given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDNSConfigOption + * @throws IOException if the JSON string is invalid with respect to V1PodDNSConfigOption + */ + public static V1PodDNSConfigOption fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodDNSConfigOption.class); + } + + /** + * Convert an instance of V1PodDNSConfigOption to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java index dffb363fdf..0c5cec5085 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec; import io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods */ @@ -52,6 +75,8 @@ public class V1PodDisruptionBudget implements io.kubernetes.client.common.Kubern @SerializedName(SERIALIZED_NAME_STATUS) private V1PodDisruptionBudgetStatus status; + public V1PodDisruptionBudget() { + } public V1PodDisruptionBudget apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1PodDisruptionBudget apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1PodDisruptionBudget kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1PodDisruptionBudget metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1PodDisruptionBudget spec(V1PodDisruptionBudgetSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodDisruptionBudgetSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1PodDisruptionBudget status(V1PodDisruptionBudgetStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodDisruptionBudgetStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1PodDisruptionBudgetStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodDisruptionBudget + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodDisruptionBudget.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodDisruptionBudget is not found in the empty JSON string", V1PodDisruptionBudget.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodDisruptionBudget.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudget` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1PodDisruptionBudgetSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1PodDisruptionBudgetStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodDisruptionBudget.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodDisruptionBudget' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodDisruptionBudget.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodDisruptionBudget value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodDisruptionBudget read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodDisruptionBudget given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDisruptionBudget + * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudget + */ + public static V1PodDisruptionBudget fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodDisruptionBudget.class); + } + + /** + * Convert an instance of V1PodDisruptionBudget to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java index d10c5a6c89..56b6880126 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PodDisruptionBudget; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ @@ -49,6 +72,8 @@ public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.Ku @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1PodDisruptionBudgetList() { + } public V1PodDisruptionBudgetList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1PodDisruptionBudgetList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1PodDisruptionBudgetList items(List items) { } public V1PodDisruptionBudgetList addItemsItem(V1PodDisruptionBudget itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1PodDisruptionBudgetList addItemsItem(V1PodDisruptionBudget itemsItem) { * Items is a list of PodDisruptionBudgets * @return items **/ - @ApiModelProperty(required = true, value = "Items is a list of PodDisruptionBudgets") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1PodDisruptionBudgetList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1PodDisruptionBudgetList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodDisruptionBudgetList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodDisruptionBudgetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodDisruptionBudgetList is not found in the empty JSON string", V1PodDisruptionBudgetList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodDisruptionBudgetList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudgetList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodDisruptionBudgetList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1PodDisruptionBudget.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodDisruptionBudgetList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodDisruptionBudgetList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodDisruptionBudgetList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodDisruptionBudgetList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodDisruptionBudgetList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodDisruptionBudgetList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDisruptionBudgetList + * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetList + */ + public static V1PodDisruptionBudgetList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodDisruptionBudgetList.class); + } + + /** + * Convert an instance of V1PodDisruptionBudgetList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java index df1aaeef01..210f070975 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. */ @@ -47,6 +70,8 @@ public class V1PodDisruptionBudgetSpec { @SerializedName(SERIALIZED_NAME_UNHEALTHY_POD_EVICTION_POLICY) private String unhealthyPodEvictionPolicy; + public V1PodDisruptionBudgetSpec() { + } public V1PodDisruptionBudgetSpec maxUnavailable(IntOrString maxUnavailable) { @@ -58,9 +83,7 @@ public V1PodDisruptionBudgetSpec maxUnavailable(IntOrString maxUnavailable) { * 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. * @return maxUnavailable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getMaxUnavailable() { return maxUnavailable; } @@ -81,9 +104,7 @@ public V1PodDisruptionBudgetSpec minAvailable(IntOrString minAvailable) { * 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. * @return minAvailable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getMinAvailable() { return minAvailable; } @@ -104,9 +125,7 @@ public V1PodDisruptionBudgetSpec selector(V1LabelSelector selector) { * Get selector * @return selector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getSelector() { return selector; } @@ -127,9 +146,7 @@ public V1PodDisruptionBudgetSpec unhealthyPodEvictionPolicy(String unhealthyPodE * 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). * @return unhealthyPodEvictionPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public String getUnhealthyPodEvictionPolicy() { return unhealthyPodEvictionPolicy; } @@ -140,8 +157,9 @@ public void setUnhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(maxUnavailable, minAvailable, selector, unhealthyPodEvictionPolicy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("maxUnavailable"); + openapiFields.add("minAvailable"); + openapiFields.add("selector"); + openapiFields.add("unhealthyPodEvictionPolicy"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodDisruptionBudgetSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodDisruptionBudgetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodDisruptionBudgetSpec is not found in the empty JSON string", V1PodDisruptionBudgetSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodDisruptionBudgetSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudgetSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("maxUnavailable") != null && !jsonObj.get("maxUnavailable").isJsonNull()) && !jsonObj.get("maxUnavailable").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `maxUnavailable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxUnavailable").toString())); + } + if ((jsonObj.get("minAvailable") != null && !jsonObj.get("minAvailable").isJsonNull()) && !jsonObj.get("minAvailable").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `minAvailable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minAvailable").toString())); + } + // validate the optional field `selector` + if (jsonObj.get("selector") != null && !jsonObj.get("selector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + } + if ((jsonObj.get("unhealthyPodEvictionPolicy") != null && !jsonObj.get("unhealthyPodEvictionPolicy").isJsonNull()) && !jsonObj.get("unhealthyPodEvictionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `unhealthyPodEvictionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unhealthyPodEvictionPolicy").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodDisruptionBudgetSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodDisruptionBudgetSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodDisruptionBudgetSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodDisruptionBudgetSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodDisruptionBudgetSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodDisruptionBudgetSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDisruptionBudgetSpec + * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetSpec + */ + public static V1PodDisruptionBudgetSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodDisruptionBudgetSpec.class); + } + + /** + * Convert an instance of V1PodDisruptionBudgetSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java index ecc5287beb..031a1fe754 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java @@ -20,8 +20,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -29,6 +27,31 @@ import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. */ @@ -37,7 +60,7 @@ public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_CURRENT_HEALTHY = "currentHealthy"; @SerializedName(SERIALIZED_NAME_CURRENT_HEALTHY) @@ -49,7 +72,7 @@ public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_DISRUPTED_PODS = "disruptedPods"; @SerializedName(SERIALIZED_NAME_DISRUPTED_PODS) - private Map disruptedPods = null; + private Map disruptedPods = new HashMap<>(); public static final String SERIALIZED_NAME_DISRUPTIONS_ALLOWED = "disruptionsAllowed"; @SerializedName(SERIALIZED_NAME_DISRUPTIONS_ALLOWED) @@ -63,6 +86,8 @@ public class V1PodDisruptionBudgetStatus { @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) private Long observedGeneration; + public V1PodDisruptionBudgetStatus() { + } public V1PodDisruptionBudgetStatus conditions(List conditions) { @@ -82,9 +107,7 @@ public V1PodDisruptionBudgetStatus addConditionsItem(V1Condition conditionsItem) * 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. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -105,8 +128,7 @@ public V1PodDisruptionBudgetStatus currentHealthy(Integer currentHealthy) { * current number of healthy pods * @return currentHealthy **/ - @ApiModelProperty(required = true, value = "current number of healthy pods") - + @jakarta.annotation.Nonnull public Integer getCurrentHealthy() { return currentHealthy; } @@ -127,8 +149,7 @@ public V1PodDisruptionBudgetStatus desiredHealthy(Integer desiredHealthy) { * minimum desired number of healthy pods * @return desiredHealthy **/ - @ApiModelProperty(required = true, value = "minimum desired number of healthy pods") - + @jakarta.annotation.Nonnull public Integer getDesiredHealthy() { return desiredHealthy; } @@ -157,9 +178,7 @@ public V1PodDisruptionBudgetStatus putDisruptedPodsItem(String key, OffsetDateTi * 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. * @return disruptedPods **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getDisruptedPods() { return disruptedPods; } @@ -180,8 +199,7 @@ public V1PodDisruptionBudgetStatus disruptionsAllowed(Integer disruptionsAllowed * Number of pod disruptions that are currently allowed. * @return disruptionsAllowed **/ - @ApiModelProperty(required = true, value = "Number of pod disruptions that are currently allowed.") - + @jakarta.annotation.Nonnull public Integer getDisruptionsAllowed() { return disruptionsAllowed; } @@ -202,8 +220,7 @@ public V1PodDisruptionBudgetStatus expectedPods(Integer expectedPods) { * total number of pods counted by this disruption budget * @return expectedPods **/ - @ApiModelProperty(required = true, value = "total number of pods counted by this disruption budget") - + @jakarta.annotation.Nonnull public Integer getExpectedPods() { return expectedPods; } @@ -224,9 +241,7 @@ public V1PodDisruptionBudgetStatus observedGeneration(Long observedGeneration) { * 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. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -237,8 +252,9 @@ public void setObservedGeneration(Long observedGeneration) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -260,7 +276,6 @@ public int hashCode() { return Objects.hash(conditions, currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -280,11 +295,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + openapiFields.add("currentHealthy"); + openapiFields.add("desiredHealthy"); + openapiFields.add("disruptedPods"); + openapiFields.add("disruptionsAllowed"); + openapiFields.add("expectedPods"); + openapiFields.add("observedGeneration"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("currentHealthy"); + openapiRequiredFields.add("desiredHealthy"); + openapiRequiredFields.add("disruptionsAllowed"); + openapiRequiredFields.add("expectedPods"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodDisruptionBudgetStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodDisruptionBudgetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodDisruptionBudgetStatus is not found in the empty JSON string", V1PodDisruptionBudgetStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodDisruptionBudgetStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudgetStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodDisruptionBudgetStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1Condition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodDisruptionBudgetStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodDisruptionBudgetStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodDisruptionBudgetStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodDisruptionBudgetStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodDisruptionBudgetStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodDisruptionBudgetStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodDisruptionBudgetStatus + * @throws IOException if the JSON string is invalid with respect to V1PodDisruptionBudgetStatus + */ + public static V1PodDisruptionBudgetStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodDisruptionBudgetStatus.class); + } + + /** + * Convert an instance of V1PodDisruptionBudgetStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java index b7a33e31f5..f1d275e963 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodFailurePolicyRule; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodFailurePolicy describes how failed pods influence the backoffLimit. */ @@ -36,6 +59,8 @@ public class V1PodFailurePolicy { @SerializedName(SERIALIZED_NAME_RULES) private List rules = new ArrayList<>(); + public V1PodFailurePolicy() { + } public V1PodFailurePolicy rules(List rules) { @@ -44,6 +69,9 @@ public V1PodFailurePolicy rules(List rules) { } public V1PodFailurePolicy addRulesItem(V1PodFailurePolicyRule rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList<>(); + } this.rules.add(rulesItem); return this; } @@ -52,8 +80,7 @@ public V1PodFailurePolicy addRulesItem(V1PodFailurePolicyRule rulesItem) { * 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. * @return rules **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getRules() { return rules; } @@ -64,8 +91,9 @@ public void setRules(List rules) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -81,7 +109,6 @@ public int hashCode() { return Objects.hash(rules); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,11 +122,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("rules"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("rules"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodFailurePolicy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodFailurePolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodFailurePolicy is not found in the empty JSON string", V1PodFailurePolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodFailurePolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodFailurePolicy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodFailurePolicy.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + // validate the required field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + V1PodFailurePolicyRule.validateJsonObject(jsonArrayrules.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodFailurePolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodFailurePolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodFailurePolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodFailurePolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodFailurePolicy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodFailurePolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodFailurePolicy + * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicy + */ + public static V1PodFailurePolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodFailurePolicy.class); + } + + /** + * Convert an instance of V1PodFailurePolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java index 9e095cb718..7831c66b7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -43,6 +66,8 @@ public class V1PodFailurePolicyOnExitCodesRequirement { @SerializedName(SERIALIZED_NAME_VALUES) private List values = new ArrayList<>(); + public V1PodFailurePolicyOnExitCodesRequirement() { + } public V1PodFailurePolicyOnExitCodesRequirement containerName(String containerName) { @@ -54,9 +79,7 @@ public V1PodFailurePolicyOnExitCodesRequirement containerName(String containerNa * 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. * @return containerName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getContainerName() { return containerName; } @@ -77,8 +100,7 @@ public V1PodFailurePolicyOnExitCodesRequirement operator(String operator) { * 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. * @return operator **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getOperator() { return operator; } @@ -96,6 +118,9 @@ public V1PodFailurePolicyOnExitCodesRequirement values(List values) { } public V1PodFailurePolicyOnExitCodesRequirement addValuesItem(Integer valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } this.values.add(valuesItem); return this; } @@ -104,8 +129,7 @@ public V1PodFailurePolicyOnExitCodesRequirement addValuesItem(Integer valuesItem * 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. * @return values **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getValues() { return values; } @@ -116,8 +140,9 @@ public void setValues(List values) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -135,7 +160,6 @@ public int hashCode() { return Objects.hash(containerName, operator, values); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -151,11 +175,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("containerName"); + openapiFields.add("operator"); + openapiFields.add("values"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("operator"); + openapiRequiredFields.add("values"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodFailurePolicyOnExitCodesRequirement + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodFailurePolicyOnExitCodesRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodFailurePolicyOnExitCodesRequirement is not found in the empty JSON string", V1PodFailurePolicyOnExitCodesRequirement.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodFailurePolicyOnExitCodesRequirement.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodFailurePolicyOnExitCodesRequirement` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodFailurePolicyOnExitCodesRequirement.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("containerName") != null && !jsonObj.get("containerName").isJsonNull()) && !jsonObj.get("containerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `containerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerName").toString())); + } + if (!jsonObj.get("operator").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + } + // ensure the required json array is present + if (jsonObj.get("values") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodFailurePolicyOnExitCodesRequirement.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodFailurePolicyOnExitCodesRequirement' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodFailurePolicyOnExitCodesRequirement.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodFailurePolicyOnExitCodesRequirement value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodFailurePolicyOnExitCodesRequirement read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodFailurePolicyOnExitCodesRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodFailurePolicyOnExitCodesRequirement + * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyOnExitCodesRequirement + */ + public static V1PodFailurePolicyOnExitCodesRequirement fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodFailurePolicyOnExitCodesRequirement.class); + } + + /** + * Convert an instance of V1PodFailurePolicyOnExitCodesRequirement to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java index 003e4e4440..139269b66d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. */ @@ -37,6 +60,8 @@ public class V1PodFailurePolicyOnPodConditionsPattern { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1PodFailurePolicyOnPodConditionsPattern() { + } public V1PodFailurePolicyOnPodConditionsPattern status(String status) { @@ -48,8 +73,7 @@ public V1PodFailurePolicyOnPodConditionsPattern status(String status) { * 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. * @return status **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -70,8 +94,7 @@ public V1PodFailurePolicyOnPodConditionsPattern type(String type) { * Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. * @return type **/ - @ApiModelProperty(required = true, value = "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -82,8 +105,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodFailurePolicyOnPodConditionsPattern + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodFailurePolicyOnPodConditionsPattern.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodFailurePolicyOnPodConditionsPattern is not found in the empty JSON string", V1PodFailurePolicyOnPodConditionsPattern.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodFailurePolicyOnPodConditionsPattern.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodFailurePolicyOnPodConditionsPattern` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodFailurePolicyOnPodConditionsPattern.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodFailurePolicyOnPodConditionsPattern.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodFailurePolicyOnPodConditionsPattern' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodFailurePolicyOnPodConditionsPattern.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodFailurePolicyOnPodConditionsPattern value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodFailurePolicyOnPodConditionsPattern read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodFailurePolicyOnPodConditionsPattern given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodFailurePolicyOnPodConditionsPattern + * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyOnPodConditionsPattern + */ + public static V1PodFailurePolicyOnPodConditionsPattern fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodFailurePolicyOnPodConditionsPattern.class); + } + + /** + * Convert an instance of V1PodFailurePolicyOnPodConditionsPattern to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java index 79b6e3198e..6d80474738 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodFailurePolicyOnExitCodesRequirement; import io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -45,6 +68,8 @@ public class V1PodFailurePolicyRule { @SerializedName(SERIALIZED_NAME_ON_POD_CONDITIONS) private List onPodConditions = null; + public V1PodFailurePolicyRule() { + } public V1PodFailurePolicyRule action(String action) { @@ -78,9 +103,7 @@ public V1PodFailurePolicyRule onExitCodes(V1PodFailurePolicyOnExitCodesRequireme * Get onExitCodes * @return onExitCodes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodFailurePolicyOnExitCodesRequirement getOnExitCodes() { return onExitCodes; } @@ -122,8 +145,9 @@ public void setOnPodConditions(List on } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -141,7 +165,6 @@ public int hashCode() { return Objects.hash(action, onExitCodes, onPodConditions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -157,11 +180,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("action"); + openapiFields.add("onExitCodes"); + openapiFields.add("onPodConditions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("action"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodFailurePolicyRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodFailurePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodFailurePolicyRule is not found in the empty JSON string", V1PodFailurePolicyRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodFailurePolicyRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodFailurePolicyRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodFailurePolicyRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("action").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `action` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action").toString())); + } + // validate the optional field `onExitCodes` + if (jsonObj.get("onExitCodes") != null && !jsonObj.get("onExitCodes").isJsonNull()) { + V1PodFailurePolicyOnExitCodesRequirement.validateJsonObject(jsonObj.getAsJsonObject("onExitCodes")); + } + if (jsonObj.get("onPodConditions") != null && !jsonObj.get("onPodConditions").isJsonNull()) { + JsonArray jsonArrayonPodConditions = jsonObj.getAsJsonArray("onPodConditions"); + if (jsonArrayonPodConditions != null) { + // ensure the json data is an array + if (!jsonObj.get("onPodConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `onPodConditions` to be an array in the JSON string but got `%s`", jsonObj.get("onPodConditions").toString())); + } + + // validate the optional field `onPodConditions` (array) + for (int i = 0; i < jsonArrayonPodConditions.size(); i++) { + V1PodFailurePolicyOnPodConditionsPattern.validateJsonObject(jsonArrayonPodConditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodFailurePolicyRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodFailurePolicyRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodFailurePolicyRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodFailurePolicyRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodFailurePolicyRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodFailurePolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodFailurePolicyRule + * @throws IOException if the JSON string is invalid with respect to V1PodFailurePolicyRule + */ + public static V1PodFailurePolicyRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodFailurePolicyRule.class); + } + + /** + * Convert an instance of V1PodFailurePolicyRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java index b5e6b439c5..a5a2c5f638 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodIP represents a single IP address allocated to the pod. */ @@ -33,6 +56,8 @@ public class V1PodIP { @SerializedName(SERIALIZED_NAME_IP) private String ip; + public V1PodIP() { + } public V1PodIP ip(String ip) { @@ -57,8 +82,9 @@ public void setIp(String ip) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -74,7 +100,6 @@ public int hashCode() { return Objects.hash(ip); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -88,11 +113,97 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ip"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodIP + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodIP.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodIP is not found in the empty JSON string", V1PodIP.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodIP.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodIP` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("ip") != null && !jsonObj.get("ip").isJsonNull()) && !jsonObj.get("ip").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodIP.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodIP' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodIP.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodIP value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodIP read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodIP given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodIP + * @throws IOException if the JSON string is invalid with respect to V1PodIP + */ + public static V1PodIP fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodIP.class); + } + + /** + * Convert an instance of V1PodIP to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java index 990f7cebec..39e8da1c0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Pod; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodList is a list of Pods. */ @@ -49,6 +72,8 @@ public class V1PodList implements io.kubernetes.client.common.KubernetesListObje @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1PodList() { + } public V1PodList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1PodList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1PodList items(List items) { } public V1PodList addItemsItem(V1Pod itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1PodList addItemsItem(V1Pod itemsItem) { * List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md * @return items **/ - @ApiModelProperty(required = true, value = "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1PodList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1PodList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodList is not found in the empty JSON string", V1PodList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Pod.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodList + * @throws IOException if the JSON string is invalid with respect to V1PodList + */ + public static V1PodList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodList.class); + } + + /** + * Convert an instance of V1PodList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java index c6b6d47677..83a9ebfa74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodOS defines the OS parameters of a pod. */ @@ -33,6 +56,8 @@ public class V1PodOS { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1PodOS() { + } public V1PodOS name(String name) { @@ -44,8 +69,7 @@ public V1PodOS name(String name) { * 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 * @return name **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodOS + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodOS.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodOS is not found in the empty JSON string", V1PodOS.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodOS.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodOS` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodOS.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodOS.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodOS' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodOS.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodOS value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodOS read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodOS given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodOS + * @throws IOException if the JSON string is invalid with respect to V1PodOS + */ + public static V1PodOS fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodOS.class); + } + + /** + * Convert an instance of V1PodOS to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java index 32d38f7d5e..425284b82e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodReadinessGate contains the reference to a pod condition */ @@ -33,6 +56,8 @@ public class V1PodReadinessGate { @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) private String conditionType; + public V1PodReadinessGate() { + } public V1PodReadinessGate conditionType(String conditionType) { @@ -44,8 +69,7 @@ public V1PodReadinessGate conditionType(String conditionType) { * ConditionType refers to a condition in the pod's condition list with matching type. * @return conditionType **/ - @ApiModelProperty(required = true, value = "ConditionType refers to a condition in the pod's condition list with matching type.") - + @jakarta.annotation.Nonnull public String getConditionType() { return conditionType; } @@ -56,8 +80,9 @@ public void setConditionType(String conditionType) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(conditionType); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditionType"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("conditionType"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodReadinessGate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodReadinessGate.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodReadinessGate is not found in the empty JSON string", V1PodReadinessGate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodReadinessGate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodReadinessGate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodReadinessGate.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("conditionType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `conditionType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conditionType").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodReadinessGate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodReadinessGate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodReadinessGate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodReadinessGate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodReadinessGate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodReadinessGate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodReadinessGate + * @throws IOException if the JSON string is invalid with respect to V1PodReadinessGate + */ + public static V1PodReadinessGate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodReadinessGate.class); + } + + /** + * Convert an instance of V1PodReadinessGate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java index 7d9f57d607..07fd6e9765 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ClaimSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,6 +61,8 @@ public class V1PodResourceClaim { @SerializedName(SERIALIZED_NAME_SOURCE) private V1ClaimSource source; + public V1PodResourceClaim() { + } public V1PodResourceClaim name(String name) { @@ -49,8 +74,7 @@ public V1PodResourceClaim name(String name) { * Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. * @return name **/ - @ApiModelProperty(required = true, value = "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -71,9 +95,7 @@ public V1PodResourceClaim source(V1ClaimSource source) { * Get source * @return source **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ClaimSource getSource() { return source; } @@ -84,8 +106,9 @@ public void setSource(V1ClaimSource source) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +125,6 @@ public int hashCode() { return Objects.hash(name, source); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +139,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("source"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodResourceClaim + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodResourceClaim is not found in the empty JSON string", V1PodResourceClaim.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodResourceClaim` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodResourceClaim.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `source` + if (jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) { + V1ClaimSource.validateJsonObject(jsonObj.getAsJsonObject("source")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodResourceClaim' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodResourceClaim.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodResourceClaim value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodResourceClaim read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodResourceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1PodResourceClaim + */ + public static V1PodResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodResourceClaim.class); + } + + /** + * Convert an instance of V1PodResourceClaim to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java index cc56182bf8..4bb381cd9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodSchedulingGate is associated to a Pod to guard its scheduling. */ @@ -33,6 +56,8 @@ public class V1PodSchedulingGate { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1PodSchedulingGate() { + } public V1PodSchedulingGate name(String name) { @@ -44,8 +69,7 @@ public V1PodSchedulingGate name(String name) { * Name of the scheduling gate. Each scheduling gate must have a unique name field. * @return name **/ - @ApiModelProperty(required = true, value = "Name of the scheduling gate. Each scheduling gate must have a unique name field.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodSchedulingGate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodSchedulingGate.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodSchedulingGate is not found in the empty JSON string", V1PodSchedulingGate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodSchedulingGate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodSchedulingGate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodSchedulingGate.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodSchedulingGate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodSchedulingGate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodSchedulingGate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodSchedulingGate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodSchedulingGate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodSchedulingGate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodSchedulingGate + * @throws IOException if the JSON string is invalid with respect to V1PodSchedulingGate + */ + public static V1PodSchedulingGate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodSchedulingGate.class); + } + + /** + * Convert an instance of V1PodSchedulingGate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java index d13b2433cb..089719ed52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java @@ -23,12 +23,35 @@ import io.kubernetes.client.openapi.models.V1SeccompProfile; import io.kubernetes.client.openapi.models.V1Sysctl; import io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -65,16 +88,18 @@ public class V1PodSecurityContext { public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS = "supplementalGroups"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) - private List supplementalGroups = null; + private List supplementalGroups; public static final String SERIALIZED_NAME_SYSCTLS = "sysctls"; @SerializedName(SERIALIZED_NAME_SYSCTLS) - private List sysctls = null; + private List sysctls; public static final String SERIALIZED_NAME_WINDOWS_OPTIONS = "windowsOptions"; @SerializedName(SERIALIZED_NAME_WINDOWS_OPTIONS) private V1WindowsSecurityContextOptions windowsOptions; + public V1PodSecurityContext() { + } public V1PodSecurityContext fsGroup(Long fsGroup) { @@ -86,9 +111,7 @@ public V1PodSecurityContext fsGroup(Long fsGroup) { * 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. * @return fsGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getFsGroup() { return fsGroup; } @@ -109,9 +132,7 @@ public V1PodSecurityContext fsGroupChangePolicy(String fsGroupChangePolicy) { * 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. * @return fsGroupChangePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsGroupChangePolicy() { return fsGroupChangePolicy; } @@ -132,9 +153,7 @@ public V1PodSecurityContext runAsGroup(Long runAsGroup) { * 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. * @return runAsGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getRunAsGroup() { return runAsGroup; } @@ -155,9 +174,7 @@ public V1PodSecurityContext runAsNonRoot(Boolean runAsNonRoot) { * 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. * @return runAsNonRoot **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getRunAsNonRoot() { return runAsNonRoot; } @@ -178,9 +195,7 @@ public V1PodSecurityContext runAsUser(Long runAsUser) { * 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. * @return runAsUser **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getRunAsUser() { return runAsUser; } @@ -201,9 +216,7 @@ public V1PodSecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { * Get seLinuxOptions * @return seLinuxOptions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } @@ -224,9 +237,7 @@ public V1PodSecurityContext seccompProfile(V1SeccompProfile seccompProfile) { * Get seccompProfile * @return seccompProfile **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SeccompProfile getSeccompProfile() { return seccompProfile; } @@ -255,9 +266,7 @@ public V1PodSecurityContext addSupplementalGroupsItem(Long supplementalGroupsIte * 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. * @return supplementalGroups **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getSupplementalGroups() { return supplementalGroups; } @@ -286,9 +295,7 @@ public V1PodSecurityContext addSysctlsItem(V1Sysctl sysctlsItem) { * 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. * @return sysctls **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getSysctls() { return sysctls; } @@ -309,9 +316,7 @@ public V1PodSecurityContext windowsOptions(V1WindowsSecurityContextOptions windo * Get windowsOptions * @return windowsOptions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1WindowsSecurityContextOptions getWindowsOptions() { return windowsOptions; } @@ -322,8 +327,9 @@ public void setWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -348,7 +354,6 @@ public int hashCode() { return Objects.hash(fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, supplementalGroups, sysctls, windowsOptions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -371,11 +376,136 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsGroup"); + openapiFields.add("fsGroupChangePolicy"); + openapiFields.add("runAsGroup"); + openapiFields.add("runAsNonRoot"); + openapiFields.add("runAsUser"); + openapiFields.add("seLinuxOptions"); + openapiFields.add("seccompProfile"); + openapiFields.add("supplementalGroups"); + openapiFields.add("sysctls"); + openapiFields.add("windowsOptions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodSecurityContext + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodSecurityContext.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodSecurityContext is not found in the empty JSON string", V1PodSecurityContext.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodSecurityContext.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodSecurityContext` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("fsGroupChangePolicy") != null && !jsonObj.get("fsGroupChangePolicy").isJsonNull()) && !jsonObj.get("fsGroupChangePolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsGroupChangePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsGroupChangePolicy").toString())); + } + // validate the optional field `seLinuxOptions` + if (jsonObj.get("seLinuxOptions") != null && !jsonObj.get("seLinuxOptions").isJsonNull()) { + V1SELinuxOptions.validateJsonObject(jsonObj.getAsJsonObject("seLinuxOptions")); + } + // validate the optional field `seccompProfile` + if (jsonObj.get("seccompProfile") != null && !jsonObj.get("seccompProfile").isJsonNull()) { + V1SeccompProfile.validateJsonObject(jsonObj.getAsJsonObject("seccompProfile")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("supplementalGroups") != null && !jsonObj.get("supplementalGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `supplementalGroups` to be an array in the JSON string but got `%s`", jsonObj.get("supplementalGroups").toString())); + } + if (jsonObj.get("sysctls") != null && !jsonObj.get("sysctls").isJsonNull()) { + JsonArray jsonArraysysctls = jsonObj.getAsJsonArray("sysctls"); + if (jsonArraysysctls != null) { + // ensure the json data is an array + if (!jsonObj.get("sysctls").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `sysctls` to be an array in the JSON string but got `%s`", jsonObj.get("sysctls").toString())); + } + + // validate the optional field `sysctls` (array) + for (int i = 0; i < jsonArraysysctls.size(); i++) { + V1Sysctl.validateJsonObject(jsonArraysysctls.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `windowsOptions` + if (jsonObj.get("windowsOptions") != null && !jsonObj.get("windowsOptions").isJsonNull()) { + V1WindowsSecurityContextOptions.validateJsonObject(jsonObj.getAsJsonObject("windowsOptions")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodSecurityContext.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodSecurityContext' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodSecurityContext.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodSecurityContext value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodSecurityContext read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodSecurityContext given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodSecurityContext + * @throws IOException if the JSON string is invalid with respect to V1PodSecurityContext + */ + public static V1PodSecurityContext fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodSecurityContext.class); + } + + /** + * Convert an instance of V1PodSecurityContext to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java index 98cf773c3c..964d195e53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java @@ -34,14 +34,37 @@ import io.kubernetes.client.openapi.models.V1Toleration; import io.kubernetes.client.openapi.models.V1TopologySpreadConstraint; import io.kubernetes.client.openapi.models.V1Volume; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodSpec is a description of a pod. */ @@ -78,11 +101,11 @@ public class V1PodSpec { public static final String SERIALIZED_NAME_EPHEMERAL_CONTAINERS = "ephemeralContainers"; @SerializedName(SERIALIZED_NAME_EPHEMERAL_CONTAINERS) - private List ephemeralContainers = null; + private List ephemeralContainers; public static final String SERIALIZED_NAME_HOST_ALIASES = "hostAliases"; @SerializedName(SERIALIZED_NAME_HOST_ALIASES) - private List hostAliases = null; + private List hostAliases; public static final String SERIALIZED_NAME_HOST_I_P_C = "hostIPC"; @SerializedName(SERIALIZED_NAME_HOST_I_P_C) @@ -106,11 +129,11 @@ public class V1PodSpec { public static final String SERIALIZED_NAME_IMAGE_PULL_SECRETS = "imagePullSecrets"; @SerializedName(SERIALIZED_NAME_IMAGE_PULL_SECRETS) - private List imagePullSecrets = null; + private List imagePullSecrets; public static final String SERIALIZED_NAME_INIT_CONTAINERS = "initContainers"; @SerializedName(SERIALIZED_NAME_INIT_CONTAINERS) - private List initContainers = null; + private List initContainers; public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) @@ -118,7 +141,7 @@ public class V1PodSpec { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) - private Map nodeSelector = null; + private Map nodeSelector = new HashMap<>(); public static final String SERIALIZED_NAME_OS = "os"; @SerializedName(SERIALIZED_NAME_OS) @@ -126,7 +149,7 @@ public class V1PodSpec { public static final String SERIALIZED_NAME_OVERHEAD = "overhead"; @SerializedName(SERIALIZED_NAME_OVERHEAD) - private Map overhead = null; + private Map overhead = new HashMap<>(); public static final String SERIALIZED_NAME_PREEMPTION_POLICY = "preemptionPolicy"; @SerializedName(SERIALIZED_NAME_PREEMPTION_POLICY) @@ -142,11 +165,11 @@ public class V1PodSpec { public static final String SERIALIZED_NAME_READINESS_GATES = "readinessGates"; @SerializedName(SERIALIZED_NAME_READINESS_GATES) - private List readinessGates = null; + private List readinessGates; public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) - private List resourceClaims = null; + private List resourceClaims; public static final String SERIALIZED_NAME_RESTART_POLICY = "restartPolicy"; @SerializedName(SERIALIZED_NAME_RESTART_POLICY) @@ -162,7 +185,7 @@ public class V1PodSpec { public static final String SERIALIZED_NAME_SCHEDULING_GATES = "schedulingGates"; @SerializedName(SERIALIZED_NAME_SCHEDULING_GATES) - private List schedulingGates = null; + private List schedulingGates; public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) @@ -194,16 +217,18 @@ public class V1PodSpec { public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) - private List tolerations = null; + private List tolerations; public static final String SERIALIZED_NAME_TOPOLOGY_SPREAD_CONSTRAINTS = "topologySpreadConstraints"; @SerializedName(SERIALIZED_NAME_TOPOLOGY_SPREAD_CONSTRAINTS) - private List topologySpreadConstraints = null; + private List topologySpreadConstraints; public static final String SERIALIZED_NAME_VOLUMES = "volumes"; @SerializedName(SERIALIZED_NAME_VOLUMES) - private List volumes = null; + private List volumes; + public V1PodSpec() { + } public V1PodSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { @@ -215,9 +240,7 @@ public V1PodSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { * 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. * @return activeDeadlineSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getActiveDeadlineSeconds() { return activeDeadlineSeconds; } @@ -238,9 +261,7 @@ public V1PodSpec affinity(V1Affinity affinity) { * Get affinity * @return affinity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Affinity getAffinity() { return affinity; } @@ -261,9 +282,7 @@ public V1PodSpec automountServiceAccountToken(Boolean automountServiceAccountTok * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. * @return automountServiceAccountToken **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.") - + @jakarta.annotation.Nullable public Boolean getAutomountServiceAccountToken() { return automountServiceAccountToken; } @@ -281,6 +300,9 @@ public V1PodSpec containers(List containers) { } public V1PodSpec addContainersItem(V1Container containersItem) { + if (this.containers == null) { + this.containers = new ArrayList<>(); + } this.containers.add(containersItem); return this; } @@ -289,8 +311,7 @@ public V1PodSpec addContainersItem(V1Container containersItem) { * 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. * @return containers **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getContainers() { return containers; } @@ -311,9 +332,7 @@ public V1PodSpec dnsConfig(V1PodDNSConfig dnsConfig) { * Get dnsConfig * @return dnsConfig **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodDNSConfig getDnsConfig() { return dnsConfig; } @@ -334,9 +353,7 @@ public V1PodSpec dnsPolicy(String dnsPolicy) { * 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'. * @return dnsPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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'.") - + @jakarta.annotation.Nullable public String getDnsPolicy() { return dnsPolicy; } @@ -357,9 +374,7 @@ public V1PodSpec enableServiceLinks(Boolean enableServiceLinks) { * EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. * @return enableServiceLinks **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.") - + @jakarta.annotation.Nullable public Boolean getEnableServiceLinks() { return enableServiceLinks; } @@ -388,9 +403,7 @@ public V1PodSpec addEphemeralContainersItem(V1EphemeralContainer ephemeralContai * 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. * @return ephemeralContainers **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getEphemeralContainers() { return ephemeralContainers; } @@ -419,9 +432,7 @@ public V1PodSpec addHostAliasesItem(V1HostAlias hostAliasesItem) { * 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. * @return hostAliases **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getHostAliases() { return hostAliases; } @@ -442,9 +453,7 @@ public V1PodSpec hostIPC(Boolean hostIPC) { * Use the host's ipc namespace. Optional: Default to false. * @return hostIPC **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Use the host's ipc namespace. Optional: Default to false.") - + @jakarta.annotation.Nullable public Boolean getHostIPC() { return hostIPC; } @@ -465,9 +474,7 @@ public V1PodSpec hostNetwork(Boolean hostNetwork) { * 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. * @return hostNetwork **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getHostNetwork() { return hostNetwork; } @@ -488,9 +495,7 @@ public V1PodSpec hostPID(Boolean hostPID) { * Use the host's pid namespace. Optional: Default to false. * @return hostPID **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Use the host's pid namespace. Optional: Default to false.") - + @jakarta.annotation.Nullable public Boolean getHostPID() { return hostPID; } @@ -511,9 +516,7 @@ public V1PodSpec hostUsers(Boolean hostUsers) { * Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. * @return hostUsers **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.") - + @jakarta.annotation.Nullable public Boolean getHostUsers() { return hostUsers; } @@ -534,9 +537,7 @@ public V1PodSpec hostname(String hostname) { * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. * @return hostname **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.") - + @jakarta.annotation.Nullable public String getHostname() { return hostname; } @@ -565,9 +566,7 @@ public V1PodSpec addImagePullSecretsItem(V1LocalObjectReference imagePullSecrets * 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 * @return imagePullSecrets **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getImagePullSecrets() { return imagePullSecrets; } @@ -596,9 +595,7 @@ public V1PodSpec addInitContainersItem(V1Container initContainersItem) { * 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/ * @return initContainers **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public List getInitContainers() { return initContainers; } @@ -619,9 +616,7 @@ public V1PodSpec nodeName(String nodeName) { * 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. * @return nodeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getNodeName() { return nodeName; } @@ -650,9 +645,7 @@ public V1PodSpec putNodeSelectorItem(String key, String nodeSelectorItem) { * 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/ * @return nodeSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public Map getNodeSelector() { return nodeSelector; } @@ -673,9 +666,7 @@ public V1PodSpec os(V1PodOS os) { * Get os * @return os **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodOS getOs() { return os; } @@ -704,9 +695,7 @@ public V1PodSpec putOverheadItem(String key, Quantity overheadItem) { * 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 * @return overhead **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Map getOverhead() { return overhead; } @@ -727,9 +716,7 @@ public V1PodSpec preemptionPolicy(String preemptionPolicy) { * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. * @return preemptionPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.") - + @jakarta.annotation.Nullable public String getPreemptionPolicy() { return preemptionPolicy; } @@ -750,9 +737,7 @@ public V1PodSpec priority(Integer priority) { * 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. * @return priority **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getPriority() { return priority; } @@ -773,9 +758,7 @@ public V1PodSpec priorityClassName(String priorityClassName) { * 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. * @return priorityClassName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getPriorityClassName() { return priorityClassName; } @@ -804,9 +787,7 @@ public V1PodSpec addReadinessGatesItem(V1PodReadinessGate readinessGatesItem) { * 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 * @return readinessGates **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getReadinessGates() { return readinessGates; } @@ -835,9 +816,7 @@ public V1PodSpec addResourceClaimsItem(V1PodResourceClaim resourceClaimsItem) { * 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. * @return resourceClaims **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getResourceClaims() { return resourceClaims; } @@ -858,9 +837,7 @@ public V1PodSpec restartPolicy(String restartPolicy) { * 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 * @return restartPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getRestartPolicy() { return restartPolicy; } @@ -881,9 +858,7 @@ public V1PodSpec runtimeClassName(String runtimeClassName) { * 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 * @return runtimeClassName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getRuntimeClassName() { return runtimeClassName; } @@ -904,9 +879,7 @@ public V1PodSpec schedulerName(String schedulerName) { * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. * @return schedulerName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.") - + @jakarta.annotation.Nullable public String getSchedulerName() { return schedulerName; } @@ -935,9 +908,7 @@ public V1PodSpec addSchedulingGatesItem(V1PodSchedulingGate schedulingGatesItem) * 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. * @return schedulingGates **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getSchedulingGates() { return schedulingGates; } @@ -958,9 +929,7 @@ public V1PodSpec securityContext(V1PodSecurityContext securityContext) { * Get securityContext * @return securityContext **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodSecurityContext getSecurityContext() { return securityContext; } @@ -981,9 +950,7 @@ public V1PodSpec serviceAccount(String serviceAccount) { * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. * @return serviceAccount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.") - + @jakarta.annotation.Nullable public String getServiceAccount() { return serviceAccount; } @@ -1004,9 +971,7 @@ public V1PodSpec serviceAccountName(String serviceAccountName) { * 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/ * @return serviceAccountName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public String getServiceAccountName() { return serviceAccountName; } @@ -1027,9 +992,7 @@ public V1PodSpec setHostnameAsFQDN(Boolean setHostnameAsFQDN) { * 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. * @return setHostnameAsFQDN **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getSetHostnameAsFQDN() { return setHostnameAsFQDN; } @@ -1050,9 +1013,7 @@ public V1PodSpec shareProcessNamespace(Boolean shareProcessNamespace) { * 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. * @return shareProcessNamespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getShareProcessNamespace() { return shareProcessNamespace; } @@ -1073,9 +1034,7 @@ public V1PodSpec subdomain(String subdomain) { * If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. * @return subdomain **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.") - + @jakarta.annotation.Nullable public String getSubdomain() { return subdomain; } @@ -1096,9 +1055,7 @@ public V1PodSpec terminationGracePeriodSeconds(Long terminationGracePeriodSecond * 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. * @return terminationGracePeriodSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds; } @@ -1127,9 +1084,7 @@ public V1PodSpec addTolerationsItem(V1Toleration tolerationsItem) { * If specified, the pod's tolerations. * @return tolerations **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If specified, the pod's tolerations.") - + @jakarta.annotation.Nullable public List getTolerations() { return tolerations; } @@ -1158,9 +1113,7 @@ public V1PodSpec addTopologySpreadConstraintsItem(V1TopologySpreadConstraint top * 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. * @return topologySpreadConstraints **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getTopologySpreadConstraints() { return topologySpreadConstraints; } @@ -1189,9 +1142,7 @@ public V1PodSpec addVolumesItem(V1Volume volumesItem) { * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes * @return volumes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes") - + @jakarta.annotation.Nullable public List getVolumes() { return volumes; } @@ -1202,8 +1153,9 @@ public void setVolumes(List volumes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -1257,7 +1209,6 @@ public int hashCode() { return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -1309,11 +1260,339 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("activeDeadlineSeconds"); + openapiFields.add("affinity"); + openapiFields.add("automountServiceAccountToken"); + openapiFields.add("containers"); + openapiFields.add("dnsConfig"); + openapiFields.add("dnsPolicy"); + openapiFields.add("enableServiceLinks"); + openapiFields.add("ephemeralContainers"); + openapiFields.add("hostAliases"); + openapiFields.add("hostIPC"); + openapiFields.add("hostNetwork"); + openapiFields.add("hostPID"); + openapiFields.add("hostUsers"); + openapiFields.add("hostname"); + openapiFields.add("imagePullSecrets"); + openapiFields.add("initContainers"); + openapiFields.add("nodeName"); + openapiFields.add("nodeSelector"); + openapiFields.add("os"); + openapiFields.add("overhead"); + openapiFields.add("preemptionPolicy"); + openapiFields.add("priority"); + openapiFields.add("priorityClassName"); + openapiFields.add("readinessGates"); + openapiFields.add("resourceClaims"); + openapiFields.add("restartPolicy"); + openapiFields.add("runtimeClassName"); + openapiFields.add("schedulerName"); + openapiFields.add("schedulingGates"); + openapiFields.add("securityContext"); + openapiFields.add("serviceAccount"); + openapiFields.add("serviceAccountName"); + openapiFields.add("setHostnameAsFQDN"); + openapiFields.add("shareProcessNamespace"); + openapiFields.add("subdomain"); + openapiFields.add("terminationGracePeriodSeconds"); + openapiFields.add("tolerations"); + openapiFields.add("topologySpreadConstraints"); + openapiFields.add("volumes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("containers"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodSpec is not found in the empty JSON string", V1PodSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `affinity` + if (jsonObj.get("affinity") != null && !jsonObj.get("affinity").isJsonNull()) { + V1Affinity.validateJsonObject(jsonObj.getAsJsonObject("affinity")); + } + // ensure the json data is an array + if (!jsonObj.get("containers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `containers` to be an array in the JSON string but got `%s`", jsonObj.get("containers").toString())); + } + + JsonArray jsonArraycontainers = jsonObj.getAsJsonArray("containers"); + // validate the required field `containers` (array) + for (int i = 0; i < jsonArraycontainers.size(); i++) { + V1Container.validateJsonObject(jsonArraycontainers.get(i).getAsJsonObject()); + }; + // validate the optional field `dnsConfig` + if (jsonObj.get("dnsConfig") != null && !jsonObj.get("dnsConfig").isJsonNull()) { + V1PodDNSConfig.validateJsonObject(jsonObj.getAsJsonObject("dnsConfig")); + } + if ((jsonObj.get("dnsPolicy") != null && !jsonObj.get("dnsPolicy").isJsonNull()) && !jsonObj.get("dnsPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `dnsPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dnsPolicy").toString())); + } + if (jsonObj.get("ephemeralContainers") != null && !jsonObj.get("ephemeralContainers").isJsonNull()) { + JsonArray jsonArrayephemeralContainers = jsonObj.getAsJsonArray("ephemeralContainers"); + if (jsonArrayephemeralContainers != null) { + // ensure the json data is an array + if (!jsonObj.get("ephemeralContainers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ephemeralContainers` to be an array in the JSON string but got `%s`", jsonObj.get("ephemeralContainers").toString())); + } + + // validate the optional field `ephemeralContainers` (array) + for (int i = 0; i < jsonArrayephemeralContainers.size(); i++) { + V1EphemeralContainer.validateJsonObject(jsonArrayephemeralContainers.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("hostAliases") != null && !jsonObj.get("hostAliases").isJsonNull()) { + JsonArray jsonArrayhostAliases = jsonObj.getAsJsonArray("hostAliases"); + if (jsonArrayhostAliases != null) { + // ensure the json data is an array + if (!jsonObj.get("hostAliases").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `hostAliases` to be an array in the JSON string but got `%s`", jsonObj.get("hostAliases").toString())); + } + + // validate the optional field `hostAliases` (array) + for (int i = 0; i < jsonArrayhostAliases.size(); i++) { + V1HostAlias.validateJsonObject(jsonArrayhostAliases.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("hostname") != null && !jsonObj.get("hostname").isJsonNull()) && !jsonObj.get("hostname").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `hostname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostname").toString())); + } + if (jsonObj.get("imagePullSecrets") != null && !jsonObj.get("imagePullSecrets").isJsonNull()) { + JsonArray jsonArrayimagePullSecrets = jsonObj.getAsJsonArray("imagePullSecrets"); + if (jsonArrayimagePullSecrets != null) { + // ensure the json data is an array + if (!jsonObj.get("imagePullSecrets").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `imagePullSecrets` to be an array in the JSON string but got `%s`", jsonObj.get("imagePullSecrets").toString())); + } + + // validate the optional field `imagePullSecrets` (array) + for (int i = 0; i < jsonArrayimagePullSecrets.size(); i++) { + V1LocalObjectReference.validateJsonObject(jsonArrayimagePullSecrets.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("initContainers") != null && !jsonObj.get("initContainers").isJsonNull()) { + JsonArray jsonArrayinitContainers = jsonObj.getAsJsonArray("initContainers"); + if (jsonArrayinitContainers != null) { + // ensure the json data is an array + if (!jsonObj.get("initContainers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `initContainers` to be an array in the JSON string but got `%s`", jsonObj.get("initContainers").toString())); + } + + // validate the optional field `initContainers` (array) + for (int i = 0; i < jsonArrayinitContainers.size(); i++) { + V1Container.validateJsonObject(jsonArrayinitContainers.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("nodeName") != null && !jsonObj.get("nodeName").isJsonNull()) && !jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + // validate the optional field `os` + if (jsonObj.get("os") != null && !jsonObj.get("os").isJsonNull()) { + V1PodOS.validateJsonObject(jsonObj.getAsJsonObject("os")); + } + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); + } + if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); + } + if (jsonObj.get("readinessGates") != null && !jsonObj.get("readinessGates").isJsonNull()) { + JsonArray jsonArrayreadinessGates = jsonObj.getAsJsonArray("readinessGates"); + if (jsonArrayreadinessGates != null) { + // ensure the json data is an array + if (!jsonObj.get("readinessGates").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `readinessGates` to be an array in the JSON string but got `%s`", jsonObj.get("readinessGates").toString())); + } + + // validate the optional field `readinessGates` (array) + for (int i = 0; i < jsonArrayreadinessGates.size(); i++) { + V1PodReadinessGate.validateJsonObject(jsonArrayreadinessGates.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("resourceClaims") != null && !jsonObj.get("resourceClaims").isJsonNull()) { + JsonArray jsonArrayresourceClaims = jsonObj.getAsJsonArray("resourceClaims"); + if (jsonArrayresourceClaims != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaims").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceClaims` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaims").toString())); + } + + // validate the optional field `resourceClaims` (array) + for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { + V1PodResourceClaim.validateJsonObject(jsonArrayresourceClaims.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("restartPolicy") != null && !jsonObj.get("restartPolicy").isJsonNull()) && !jsonObj.get("restartPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); + } + if ((jsonObj.get("runtimeClassName") != null && !jsonObj.get("runtimeClassName").isJsonNull()) && !jsonObj.get("runtimeClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `runtimeClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("runtimeClassName").toString())); + } + if ((jsonObj.get("schedulerName") != null && !jsonObj.get("schedulerName").isJsonNull()) && !jsonObj.get("schedulerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `schedulerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("schedulerName").toString())); + } + if (jsonObj.get("schedulingGates") != null && !jsonObj.get("schedulingGates").isJsonNull()) { + JsonArray jsonArrayschedulingGates = jsonObj.getAsJsonArray("schedulingGates"); + if (jsonArrayschedulingGates != null) { + // ensure the json data is an array + if (!jsonObj.get("schedulingGates").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `schedulingGates` to be an array in the JSON string but got `%s`", jsonObj.get("schedulingGates").toString())); + } + + // validate the optional field `schedulingGates` (array) + for (int i = 0; i < jsonArrayschedulingGates.size(); i++) { + V1PodSchedulingGate.validateJsonObject(jsonArrayschedulingGates.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `securityContext` + if (jsonObj.get("securityContext") != null && !jsonObj.get("securityContext").isJsonNull()) { + V1PodSecurityContext.validateJsonObject(jsonObj.getAsJsonObject("securityContext")); + } + if ((jsonObj.get("serviceAccount") != null && !jsonObj.get("serviceAccount").isJsonNull()) && !jsonObj.get("serviceAccount").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `serviceAccount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceAccount").toString())); + } + if ((jsonObj.get("serviceAccountName") != null && !jsonObj.get("serviceAccountName").isJsonNull()) && !jsonObj.get("serviceAccountName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `serviceAccountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceAccountName").toString())); + } + if ((jsonObj.get("subdomain") != null && !jsonObj.get("subdomain").isJsonNull()) && !jsonObj.get("subdomain").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subdomain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subdomain").toString())); + } + if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { + JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); + if (jsonArraytolerations != null) { + // ensure the json data is an array + if (!jsonObj.get("tolerations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tolerations` to be an array in the JSON string but got `%s`", jsonObj.get("tolerations").toString())); + } + + // validate the optional field `tolerations` (array) + for (int i = 0; i < jsonArraytolerations.size(); i++) { + V1Toleration.validateJsonObject(jsonArraytolerations.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("topologySpreadConstraints") != null && !jsonObj.get("topologySpreadConstraints").isJsonNull()) { + JsonArray jsonArraytopologySpreadConstraints = jsonObj.getAsJsonArray("topologySpreadConstraints"); + if (jsonArraytopologySpreadConstraints != null) { + // ensure the json data is an array + if (!jsonObj.get("topologySpreadConstraints").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `topologySpreadConstraints` to be an array in the JSON string but got `%s`", jsonObj.get("topologySpreadConstraints").toString())); + } + + // validate the optional field `topologySpreadConstraints` (array) + for (int i = 0; i < jsonArraytopologySpreadConstraints.size(); i++) { + V1TopologySpreadConstraint.validateJsonObject(jsonArraytopologySpreadConstraints.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("volumes") != null && !jsonObj.get("volumes").isJsonNull()) { + JsonArray jsonArrayvolumes = jsonObj.getAsJsonArray("volumes"); + if (jsonArrayvolumes != null) { + // ensure the json data is an array + if (!jsonObj.get("volumes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumes` to be an array in the JSON string but got `%s`", jsonObj.get("volumes").toString())); + } + + // validate the optional field `volumes` (array) + for (int i = 0; i < jsonArrayvolumes.size(); i++) { + V1Volume.validateJsonObject(jsonArrayvolumes.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodSpec + * @throws IOException if the JSON string is invalid with respect to V1PodSpec + */ + public static V1PodSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodSpec.class); + } + + /** + * Convert an instance of V1PodSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java index 6ea0025a95..12faa1a612 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java @@ -31,6 +31,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -39,15 +64,15 @@ public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_CONTAINER_STATUSES = "containerStatuses"; @SerializedName(SERIALIZED_NAME_CONTAINER_STATUSES) - private List containerStatuses = null; + private List containerStatuses; public static final String SERIALIZED_NAME_EPHEMERAL_CONTAINER_STATUSES = "ephemeralContainerStatuses"; @SerializedName(SERIALIZED_NAME_EPHEMERAL_CONTAINER_STATUSES) - private List ephemeralContainerStatuses = null; + private List ephemeralContainerStatuses; public static final String SERIALIZED_NAME_HOST_I_P = "hostIP"; @SerializedName(SERIALIZED_NAME_HOST_I_P) @@ -59,7 +84,7 @@ public class V1PodStatus { public static final String SERIALIZED_NAME_INIT_CONTAINER_STATUSES = "initContainerStatuses"; @SerializedName(SERIALIZED_NAME_INIT_CONTAINER_STATUSES) - private List initContainerStatuses = null; + private List initContainerStatuses; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -79,7 +104,7 @@ public class V1PodStatus { public static final String SERIALIZED_NAME_POD_I_PS = "podIPs"; @SerializedName(SERIALIZED_NAME_POD_I_PS) - private List podIPs = null; + private List podIPs; public static final String SERIALIZED_NAME_QOS_CLASS = "qosClass"; @SerializedName(SERIALIZED_NAME_QOS_CLASS) @@ -101,6 +126,8 @@ public class V1PodStatus { @SerializedName(SERIALIZED_NAME_START_TIME) private OffsetDateTime startTime; + public V1PodStatus() { + } public V1PodStatus conditions(List conditions) { @@ -120,9 +147,7 @@ public V1PodStatus addConditionsItem(V1PodCondition conditionsItem) { * Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -151,9 +176,7 @@ public V1PodStatus addContainerStatusesItem(V1ContainerStatus containerStatusesI * 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 * @return containerStatuses **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getContainerStatuses() { return containerStatuses; } @@ -182,9 +205,7 @@ public V1PodStatus addEphemeralContainerStatusesItem(V1ContainerStatus ephemeral * Status for any ephemeral containers that have run in this pod. * @return ephemeralContainerStatuses **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Status for any ephemeral containers that have run in this pod.") - + @jakarta.annotation.Nullable public List getEphemeralContainerStatuses() { return ephemeralContainerStatuses; } @@ -267,9 +288,7 @@ public V1PodStatus addInitContainerStatusesItem(V1ContainerStatus initContainerS * 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 * @return initContainerStatuses **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getInitContainerStatuses() { return initContainerStatuses; } @@ -290,9 +309,7 @@ public V1PodStatus message(String message) { * A human readable message indicating details about why the pod is in this condition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable message indicating details about why the pod is in this condition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -313,9 +330,7 @@ public V1PodStatus nominatedNodeName(String nominatedNodeName) { * 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. * @return nominatedNodeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getNominatedNodeName() { return nominatedNodeName; } @@ -336,9 +351,7 @@ public V1PodStatus phase(String phase) { * 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 * @return phase **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getPhase() { return phase; } @@ -390,9 +403,7 @@ public V1PodStatus addPodIPsItem(V1PodIP podIPsItem) { * 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. * @return podIPs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPodIPs() { return podIPs; } @@ -413,9 +424,7 @@ public V1PodStatus qosClass(String qosClass) { * 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 * @return qosClass **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getQosClass() { return qosClass; } @@ -436,9 +445,7 @@ public V1PodStatus reason(String reason) { * A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -459,9 +466,7 @@ public V1PodStatus resize(String resize) { * 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\" * @return resize **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"") - + @jakarta.annotation.Nullable public String getResize() { return resize; } @@ -513,9 +518,7 @@ public V1PodStatus startTime(OffsetDateTime startTime) { * 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. * @return startTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } @@ -526,8 +529,9 @@ public void setStartTime(OffsetDateTime startTime) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -558,7 +562,6 @@ public int hashCode() { return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -587,11 +590,231 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + openapiFields.add("containerStatuses"); + openapiFields.add("ephemeralContainerStatuses"); + openapiFields.add("hostIP"); + openapiFields.add("hostIPs"); + openapiFields.add("initContainerStatuses"); + openapiFields.add("message"); + openapiFields.add("nominatedNodeName"); + openapiFields.add("phase"); + openapiFields.add("podIP"); + openapiFields.add("podIPs"); + openapiFields.add("qosClass"); + openapiFields.add("reason"); + openapiFields.add("resize"); + openapiFields.add("resourceClaimStatuses"); + openapiFields.add("startTime"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodStatus is not found in the empty JSON string", V1PodStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1PodCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("containerStatuses") != null && !jsonObj.get("containerStatuses").isJsonNull()) { + JsonArray jsonArraycontainerStatuses = jsonObj.getAsJsonArray("containerStatuses"); + if (jsonArraycontainerStatuses != null) { + // ensure the json data is an array + if (!jsonObj.get("containerStatuses").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `containerStatuses` to be an array in the JSON string but got `%s`", jsonObj.get("containerStatuses").toString())); + } + + // validate the optional field `containerStatuses` (array) + for (int i = 0; i < jsonArraycontainerStatuses.size(); i++) { + V1ContainerStatus.validateJsonObject(jsonArraycontainerStatuses.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("ephemeralContainerStatuses") != null && !jsonObj.get("ephemeralContainerStatuses").isJsonNull()) { + JsonArray jsonArrayephemeralContainerStatuses = jsonObj.getAsJsonArray("ephemeralContainerStatuses"); + if (jsonArrayephemeralContainerStatuses != null) { + // ensure the json data is an array + if (!jsonObj.get("ephemeralContainerStatuses").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ephemeralContainerStatuses` to be an array in the JSON string but got `%s`", jsonObj.get("ephemeralContainerStatuses").toString())); + } + + // validate the optional field `ephemeralContainerStatuses` (array) + for (int i = 0; i < jsonArrayephemeralContainerStatuses.size(); i++) { + V1ContainerStatus.validateJsonObject(jsonArrayephemeralContainerStatuses.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("hostIP") != null && !jsonObj.get("hostIP").isJsonNull()) && !jsonObj.get("hostIP").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `hostIP` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostIP").toString())); + } + if (jsonObj.get("hostIPs") != null && !jsonObj.get("hostIPs").isJsonNull()) { + JsonArray jsonArrayhostIPs = jsonObj.getAsJsonArray("hostIPs"); + if (jsonArrayhostIPs != null) { + // ensure the json data is an array + if (!jsonObj.get("hostIPs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `hostIPs` to be an array in the JSON string but got `%s`", jsonObj.get("hostIPs").toString())); + } + + // validate the optional field `hostIPs` (array) + for (int i = 0; i < jsonArrayhostIPs.size(); i++) { + V1HostIP.validateJsonObject(jsonArrayhostIPs.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("initContainerStatuses") != null && !jsonObj.get("initContainerStatuses").isJsonNull()) { + JsonArray jsonArrayinitContainerStatuses = jsonObj.getAsJsonArray("initContainerStatuses"); + if (jsonArrayinitContainerStatuses != null) { + // ensure the json data is an array + if (!jsonObj.get("initContainerStatuses").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `initContainerStatuses` to be an array in the JSON string but got `%s`", jsonObj.get("initContainerStatuses").toString())); + } + + // validate the optional field `initContainerStatuses` (array) + for (int i = 0; i < jsonArrayinitContainerStatuses.size(); i++) { + V1ContainerStatus.validateJsonObject(jsonArrayinitContainerStatuses.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("nominatedNodeName") != null && !jsonObj.get("nominatedNodeName").isJsonNull()) && !jsonObj.get("nominatedNodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nominatedNodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nominatedNodeName").toString())); + } + if ((jsonObj.get("phase") != null && !jsonObj.get("phase").isJsonNull()) && !jsonObj.get("phase").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `phase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phase").toString())); + } + if ((jsonObj.get("podIP") != null && !jsonObj.get("podIP").isJsonNull()) && !jsonObj.get("podIP").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `podIP` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podIP").toString())); + } + if (jsonObj.get("podIPs") != null && !jsonObj.get("podIPs").isJsonNull()) { + JsonArray jsonArraypodIPs = jsonObj.getAsJsonArray("podIPs"); + if (jsonArraypodIPs != null) { + // ensure the json data is an array + if (!jsonObj.get("podIPs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `podIPs` to be an array in the JSON string but got `%s`", jsonObj.get("podIPs").toString())); + } + + // validate the optional field `podIPs` (array) + for (int i = 0; i < jsonArraypodIPs.size(); i++) { + V1PodIP.validateJsonObject(jsonArraypodIPs.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("qosClass") != null && !jsonObj.get("qosClass").isJsonNull()) && !jsonObj.get("qosClass").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `qosClass` to be a primitive type in the JSON string but got `%s`", jsonObj.get("qosClass").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if ((jsonObj.get("resize") != null && !jsonObj.get("resize").isJsonNull()) && !jsonObj.get("resize").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resize").toString())); + } + if (jsonObj.get("resourceClaimStatuses") != null && !jsonObj.get("resourceClaimStatuses").isJsonNull()) { + JsonArray jsonArrayresourceClaimStatuses = jsonObj.getAsJsonArray("resourceClaimStatuses"); + if (jsonArrayresourceClaimStatuses != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaimStatuses").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceClaimStatuses` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaimStatuses").toString())); + } + + // validate the optional field `resourceClaimStatuses` (array) + for (int i = 0; i < jsonArrayresourceClaimStatuses.size(); i++) { + V1PodResourceClaimStatus.validateJsonObject(jsonArrayresourceClaimStatuses.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodStatus + * @throws IOException if the JSON string is invalid with respect to V1PodStatus + */ + public static V1PodStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodStatus.class); + } + + /** + * Convert an instance of V1PodStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java index 5e65bd99e4..050f023302 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodTemplate describes a template for creating copies of a predefined pod. */ @@ -47,6 +70,8 @@ public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObje @SerializedName(SERIALIZED_NAME_TEMPLATE) private V1PodTemplateSpec template; + public V1PodTemplate() { + } public V1PodTemplate apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1PodTemplate apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1PodTemplate kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1PodTemplate metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1PodTemplate template(V1PodTemplateSpec template) { * Get template * @return template **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodTemplateSpec getTemplate() { return template; } @@ -140,8 +157,9 @@ public void setTemplate(V1PodTemplateSpec template) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, template); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("template"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodTemplate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodTemplate is not found in the empty JSON string", V1PodTemplate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodTemplate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `template` + if (jsonObj.get("template") != null && !jsonObj.get("template").isJsonNull()) { + V1PodTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("template")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodTemplate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodTemplate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodTemplate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodTemplate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodTemplate + * @throws IOException if the JSON string is invalid with respect to V1PodTemplate + */ + public static V1PodTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodTemplate.class); + } + + /** + * Convert an instance of V1PodTemplate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java index ff1c42a505..fa0cbe0ff8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PodTemplate; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodTemplateList is a list of PodTemplates. */ @@ -49,6 +72,8 @@ public class V1PodTemplateList implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1PodTemplateList() { + } public V1PodTemplateList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1PodTemplateList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1PodTemplateList items(List items) { } public V1PodTemplateList addItemsItem(V1PodTemplate itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1PodTemplateList addItemsItem(V1PodTemplate itemsItem) { * List of pod templates * @return items **/ - @ApiModelProperty(required = true, value = "List of pod templates") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1PodTemplateList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1PodTemplateList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodTemplateList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodTemplateList is not found in the empty JSON string", V1PodTemplateList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodTemplateList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodTemplateList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodTemplateList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1PodTemplate.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodTemplateList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodTemplateList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodTemplateList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodTemplateList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodTemplateList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodTemplateList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodTemplateList + * @throws IOException if the JSON string is invalid with respect to V1PodTemplateList + */ + public static V1PodTemplateList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodTemplateList.class); + } + + /** + * Convert an instance of V1PodTemplateList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java index 4f63bfc2db..18effb5afb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PodSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodTemplateSpec describes the data a pod should have when created from a template */ @@ -39,6 +62,8 @@ public class V1PodTemplateSpec { @SerializedName(SERIALIZED_NAME_SPEC) private V1PodSpec spec; + public V1PodTemplateSpec() { + } public V1PodTemplateSpec metadata(V1ObjectMeta metadata) { @@ -50,9 +75,7 @@ public V1PodTemplateSpec metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -73,9 +96,7 @@ public V1PodTemplateSpec spec(V1PodSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodSpec getSpec() { return spec; } @@ -86,8 +107,9 @@ public void setSpec(V1PodSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -104,7 +126,6 @@ public int hashCode() { return Objects.hash(metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -119,11 +140,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PodTemplateSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PodTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodTemplateSpec is not found in the empty JSON string", V1PodTemplateSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PodTemplateSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodTemplateSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1PodSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodTemplateSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodTemplateSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodTemplateSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodTemplateSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodTemplateSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodTemplateSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodTemplateSpec + * @throws IOException if the JSON string is invalid with respect to V1PodTemplateSpec + */ + public static V1PodTemplateSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodTemplateSpec.class); + } + + /** + * Convert an instance of V1PodTemplateSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java index e78704222b..a16cf19e27 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -33,24 +56,26 @@ public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) - private List apiGroups = null; + private List apiGroups; public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) - private List nonResourceURLs = null; + private List nonResourceURLs; public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) - private List resourceNames = null; + private List resourceNames; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) - private List resources = null; + private List resources; public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList<>(); + public V1PolicyRule() { + } public V1PolicyRule apiGroups(List apiGroups) { @@ -70,9 +95,7 @@ public V1PolicyRule addApiGroupsItem(String apiGroupsItem) { * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups. * @return apiGroups **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.") - + @jakarta.annotation.Nullable public List getApiGroups() { return apiGroups; } @@ -101,9 +124,7 @@ public V1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path 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. * @return nonResourceURLs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path 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.") - + @jakarta.annotation.Nullable public List getNonResourceURLs() { return nonResourceURLs; } @@ -132,9 +153,7 @@ public V1PolicyRule addResourceNamesItem(String resourceNamesItem) { * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") - + @jakarta.annotation.Nullable public List getResourceNames() { return resourceNames; } @@ -163,9 +182,7 @@ public V1PolicyRule addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. '*' represents all resources. * @return resources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. '*' represents all resources.") - + @jakarta.annotation.Nullable public List getResources() { return resources; } @@ -183,6 +200,9 @@ public V1PolicyRule verbs(List verbs) { } public V1PolicyRule addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } this.verbs.add(verbsItem); return this; } @@ -191,8 +211,7 @@ public V1PolicyRule addVerbsItem(String verbsItem) { * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. * @return verbs **/ - @ApiModelProperty(required = true, value = "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.") - + @jakarta.annotation.Nonnull public List getVerbs() { return verbs; } @@ -203,8 +222,9 @@ public void setVerbs(List verbs) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -224,7 +244,6 @@ public int hashCode() { return Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -242,11 +261,128 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroups"); + openapiFields.add("nonResourceURLs"); + openapiFields.add("resourceNames"); + openapiFields.add("resources"); + openapiFields.add("verbs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("verbs"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PolicyRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PolicyRule is not found in the empty JSON string", V1PolicyRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PolicyRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PolicyRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PolicyRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroups` to be an array in the JSON string but got `%s`", jsonObj.get("apiGroups").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("nonResourceURLs") != null && !jsonObj.get("nonResourceURLs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nonResourceURLs` to be an array in the JSON string but got `%s`", jsonObj.get("nonResourceURLs").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("resourceNames") != null && !jsonObj.get("resourceNames").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceNames` to be an array in the JSON string but got `%s`", jsonObj.get("resourceNames").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PolicyRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PolicyRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PolicyRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PolicyRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PolicyRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PolicyRule + * @throws IOException if the JSON string is invalid with respect to V1PolicyRule + */ + public static V1PolicyRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PolicyRule.class); + } + + /** + * Convert an instance of V1PolicyRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java index 1cc865a10a..8bdf5bcf31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * V1PortStatus */ @@ -40,6 +63,8 @@ public class V1PortStatus { @SerializedName(SERIALIZED_NAME_PROTOCOL) private String protocol; + public V1PortStatus() { + } public V1PortStatus error(String error) { @@ -51,9 +76,7 @@ public V1PortStatus error(String error) { * 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. * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getError() { return error; } @@ -74,8 +97,7 @@ public V1PortStatus port(Integer port) { * Port is the port number of the service port of which status is recorded here * @return port **/ - @ApiModelProperty(required = true, value = "Port is the port number of the service port of which status is recorded here") - + @jakarta.annotation.Nonnull public Integer getPort() { return port; } @@ -96,8 +118,7 @@ public V1PortStatus protocol(String protocol) { * Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\" * @return protocol **/ - @ApiModelProperty(required = true, value = "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"") - + @jakarta.annotation.Nonnull public String getProtocol() { return protocol; } @@ -108,8 +129,9 @@ public void setProtocol(String protocol) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -127,7 +149,6 @@ public int hashCode() { return Objects.hash(error, port, protocol); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -143,11 +164,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("error"); + openapiFields.add("port"); + openapiFields.add("protocol"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("port"); + openapiRequiredFields.add("protocol"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PortStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PortStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PortStatus is not found in the empty JSON string", V1PortStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PortStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PortStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PortStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); + } + if (!jsonObj.get("protocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PortStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PortStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PortStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PortStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PortStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PortStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PortStatus + * @throws IOException if the JSON string is invalid with respect to V1PortStatus + */ + public static V1PortStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PortStatus.class); + } + + /** + * Convert an instance of V1PortStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java index 044613c3e1..4a81b1653f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PortworxVolumeSource represents a Portworx volume resource. */ @@ -41,6 +64,8 @@ public class V1PortworxVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_I_D) private String volumeID; + public V1PortworxVolumeSource() { + } public V1PortworxVolumeSource fsType(String fsType) { @@ -52,9 +77,7 @@ public V1PortworxVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -75,9 +98,7 @@ public V1PortworxVolumeSource readOnly(Boolean readOnly) { * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -98,8 +119,7 @@ public V1PortworxVolumeSource volumeID(String volumeID) { * volumeID uniquely identifies a Portworx volume * @return volumeID **/ - @ApiModelProperty(required = true, value = "volumeID uniquely identifies a Portworx volume") - + @jakarta.annotation.Nonnull public String getVolumeID() { return volumeID; } @@ -110,8 +130,9 @@ public void setVolumeID(String volumeID) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -129,7 +150,6 @@ public int hashCode() { return Objects.hash(fsType, readOnly, volumeID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -145,11 +165,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("readOnly"); + openapiFields.add("volumeID"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("volumeID"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PortworxVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PortworxVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PortworxVolumeSource is not found in the empty JSON string", V1PortworxVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PortworxVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PortworxVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PortworxVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("volumeID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeID").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PortworxVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PortworxVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PortworxVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PortworxVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PortworxVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PortworxVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PortworxVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1PortworxVolumeSource + */ + public static V1PortworxVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PortworxVolumeSource.class); + } + + /** + * Convert an instance of V1PortworxVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java index 9193df86d3..c581fc2c18 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. */ @@ -37,6 +60,8 @@ public class V1Preconditions { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1Preconditions() { + } public V1Preconditions resourceVersion(String resourceVersion) { @@ -48,9 +73,7 @@ public V1Preconditions resourceVersion(String resourceVersion) { * Specifies the target ResourceVersion * @return resourceVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Specifies the target ResourceVersion") - + @jakarta.annotation.Nullable public String getResourceVersion() { return resourceVersion; } @@ -71,9 +94,7 @@ public V1Preconditions uid(String uid) { * Specifies the target UID. * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Specifies the target UID.") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -84,8 +105,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(resourceVersion, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("resourceVersion"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Preconditions + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Preconditions.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Preconditions is not found in the empty JSON string", V1Preconditions.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Preconditions.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Preconditions` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("resourceVersion") != null && !jsonObj.get("resourceVersion").isJsonNull()) && !jsonObj.get("resourceVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceVersion").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Preconditions.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Preconditions' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Preconditions.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Preconditions value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Preconditions read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Preconditions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Preconditions + * @throws IOException if the JSON string is invalid with respect to V1Preconditions + */ + public static V1Preconditions fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Preconditions.class); + } + + /** + * Convert an instance of V1Preconditions to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java index 5a94f03c3e..dc16f0aa46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelectorTerm; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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). */ @@ -38,6 +61,8 @@ public class V1PreferredSchedulingTerm { @SerializedName(SERIALIZED_NAME_WEIGHT) private Integer weight; + public V1PreferredSchedulingTerm() { + } public V1PreferredSchedulingTerm preference(V1NodeSelectorTerm preference) { @@ -49,8 +74,7 @@ public V1PreferredSchedulingTerm preference(V1NodeSelectorTerm preference) { * Get preference * @return preference **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1NodeSelectorTerm getPreference() { return preference; } @@ -71,8 +95,7 @@ public V1PreferredSchedulingTerm weight(Integer weight) { * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. * @return weight **/ - @ApiModelProperty(required = true, value = "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.") - + @jakarta.annotation.Nonnull public Integer getWeight() { return weight; } @@ -83,8 +106,9 @@ public void setWeight(Integer weight) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +125,6 @@ public int hashCode() { return Objects.hash(preference, weight); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +139,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("preference"); + openapiFields.add("weight"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("preference"); + openapiRequiredFields.add("weight"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PreferredSchedulingTerm + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PreferredSchedulingTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PreferredSchedulingTerm is not found in the empty JSON string", V1PreferredSchedulingTerm.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PreferredSchedulingTerm.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PreferredSchedulingTerm` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PreferredSchedulingTerm.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `preference` + V1NodeSelectorTerm.validateJsonObject(jsonObj.getAsJsonObject("preference")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PreferredSchedulingTerm.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PreferredSchedulingTerm' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PreferredSchedulingTerm.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PreferredSchedulingTerm value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PreferredSchedulingTerm read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PreferredSchedulingTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PreferredSchedulingTerm + * @throws IOException if the JSON string is invalid with respect to V1PreferredSchedulingTerm + */ + public static V1PreferredSchedulingTerm fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PreferredSchedulingTerm.class); + } + + /** + * Convert an instance of V1PreferredSchedulingTerm to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java index 7911af8d3f..362541d199 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @@ -58,6 +81,8 @@ public class V1PriorityClass implements io.kubernetes.client.common.KubernetesOb @SerializedName(SERIALIZED_NAME_VALUE) private Integer value; + public V1PriorityClass() { + } public V1PriorityClass apiVersion(String apiVersion) { @@ -69,9 +94,7 @@ public V1PriorityClass apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -92,9 +115,7 @@ public V1PriorityClass description(String description) { * description is an arbitrary string that usually provides guidelines on when this priority class should be used. * @return description **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "description is an arbitrary string that usually provides guidelines on when this priority class should be used.") - + @jakarta.annotation.Nullable public String getDescription() { return description; } @@ -115,9 +136,7 @@ public V1PriorityClass globalDefault(Boolean globalDefault) { * 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. * @return globalDefault **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getGlobalDefault() { return globalDefault; } @@ -138,9 +157,7 @@ public V1PriorityClass kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -161,9 +178,7 @@ public V1PriorityClass metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -184,9 +199,7 @@ public V1PriorityClass preemptionPolicy(String preemptionPolicy) { * preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. * @return preemptionPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.") - + @jakarta.annotation.Nullable public String getPreemptionPolicy() { return preemptionPolicy; } @@ -207,8 +220,7 @@ public V1PriorityClass value(Integer value) { * value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. * @return value **/ - @ApiModelProperty(required = true, value = "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.") - + @jakarta.annotation.Nonnull public Integer getValue() { return value; } @@ -219,8 +231,9 @@ public void setValue(Integer value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -242,7 +255,6 @@ public int hashCode() { return Objects.hash(apiVersion, description, globalDefault, kind, metadata, preemptionPolicy, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -262,11 +274,124 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("description"); + openapiFields.add("globalDefault"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("preemptionPolicy"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("value"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PriorityClass + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PriorityClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PriorityClass is not found in the empty JSON string", V1PriorityClass.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PriorityClass.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PriorityClass` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PriorityClass.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PriorityClass.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PriorityClass' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PriorityClass.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PriorityClass value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PriorityClass read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PriorityClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityClass + * @throws IOException if the JSON string is invalid with respect to V1PriorityClass + */ + public static V1PriorityClass fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PriorityClass.class); + } + + /** + * Convert an instance of V1PriorityClass to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java index 762c423244..d663f815b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PriorityClass; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityClassList is a collection of priority classes. */ @@ -49,6 +72,8 @@ public class V1PriorityClassList implements io.kubernetes.client.common.Kubernet @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1PriorityClassList() { + } public V1PriorityClassList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1PriorityClassList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1PriorityClassList items(List items) { } public V1PriorityClassList addItemsItem(V1PriorityClass itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1PriorityClassList addItemsItem(V1PriorityClass itemsItem) { * items is the list of PriorityClasses * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of PriorityClasses") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1PriorityClassList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1PriorityClassList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1PriorityClassList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1PriorityClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PriorityClassList is not found in the empty JSON string", V1PriorityClassList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1PriorityClassList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PriorityClassList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PriorityClassList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1PriorityClass.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PriorityClassList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PriorityClassList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PriorityClassList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PriorityClassList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PriorityClassList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PriorityClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PriorityClassList + * @throws IOException if the JSON string is invalid with respect to V1PriorityClassList + */ + public static V1PriorityClassList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PriorityClassList.class); + } + + /** + * Convert an instance of V1PriorityClassList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java index 26c8328923..6d8980b7cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java @@ -23,10 +23,33 @@ import io.kubernetes.client.openapi.models.V1GRPCAction; import io.kubernetes.client.openapi.models.V1HTTPGetAction; import io.kubernetes.client.openapi.models.V1TCPSocketAction; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ @@ -73,6 +96,8 @@ public class V1Probe { @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) private Integer timeoutSeconds; + public V1Probe() { + } public V1Probe exec(V1ExecAction exec) { @@ -84,9 +109,7 @@ public V1Probe exec(V1ExecAction exec) { * Get exec * @return exec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ExecAction getExec() { return exec; } @@ -107,9 +130,7 @@ public V1Probe failureThreshold(Integer failureThreshold) { * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. * @return failureThreshold **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.") - + @jakarta.annotation.Nullable public Integer getFailureThreshold() { return failureThreshold; } @@ -130,9 +151,7 @@ public V1Probe grpc(V1GRPCAction grpc) { * Get grpc * @return grpc **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1GRPCAction getGrpc() { return grpc; } @@ -153,9 +172,7 @@ public V1Probe httpGet(V1HTTPGetAction httpGet) { * Get httpGet * @return httpGet **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1HTTPGetAction getHttpGet() { return httpGet; } @@ -176,9 +193,7 @@ public V1Probe initialDelaySeconds(Integer initialDelaySeconds) { * 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 * @return initialDelaySeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Integer getInitialDelaySeconds() { return initialDelaySeconds; } @@ -199,9 +214,7 @@ public V1Probe periodSeconds(Integer periodSeconds) { * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. * @return periodSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.") - + @jakarta.annotation.Nullable public Integer getPeriodSeconds() { return periodSeconds; } @@ -222,9 +235,7 @@ public V1Probe successThreshold(Integer successThreshold) { * 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. * @return successThreshold **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getSuccessThreshold() { return successThreshold; } @@ -245,9 +256,7 @@ public V1Probe tcpSocket(V1TCPSocketAction tcpSocket) { * Get tcpSocket * @return tcpSocket **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1TCPSocketAction getTcpSocket() { return tcpSocket; } @@ -268,9 +277,7 @@ public V1Probe terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) * 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. * @return terminationGracePeriodSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds; } @@ -291,9 +298,7 @@ public V1Probe timeoutSeconds(Integer timeoutSeconds) { * 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 * @return timeoutSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Integer getTimeoutSeconds() { return timeoutSeconds; } @@ -304,8 +309,9 @@ public void setTimeoutSeconds(Integer timeoutSeconds) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -330,7 +336,6 @@ public int hashCode() { return Objects.hash(exec, failureThreshold, grpc, httpGet, initialDelaySeconds, periodSeconds, successThreshold, tcpSocket, terminationGracePeriodSeconds, timeoutSeconds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -353,11 +358,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("exec"); + openapiFields.add("failureThreshold"); + openapiFields.add("grpc"); + openapiFields.add("httpGet"); + openapiFields.add("initialDelaySeconds"); + openapiFields.add("periodSeconds"); + openapiFields.add("successThreshold"); + openapiFields.add("tcpSocket"); + openapiFields.add("terminationGracePeriodSeconds"); + openapiFields.add("timeoutSeconds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Probe + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Probe.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Probe is not found in the empty JSON string", V1Probe.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Probe.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Probe` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `exec` + if (jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonNull()) { + V1ExecAction.validateJsonObject(jsonObj.getAsJsonObject("exec")); + } + // validate the optional field `grpc` + if (jsonObj.get("grpc") != null && !jsonObj.get("grpc").isJsonNull()) { + V1GRPCAction.validateJsonObject(jsonObj.getAsJsonObject("grpc")); + } + // validate the optional field `httpGet` + if (jsonObj.get("httpGet") != null && !jsonObj.get("httpGet").isJsonNull()) { + V1HTTPGetAction.validateJsonObject(jsonObj.getAsJsonObject("httpGet")); + } + // validate the optional field `tcpSocket` + if (jsonObj.get("tcpSocket") != null && !jsonObj.get("tcpSocket").isJsonNull()) { + V1TCPSocketAction.validateJsonObject(jsonObj.getAsJsonObject("tcpSocket")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Probe.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Probe' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Probe.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Probe value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Probe read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Probe given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Probe + * @throws IOException if the JSON string is invalid with respect to V1Probe + */ + public static V1Probe fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Probe.class); + } + + /** + * Convert an instance of V1Probe to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java index 9a840fdf04..d145b7056c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1VolumeProjection; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a projected volume source */ @@ -38,8 +61,10 @@ public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_SOURCES = "sources"; @SerializedName(SERIALIZED_NAME_SOURCES) - private List sources = null; + private List sources; + public V1ProjectedVolumeSource() { + } public V1ProjectedVolumeSource defaultMode(Integer defaultMode) { @@ -51,9 +76,7 @@ public V1ProjectedVolumeSource defaultMode(Integer defaultMode) { * 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. * @return defaultMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getDefaultMode() { return defaultMode; } @@ -82,9 +105,7 @@ public V1ProjectedVolumeSource addSourcesItem(V1VolumeProjection sourcesItem) { * sources is the list of volume projections * @return sources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "sources is the list of volume projections") - + @jakarta.annotation.Nullable public List getSources() { return sources; } @@ -95,8 +116,9 @@ public void setSources(List sources) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -113,7 +135,6 @@ public int hashCode() { return Objects.hash(defaultMode, sources); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -128,11 +149,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("defaultMode"); + openapiFields.add("sources"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ProjectedVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ProjectedVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ProjectedVolumeSource is not found in the empty JSON string", V1ProjectedVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ProjectedVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ProjectedVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("sources") != null && !jsonObj.get("sources").isJsonNull()) { + JsonArray jsonArraysources = jsonObj.getAsJsonArray("sources"); + if (jsonArraysources != null) { + // ensure the json data is an array + if (!jsonObj.get("sources").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `sources` to be an array in the JSON string but got `%s`", jsonObj.get("sources").toString())); + } + + // validate the optional field `sources` (array) + for (int i = 0; i < jsonArraysources.size(); i++) { + V1VolumeProjection.validateJsonObject(jsonArraysources.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ProjectedVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ProjectedVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ProjectedVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ProjectedVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ProjectedVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ProjectedVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ProjectedVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ProjectedVolumeSource + */ + public static V1ProjectedVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ProjectedVolumeSource.class); + } + + /** + * Convert an instance of V1ProjectedVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java index 31515ef01b..f601ec82c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. */ @@ -53,6 +76,8 @@ public class V1QuobyteVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME) private String volume; + public V1QuobyteVolumeSource() { + } public V1QuobyteVolumeSource group(String group) { @@ -64,9 +89,7 @@ public V1QuobyteVolumeSource group(String group) { * group to map volume access to Default is no group * @return group **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "group to map volume access to Default is no group") - + @jakarta.annotation.Nullable public String getGroup() { return group; } @@ -87,9 +110,7 @@ public V1QuobyteVolumeSource readOnly(Boolean readOnly) { * readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -110,8 +131,7 @@ public V1QuobyteVolumeSource registry(String registry) { * 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 * @return registry **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getRegistry() { return registry; } @@ -132,9 +152,7 @@ public V1QuobyteVolumeSource tenant(String tenant) { * tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin * @return tenant **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin") - + @jakarta.annotation.Nullable public String getTenant() { return tenant; } @@ -155,9 +173,7 @@ public V1QuobyteVolumeSource user(String user) { * user to map volume access to Defaults to serivceaccount user * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "user to map volume access to Defaults to serivceaccount user") - + @jakarta.annotation.Nullable public String getUser() { return user; } @@ -178,8 +194,7 @@ public V1QuobyteVolumeSource volume(String volume) { * volume is a string that references an already created Quobyte volume by name. * @return volume **/ - @ApiModelProperty(required = true, value = "volume is a string that references an already created Quobyte volume by name.") - + @jakarta.annotation.Nonnull public String getVolume() { return volume; } @@ -190,8 +205,9 @@ public void setVolume(String volume) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -212,7 +228,6 @@ public int hashCode() { return Objects.hash(group, readOnly, registry, tenant, user, volume); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -231,11 +246,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("group"); + openapiFields.add("readOnly"); + openapiFields.add("registry"); + openapiFields.add("tenant"); + openapiFields.add("user"); + openapiFields.add("volume"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("registry"); + openapiRequiredFields.add("volume"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1QuobyteVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1QuobyteVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1QuobyteVolumeSource is not found in the empty JSON string", V1QuobyteVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1QuobyteVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1QuobyteVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1QuobyteVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + if (!jsonObj.get("registry").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `registry` to be a primitive type in the JSON string but got `%s`", jsonObj.get("registry").toString())); + } + if ((jsonObj.get("tenant") != null && !jsonObj.get("tenant").isJsonNull()) && !jsonObj.get("tenant").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `tenant` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenant").toString())); + } + if ((jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + if (!jsonObj.get("volume").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volume` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volume").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1QuobyteVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1QuobyteVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1QuobyteVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1QuobyteVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1QuobyteVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1QuobyteVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1QuobyteVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1QuobyteVolumeSource + */ + public static V1QuobyteVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1QuobyteVolumeSource.class); + } + + /** + * Convert an instance of V1QuobyteVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java index 37952259e6..f9e8a60e0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @@ -64,6 +87,8 @@ public class V1RBDPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_USER) private String user; + public V1RBDPersistentVolumeSource() { + } public V1RBDPersistentVolumeSource fsType(String fsType) { @@ -75,9 +100,7 @@ public V1RBDPersistentVolumeSource fsType(String fsType) { * 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 * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -98,8 +121,7 @@ public V1RBDPersistentVolumeSource image(String image) { * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return image **/ - @ApiModelProperty(required = true, value = "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") - + @jakarta.annotation.Nonnull public String getImage() { return image; } @@ -120,9 +142,7 @@ public V1RBDPersistentVolumeSource keyring(String keyring) { * 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 * @return keyring **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getKeyring() { return keyring; } @@ -140,6 +160,9 @@ public V1RBDPersistentVolumeSource monitors(List monitors) { } public V1RBDPersistentVolumeSource addMonitorsItem(String monitorsItem) { + if (this.monitors == null) { + this.monitors = new ArrayList<>(); + } this.monitors.add(monitorsItem); return this; } @@ -148,8 +171,7 @@ public V1RBDPersistentVolumeSource addMonitorsItem(String monitorsItem) { * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return monitors **/ - @ApiModelProperty(required = true, value = "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") - + @jakarta.annotation.Nonnull public List getMonitors() { return monitors; } @@ -170,9 +192,7 @@ public V1RBDPersistentVolumeSource pool(String pool) { * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return pool **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") - + @jakarta.annotation.Nullable public String getPool() { return pool; } @@ -193,9 +213,7 @@ public V1RBDPersistentVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -216,9 +234,7 @@ public V1RBDPersistentVolumeSource secretRef(V1SecretReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretReference getSecretRef() { return secretRef; } @@ -239,9 +255,7 @@ public V1RBDPersistentVolumeSource user(String user) { * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") - + @jakarta.annotation.Nullable public String getUser() { return user; } @@ -252,8 +266,9 @@ public void setUser(String user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -276,7 +291,6 @@ public int hashCode() { return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -297,11 +311,135 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("image"); + openapiFields.add("keyring"); + openapiFields.add("monitors"); + openapiFields.add("pool"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("image"); + openapiRequiredFields.add("monitors"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RBDPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RBDPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RBDPersistentVolumeSource is not found in the empty JSON string", V1RBDPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RBDPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RBDPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1RBDPersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("image").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image").toString())); + } + if ((jsonObj.get("keyring") != null && !jsonObj.get("keyring").isJsonNull()) && !jsonObj.get("keyring").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `keyring` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyring").toString())); + } + // ensure the required json array is present + if (jsonObj.get("monitors") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("monitors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `monitors` to be an array in the JSON string but got `%s`", jsonObj.get("monitors").toString())); + } + if ((jsonObj.get("pool") != null && !jsonObj.get("pool").isJsonNull()) && !jsonObj.get("pool").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if ((jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RBDPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RBDPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RBDPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RBDPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RBDPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RBDPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RBDPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1RBDPersistentVolumeSource + */ + public static V1RBDPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RBDPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1RBDPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java index e5d22019b3..3e4674dc79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @@ -64,6 +87,8 @@ public class V1RBDVolumeSource { @SerializedName(SERIALIZED_NAME_USER) private String user; + public V1RBDVolumeSource() { + } public V1RBDVolumeSource fsType(String fsType) { @@ -75,9 +100,7 @@ public V1RBDVolumeSource fsType(String fsType) { * 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 * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -98,8 +121,7 @@ public V1RBDVolumeSource image(String image) { * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return image **/ - @ApiModelProperty(required = true, value = "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") - + @jakarta.annotation.Nonnull public String getImage() { return image; } @@ -120,9 +142,7 @@ public V1RBDVolumeSource keyring(String keyring) { * 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 * @return keyring **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getKeyring() { return keyring; } @@ -140,6 +160,9 @@ public V1RBDVolumeSource monitors(List monitors) { } public V1RBDVolumeSource addMonitorsItem(String monitorsItem) { + if (this.monitors == null) { + this.monitors = new ArrayList<>(); + } this.monitors.add(monitorsItem); return this; } @@ -148,8 +171,7 @@ public V1RBDVolumeSource addMonitorsItem(String monitorsItem) { * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return monitors **/ - @ApiModelProperty(required = true, value = "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") - + @jakarta.annotation.Nonnull public List getMonitors() { return monitors; } @@ -170,9 +192,7 @@ public V1RBDVolumeSource pool(String pool) { * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return pool **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") - + @jakarta.annotation.Nullable public String getPool() { return pool; } @@ -193,9 +213,7 @@ public V1RBDVolumeSource readOnly(Boolean readOnly) { * 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 * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -216,9 +234,7 @@ public V1RBDVolumeSource secretRef(V1LocalObjectReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -239,9 +255,7 @@ public V1RBDVolumeSource user(String user) { * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") - + @jakarta.annotation.Nullable public String getUser() { return user; } @@ -252,8 +266,9 @@ public void setUser(String user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -276,7 +291,6 @@ public int hashCode() { return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -297,11 +311,135 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("image"); + openapiFields.add("keyring"); + openapiFields.add("monitors"); + openapiFields.add("pool"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("image"); + openapiRequiredFields.add("monitors"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RBDVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RBDVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RBDVolumeSource is not found in the empty JSON string", V1RBDVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RBDVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RBDVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1RBDVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("image").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image").toString())); + } + if ((jsonObj.get("keyring") != null && !jsonObj.get("keyring").isJsonNull()) && !jsonObj.get("keyring").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `keyring` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyring").toString())); + } + // ensure the required json array is present + if (jsonObj.get("monitors") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("monitors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `monitors` to be an array in the JSON string but got `%s`", jsonObj.get("monitors").toString())); + } + if ((jsonObj.get("pool") != null && !jsonObj.get("pool").isJsonNull()) && !jsonObj.get("pool").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1LocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if ((jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RBDVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RBDVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RBDVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RBDVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RBDVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RBDVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RBDVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1RBDVolumeSource + */ + public static V1RBDVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RBDVolumeSource.class); + } + + /** + * Convert an instance of V1RBDVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java index 6481f3071c..857551a270 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ReplicaSetSpec; import io.kubernetes.client.openapi.models.V1ReplicaSetStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @@ -52,6 +75,8 @@ public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObjec @SerializedName(SERIALIZED_NAME_STATUS) private V1ReplicaSetStatus status; + public V1ReplicaSet() { + } public V1ReplicaSet apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1ReplicaSet apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1ReplicaSet kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1ReplicaSet metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1ReplicaSet spec(V1ReplicaSetSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ReplicaSetSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1ReplicaSet status(V1ReplicaSetStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ReplicaSetStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1ReplicaSetStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicaSet + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicaSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicaSet is not found in the empty JSON string", V1ReplicaSet.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicaSet.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicaSet` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ReplicaSetSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1ReplicaSetStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicaSet.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicaSet' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicaSet.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicaSet value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicaSet read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicaSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSet + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSet + */ + public static V1ReplicaSet fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicaSet.class); + } + + /** + * Convert an instance of V1ReplicaSet to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java index 94cdd91a22..dc9d5c51b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicaSetCondition describes the state of a replica set at a certain point. */ @@ -50,6 +73,8 @@ public class V1ReplicaSetCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1ReplicaSetCondition() { + } public V1ReplicaSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1ReplicaSetCondition lastTransitionTime(OffsetDateTime lastTransitionTim * The last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1ReplicaSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable message indicating details about the transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1ReplicaSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,8 +149,7 @@ public V1ReplicaSetCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -152,8 +170,7 @@ public V1ReplicaSetCondition type(String type) { * Type of replica set condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type of replica set condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -164,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicaSetCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicaSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicaSetCondition is not found in the empty JSON string", V1ReplicaSetCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicaSetCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicaSetCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ReplicaSetCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicaSetCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicaSetCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicaSetCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicaSetCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicaSetCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicaSetCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSetCondition + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetCondition + */ + public static V1ReplicaSetCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicaSetCondition.class); + } + + /** + * Convert an instance of V1ReplicaSetCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java index 0d7662888c..e4b20115f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ReplicaSet; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicaSetList is a collection of ReplicaSets. */ @@ -49,6 +72,8 @@ public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesL @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ReplicaSetList() { + } public V1ReplicaSetList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ReplicaSetList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ReplicaSetList items(List items) { } public V1ReplicaSetList addItemsItem(V1ReplicaSet itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ReplicaSetList addItemsItem(V1ReplicaSet itemsItem) { * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller * @return items **/ - @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ReplicaSetList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ReplicaSetList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicaSetList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicaSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicaSetList is not found in the empty JSON string", V1ReplicaSetList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicaSetList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicaSetList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ReplicaSetList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ReplicaSet.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicaSetList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicaSetList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicaSetList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicaSetList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicaSetList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicaSetList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSetList + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetList + */ + public static V1ReplicaSetList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicaSetList.class); + } + + /** + * Convert an instance of V1ReplicaSetList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java index 6e8321ed19..b56a070383 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicaSetSpec is the specification of a ReplicaSet. */ @@ -47,6 +70,8 @@ public class V1ReplicaSetSpec { @SerializedName(SERIALIZED_NAME_TEMPLATE) private V1PodTemplateSpec template; + public V1ReplicaSetSpec() { + } public V1ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { @@ -58,9 +83,7 @@ public V1ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { * 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) * @return minReadySeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)") - + @jakarta.annotation.Nullable public Integer getMinReadySeconds() { return minReadySeconds; } @@ -81,9 +104,7 @@ public V1ReplicaSetSpec replicas(Integer replicas) { * 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 * @return replicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Integer getReplicas() { return replicas; } @@ -104,8 +125,7 @@ public V1ReplicaSetSpec selector(V1LabelSelector selector) { * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1LabelSelector getSelector() { return selector; } @@ -126,9 +146,7 @@ public V1ReplicaSetSpec template(V1PodTemplateSpec template) { * Get template * @return template **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodTemplateSpec getTemplate() { return template; } @@ -139,8 +157,9 @@ public void setTemplate(V1PodTemplateSpec template) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +178,6 @@ public int hashCode() { return Objects.hash(minReadySeconds, replicas, selector, template); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("minReadySeconds"); + openapiFields.add("replicas"); + openapiFields.add("selector"); + openapiFields.add("template"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("selector"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicaSetSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicaSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicaSetSpec is not found in the empty JSON string", V1ReplicaSetSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicaSetSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicaSetSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ReplicaSetSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `selector` + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + // validate the optional field `template` + if (jsonObj.get("template") != null && !jsonObj.get("template").isJsonNull()) { + V1PodTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("template")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicaSetSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicaSetSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicaSetSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicaSetSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicaSetSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicaSetSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSetSpec + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetSpec + */ + public static V1ReplicaSetSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicaSetSpec.class); + } + + /** + * Convert an instance of V1ReplicaSetSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java index 92e5e7c268..c6aea8dd20 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ReplicaSetCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicaSetStatus represents the current status of a ReplicaSet. */ @@ -38,7 +61,7 @@ public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_FULLY_LABELED_REPLICAS = "fullyLabeledReplicas"; @SerializedName(SERIALIZED_NAME_FULLY_LABELED_REPLICAS) @@ -56,6 +79,8 @@ public class V1ReplicaSetStatus { @SerializedName(SERIALIZED_NAME_REPLICAS) private Integer replicas; + public V1ReplicaSetStatus() { + } public V1ReplicaSetStatus availableReplicas(Integer availableReplicas) { @@ -67,9 +92,7 @@ public V1ReplicaSetStatus availableReplicas(Integer availableReplicas) { * The number of available replicas (ready for at least minReadySeconds) for this replica set. * @return availableReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replica set.") - + @jakarta.annotation.Nullable public Integer getAvailableReplicas() { return availableReplicas; } @@ -98,9 +121,7 @@ public V1ReplicaSetStatus addConditionsItem(V1ReplicaSetCondition conditionsItem * Represents the latest available observations of a replica set's current state. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Represents the latest available observations of a replica set's current state.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -121,9 +142,7 @@ public V1ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { * The number of pods that have labels matching the labels of the pod template of the replicaset. * @return fullyLabeledReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replicaset.") - + @jakarta.annotation.Nullable public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } @@ -144,9 +163,7 @@ public V1ReplicaSetStatus observedGeneration(Long observedGeneration) { * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -167,9 +184,7 @@ public V1ReplicaSetStatus readyReplicas(Integer readyReplicas) { * readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. * @return readyReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.") - + @jakarta.annotation.Nullable public Integer getReadyReplicas() { return readyReplicas; } @@ -190,8 +205,7 @@ public V1ReplicaSetStatus replicas(Integer replicas) { * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller * @return replicas **/ - @ApiModelProperty(required = true, value = "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") - + @jakarta.annotation.Nonnull public Integer getReplicas() { return replicas; } @@ -202,8 +216,9 @@ public void setReplicas(Integer replicas) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -224,7 +239,6 @@ public int hashCode() { return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -243,11 +257,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("availableReplicas"); + openapiFields.add("conditions"); + openapiFields.add("fullyLabeledReplicas"); + openapiFields.add("observedGeneration"); + openapiFields.add("readyReplicas"); + openapiFields.add("replicas"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("replicas"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicaSetStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicaSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicaSetStatus is not found in the empty JSON string", V1ReplicaSetStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicaSetStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicaSetStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ReplicaSetStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1ReplicaSetCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicaSetStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicaSetStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicaSetStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicaSetStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicaSetStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicaSetStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicaSetStatus + * @throws IOException if the JSON string is invalid with respect to V1ReplicaSetStatus + */ + public static V1ReplicaSetStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicaSetStatus.class); + } + + /** + * Convert an instance of V1ReplicaSetStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java index 0c67e5224c..78ab155ccf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ReplicationControllerSpec; import io.kubernetes.client.openapi.models.V1ReplicationControllerStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicationController represents the configuration of a replication controller. */ @@ -52,6 +75,8 @@ public class V1ReplicationController implements io.kubernetes.client.common.Kube @SerializedName(SERIALIZED_NAME_STATUS) private V1ReplicationControllerStatus status; + public V1ReplicationController() { + } public V1ReplicationController apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1ReplicationController apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1ReplicationController kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1ReplicationController metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1ReplicationController spec(V1ReplicationControllerSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ReplicationControllerSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1ReplicationController status(V1ReplicationControllerStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ReplicationControllerStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1ReplicationControllerStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicationController + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicationController.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicationController is not found in the empty JSON string", V1ReplicationController.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicationController.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicationController` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ReplicationControllerSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1ReplicationControllerStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicationController.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicationController' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicationController.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicationController value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicationController read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicationController given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationController + * @throws IOException if the JSON string is invalid with respect to V1ReplicationController + */ + public static V1ReplicationController fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicationController.class); + } + + /** + * Convert an instance of V1ReplicationController to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java index 84c6428e1a..c4b91a646a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicationControllerCondition describes the state of a replication controller at a certain point. */ @@ -50,6 +73,8 @@ public class V1ReplicationControllerCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1ReplicationControllerCondition() { + } public V1ReplicationControllerCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1ReplicationControllerCondition lastTransitionTime(OffsetDateTime lastTr * The last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1ReplicationControllerCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable message indicating details about the transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1ReplicationControllerCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,8 +149,7 @@ public V1ReplicationControllerCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -152,8 +170,7 @@ public V1ReplicationControllerCondition type(String type) { * Type of replication controller condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type of replication controller condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -164,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicationControllerCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicationControllerCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicationControllerCondition is not found in the empty JSON string", V1ReplicationControllerCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicationControllerCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicationControllerCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ReplicationControllerCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicationControllerCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicationControllerCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicationControllerCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicationControllerCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicationControllerCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicationControllerCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationControllerCondition + * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerCondition + */ + public static V1ReplicationControllerCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicationControllerCondition.class); + } + + /** + * Convert an instance of V1ReplicationControllerCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java index be9944129c..8f8847da2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ReplicationController; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicationControllerList is a collection of replication controllers. */ @@ -49,6 +72,8 @@ public class V1ReplicationControllerList implements io.kubernetes.client.common. @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ReplicationControllerList() { + } public V1ReplicationControllerList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ReplicationControllerList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ReplicationControllerList items(List items) { } public V1ReplicationControllerList addItemsItem(V1ReplicationController itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ReplicationControllerList addItemsItem(V1ReplicationController itemsIte * List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller * @return items **/ - @ApiModelProperty(required = true, value = "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ReplicationControllerList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ReplicationControllerList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicationControllerList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicationControllerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicationControllerList is not found in the empty JSON string", V1ReplicationControllerList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicationControllerList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicationControllerList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ReplicationControllerList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ReplicationController.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicationControllerList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicationControllerList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicationControllerList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicationControllerList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicationControllerList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicationControllerList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationControllerList + * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerList + */ + public static V1ReplicationControllerList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicationControllerList.class); + } + + /** + * Convert an instance of V1ReplicationControllerList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java index ff552fdb09..f0146e9703 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * ReplicationControllerSpec is the specification of a replication controller. @@ -43,12 +65,14 @@ public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) - private Map selector = null; + private Map selector = new HashMap<>(); public static final String SERIALIZED_NAME_TEMPLATE = "template"; @SerializedName(SERIALIZED_NAME_TEMPLATE) private V1PodTemplateSpec template; + public V1ReplicationControllerSpec() { + } public V1ReplicationControllerSpec minReadySeconds(Integer minReadySeconds) { @@ -60,9 +84,7 @@ public V1ReplicationControllerSpec minReadySeconds(Integer minReadySeconds) { * 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) * @return minReadySeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)") - + @jakarta.annotation.Nullable public Integer getMinReadySeconds() { return minReadySeconds; } @@ -83,9 +105,7 @@ public V1ReplicationControllerSpec replicas(Integer replicas) { * 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 * @return replicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Integer getReplicas() { return replicas; } @@ -114,9 +134,7 @@ public V1ReplicationControllerSpec putSelectorItem(String key, String selectorIt * 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 * @return selector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Map getSelector() { return selector; } @@ -137,9 +155,7 @@ public V1ReplicationControllerSpec template(V1PodTemplateSpec template) { * Get template * @return template **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PodTemplateSpec getTemplate() { return template; } @@ -150,8 +166,9 @@ public void setTemplate(V1PodTemplateSpec template) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +187,6 @@ public int hashCode() { return Objects.hash(minReadySeconds, replicas, selector, template); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +203,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("minReadySeconds"); + openapiFields.add("replicas"); + openapiFields.add("selector"); + openapiFields.add("template"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicationControllerSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicationControllerSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicationControllerSpec is not found in the empty JSON string", V1ReplicationControllerSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicationControllerSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicationControllerSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `template` + if (jsonObj.get("template") != null && !jsonObj.get("template").isJsonNull()) { + V1PodTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("template")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicationControllerSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicationControllerSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicationControllerSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicationControllerSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicationControllerSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicationControllerSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationControllerSpec + * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerSpec + */ + public static V1ReplicationControllerSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicationControllerSpec.class); + } + + /** + * Convert an instance of V1ReplicationControllerSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java index abf84541c1..67382e640d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ReplicationControllerCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ReplicationControllerStatus represents the current status of a replication controller. */ @@ -38,7 +61,7 @@ public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_FULLY_LABELED_REPLICAS = "fullyLabeledReplicas"; @SerializedName(SERIALIZED_NAME_FULLY_LABELED_REPLICAS) @@ -56,6 +79,8 @@ public class V1ReplicationControllerStatus { @SerializedName(SERIALIZED_NAME_REPLICAS) private Integer replicas; + public V1ReplicationControllerStatus() { + } public V1ReplicationControllerStatus availableReplicas(Integer availableReplicas) { @@ -67,9 +92,7 @@ public V1ReplicationControllerStatus availableReplicas(Integer availableReplicas * The number of available replicas (ready for at least minReadySeconds) for this replication controller. * @return availableReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replication controller.") - + @jakarta.annotation.Nullable public Integer getAvailableReplicas() { return availableReplicas; } @@ -98,9 +121,7 @@ public V1ReplicationControllerStatus addConditionsItem(V1ReplicationControllerCo * Represents the latest available observations of a replication controller's current state. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Represents the latest available observations of a replication controller's current state.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -121,9 +142,7 @@ public V1ReplicationControllerStatus fullyLabeledReplicas(Integer fullyLabeledRe * The number of pods that have labels matching the labels of the pod template of the replication controller. * @return fullyLabeledReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replication controller.") - + @jakarta.annotation.Nullable public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } @@ -144,9 +163,7 @@ public V1ReplicationControllerStatus observedGeneration(Long observedGeneration) * ObservedGeneration reflects the generation of the most recently observed replication controller. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed replication controller.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -167,9 +184,7 @@ public V1ReplicationControllerStatus readyReplicas(Integer readyReplicas) { * The number of ready replicas for this replication controller. * @return readyReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The number of ready replicas for this replication controller.") - + @jakarta.annotation.Nullable public Integer getReadyReplicas() { return readyReplicas; } @@ -190,8 +205,7 @@ public V1ReplicationControllerStatus replicas(Integer replicas) { * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * @return replicas **/ - @ApiModelProperty(required = true, value = "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller") - + @jakarta.annotation.Nonnull public Integer getReplicas() { return replicas; } @@ -202,8 +216,9 @@ public void setReplicas(Integer replicas) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -224,7 +239,6 @@ public int hashCode() { return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -243,11 +257,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("availableReplicas"); + openapiFields.add("conditions"); + openapiFields.add("fullyLabeledReplicas"); + openapiFields.add("observedGeneration"); + openapiFields.add("readyReplicas"); + openapiFields.add("replicas"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("replicas"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ReplicationControllerStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ReplicationControllerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ReplicationControllerStatus is not found in the empty JSON string", V1ReplicationControllerStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ReplicationControllerStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ReplicationControllerStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ReplicationControllerStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1ReplicationControllerCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ReplicationControllerStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ReplicationControllerStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ReplicationControllerStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ReplicationControllerStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ReplicationControllerStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ReplicationControllerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ReplicationControllerStatus + * @throws IOException if the JSON string is invalid with respect to V1ReplicationControllerStatus + */ + public static V1ReplicationControllerStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ReplicationControllerStatus.class); + } + + /** + * Convert an instance of V1ReplicationControllerStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java index 08f1d99bc4..4bf3618734 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ @@ -57,6 +80,8 @@ public class V1ResourceAttributes { @SerializedName(SERIALIZED_NAME_VERSION) private String version; + public V1ResourceAttributes() { + } public V1ResourceAttributes group(String group) { @@ -68,9 +93,7 @@ public V1ResourceAttributes group(String group) { * Group is the API Group of the Resource. \"*\" means all. * @return group **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Group is the API Group of the Resource. \"*\" means all.") - + @jakarta.annotation.Nullable public String getGroup() { return group; } @@ -91,9 +114,7 @@ public V1ResourceAttributes name(String name) { * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -114,9 +135,7 @@ public V1ResourceAttributes namespace(String namespace) { * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -137,9 +156,7 @@ public V1ResourceAttributes resource(String resource) { * Resource is one of the existing resource types. \"*\" means all. * @return resource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resource is one of the existing resource types. \"*\" means all.") - + @jakarta.annotation.Nullable public String getResource() { return resource; } @@ -160,9 +177,7 @@ public V1ResourceAttributes subresource(String subresource) { * Subresource is one of the existing resource types. \"\" means none. * @return subresource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Subresource is one of the existing resource types. \"\" means none.") - + @jakarta.annotation.Nullable public String getSubresource() { return subresource; } @@ -183,9 +198,7 @@ public V1ResourceAttributes verb(String verb) { * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. * @return verb **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") - + @jakarta.annotation.Nullable public String getVerb() { return verb; } @@ -206,9 +219,7 @@ public V1ResourceAttributes version(String version) { * Version is the API Version of the Resource. \"*\" means all. * @return version **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Version is the API Version of the Resource. \"*\" means all.") - + @jakarta.annotation.Nullable public String getVersion() { return version; } @@ -219,8 +230,9 @@ public void setVersion(String version) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -242,7 +254,6 @@ public int hashCode() { return Objects.hash(group, name, namespace, resource, subresource, verb, version); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -262,11 +273,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("group"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("resource"); + openapiFields.add("subresource"); + openapiFields.add("verb"); + openapiFields.add("version"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceAttributes + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceAttributes is not found in the empty JSON string", V1ResourceAttributes.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceAttributes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceAttributes` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if ((jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) && !jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); + } + if ((jsonObj.get("subresource") != null && !jsonObj.get("subresource").isJsonNull()) && !jsonObj.get("subresource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subresource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subresource").toString())); + } + if ((jsonObj.get("verb") != null && !jsonObj.get("verb").isJsonNull()) && !jsonObj.get("verb").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `verb` to be a primitive type in the JSON string but got `%s`", jsonObj.get("verb").toString())); + } + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceAttributes read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceAttributes given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceAttributes + * @throws IOException if the JSON string is invalid with respect to V1ResourceAttributes + */ + public static V1ResourceAttributes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceAttributes.class); + } + + /** + * Convert an instance of V1ResourceAttributes to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java index 5ee509157d..71ffc9153a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaim references one entry in PodSpec.ResourceClaims. */ @@ -33,6 +56,8 @@ public class V1ResourceClaim { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1ResourceClaim() { + } public V1ResourceClaim name(String name) { @@ -44,8 +69,7 @@ public V1ResourceClaim name(String name) { * 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. * @return name **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceClaim + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaim is not found in the empty JSON string", V1ResourceClaim.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ResourceClaim.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceClaim' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaim.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceClaim value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceClaim read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaim + */ + public static V1ResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceClaim.class); + } + + /** + * Convert an instance of V1ResourceClaim to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java index 1999d8d22c..5d3194555a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ @@ -42,6 +65,8 @@ public class V1ResourceFieldSelector { @SerializedName(SERIALIZED_NAME_RESOURCE) private String resource; + public V1ResourceFieldSelector() { + } public V1ResourceFieldSelector containerName(String containerName) { @@ -53,9 +78,7 @@ public V1ResourceFieldSelector containerName(String containerName) { * Container name: required for volumes, optional for env vars * @return containerName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Container name: required for volumes, optional for env vars") - + @jakarta.annotation.Nullable public String getContainerName() { return containerName; } @@ -76,9 +99,7 @@ public V1ResourceFieldSelector divisor(Quantity divisor) { * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return divisor **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") - + @jakarta.annotation.Nullable public Quantity getDivisor() { return divisor; } @@ -99,8 +120,7 @@ public V1ResourceFieldSelector resource(String resource) { * Required: resource to select * @return resource **/ - @ApiModelProperty(required = true, value = "Required: resource to select") - + @jakarta.annotation.Nonnull public String getResource() { return resource; } @@ -111,8 +131,9 @@ public void setResource(String resource) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +151,6 @@ public int hashCode() { return Objects.hash(containerName, divisor, resource); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +166,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("containerName"); + openapiFields.add("divisor"); + openapiFields.add("resource"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("resource"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceFieldSelector + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceFieldSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceFieldSelector is not found in the empty JSON string", V1ResourceFieldSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceFieldSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceFieldSelector` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ResourceFieldSelector.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("containerName") != null && !jsonObj.get("containerName").isJsonNull()) && !jsonObj.get("containerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `containerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerName").toString())); + } + if ((jsonObj.get("divisor") != null && !jsonObj.get("divisor").isJsonNull()) && !jsonObj.get("divisor").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `divisor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("divisor").toString())); + } + if (!jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceFieldSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceFieldSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceFieldSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceFieldSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceFieldSelector read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceFieldSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceFieldSelector + * @throws IOException if the JSON string is invalid with respect to V1ResourceFieldSelector + */ + public static V1ResourceFieldSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceFieldSelector.class); + } + + /** + * Convert an instance of V1ResourceFieldSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java index 50299aa2e0..226b331afd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ResourceQuotaSpec; import io.kubernetes.client.openapi.models.V1ResourceQuotaStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceQuota sets aggregate quota restrictions enforced per namespace */ @@ -52,6 +75,8 @@ public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesOb @SerializedName(SERIALIZED_NAME_STATUS) private V1ResourceQuotaStatus status; + public V1ResourceQuota() { + } public V1ResourceQuota apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1ResourceQuota apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1ResourceQuota kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1ResourceQuota metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1ResourceQuota spec(V1ResourceQuotaSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceQuotaSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1ResourceQuota status(V1ResourceQuotaStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceQuotaStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1ResourceQuotaStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceQuota + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceQuota.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceQuota is not found in the empty JSON string", V1ResourceQuota.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceQuota.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceQuota` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ResourceQuotaSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1ResourceQuotaStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceQuota.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceQuota' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceQuota.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceQuota value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceQuota read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceQuota given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceQuota + * @throws IOException if the JSON string is invalid with respect to V1ResourceQuota + */ + public static V1ResourceQuota fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceQuota.class); + } + + /** + * Convert an instance of V1ResourceQuota to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java index e97142f713..1d3b17eb38 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ResourceQuota; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceQuotaList is a list of ResourceQuota items. */ @@ -49,6 +72,8 @@ public class V1ResourceQuotaList implements io.kubernetes.client.common.Kubernet @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ResourceQuotaList() { + } public V1ResourceQuotaList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ResourceQuotaList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ResourceQuotaList items(List items) { } public V1ResourceQuotaList addItemsItem(V1ResourceQuota itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ResourceQuotaList addItemsItem(V1ResourceQuota itemsItem) { * Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ * @return items **/ - @ApiModelProperty(required = true, value = "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ResourceQuotaList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ResourceQuotaList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceQuotaList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceQuotaList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceQuotaList is not found in the empty JSON string", V1ResourceQuotaList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceQuotaList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceQuotaList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ResourceQuotaList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ResourceQuota.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceQuotaList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceQuotaList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceQuotaList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceQuotaList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceQuotaList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceQuotaList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceQuotaList + * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaList + */ + public static V1ResourceQuotaList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceQuotaList.class); + } + + /** + * Convert an instance of V1ResourceQuotaList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java index f3c869a421..6617ae7b29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java @@ -21,14 +21,37 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ScopeSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. */ @@ -37,7 +60,7 @@ public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) - private Map hard = null; + private Map hard = new HashMap<>(); public static final String SERIALIZED_NAME_SCOPE_SELECTOR = "scopeSelector"; @SerializedName(SERIALIZED_NAME_SCOPE_SELECTOR) @@ -45,8 +68,10 @@ public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_SCOPES = "scopes"; @SerializedName(SERIALIZED_NAME_SCOPES) - private List scopes = null; + private List scopes; + public V1ResourceQuotaSpec() { + } public V1ResourceQuotaSpec hard(Map hard) { @@ -66,9 +91,7 @@ public V1ResourceQuotaSpec putHardItem(String key, Quantity hardItem) { * hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ * @return hard **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") - + @jakarta.annotation.Nullable public Map getHard() { return hard; } @@ -89,9 +112,7 @@ public V1ResourceQuotaSpec scopeSelector(V1ScopeSelector scopeSelector) { * Get scopeSelector * @return scopeSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ScopeSelector getScopeSelector() { return scopeSelector; } @@ -120,9 +141,7 @@ public V1ResourceQuotaSpec addScopesItem(String scopesItem) { * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. * @return scopes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.") - + @jakarta.annotation.Nullable public List getScopes() { return scopes; } @@ -133,8 +152,9 @@ public void setScopes(List scopes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -152,7 +172,6 @@ public int hashCode() { return Objects.hash(hard, scopeSelector, scopes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -168,11 +187,104 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("hard"); + openapiFields.add("scopeSelector"); + openapiFields.add("scopes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceQuotaSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceQuotaSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceQuotaSpec is not found in the empty JSON string", V1ResourceQuotaSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceQuotaSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceQuotaSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `scopeSelector` + if (jsonObj.get("scopeSelector") != null && !jsonObj.get("scopeSelector").isJsonNull()) { + V1ScopeSelector.validateJsonObject(jsonObj.getAsJsonObject("scopeSelector")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("scopes") != null && !jsonObj.get("scopes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `scopes` to be an array in the JSON string but got `%s`", jsonObj.get("scopes").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceQuotaSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceQuotaSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceQuotaSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceQuotaSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceQuotaSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceQuotaSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceQuotaSpec + * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaSpec + */ + public static V1ResourceQuotaSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceQuotaSpec.class); + } + + /** + * Convert an instance of V1ResourceQuotaSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java index 4e5203acc3..b8c7aea8a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * ResourceQuotaStatus defines the enforced hard limits and observed use. @@ -35,12 +57,14 @@ public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) - private Map hard = null; + private Map hard = new HashMap<>(); public static final String SERIALIZED_NAME_USED = "used"; @SerializedName(SERIALIZED_NAME_USED) - private Map used = null; + private Map used = new HashMap<>(); + public V1ResourceQuotaStatus() { + } public V1ResourceQuotaStatus hard(Map hard) { @@ -60,9 +84,7 @@ public V1ResourceQuotaStatus putHardItem(String key, Quantity hardItem) { * Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ * @return hard **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") - + @jakarta.annotation.Nullable public Map getHard() { return hard; } @@ -91,9 +113,7 @@ public V1ResourceQuotaStatus putUsedItem(String key, Quantity usedItem) { * Used is the current observed total usage of the resource in the namespace. * @return used **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Used is the current observed total usage of the resource in the namespace.") - + @jakarta.annotation.Nullable public Map getUsed() { return used; } @@ -104,8 +124,9 @@ public void setUsed(Map used) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -122,7 +143,6 @@ public int hashCode() { return Objects.hash(hard, used); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -137,11 +157,95 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("hard"); + openapiFields.add("used"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceQuotaStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceQuotaStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceQuotaStatus is not found in the empty JSON string", V1ResourceQuotaStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceQuotaStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceQuotaStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceQuotaStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceQuotaStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceQuotaStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceQuotaStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceQuotaStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceQuotaStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceQuotaStatus + * @throws IOException if the JSON string is invalid with respect to V1ResourceQuotaStatus + */ + public static V1ResourceQuotaStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceQuotaStatus.class); + } + + /** + * Convert an instance of V1ResourceQuotaStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java index 5116a481ad..fc0bcdaf7d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java @@ -21,14 +21,37 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ResourceClaim; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceRequirements describes the compute resource requirements. */ @@ -37,16 +60,18 @@ public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) - private List claims = null; + private List claims; public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) - private Map limits = null; + private Map limits = new HashMap<>(); public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) - private Map requests = null; + private Map requests = new HashMap<>(); + public V1ResourceRequirements() { + } public V1ResourceRequirements claims(List claims) { @@ -66,9 +91,7 @@ public V1ResourceRequirements addClaimsItem(V1ResourceClaim claimsItem) { * 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. * @return claims **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getClaims() { return claims; } @@ -97,9 +120,7 @@ public V1ResourceRequirements putLimitsItem(String key, Quantity limitsItem) { * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @return limits **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") - + @jakarta.annotation.Nullable public Map getLimits() { return limits; } @@ -128,9 +149,7 @@ public V1ResourceRequirements putRequestsItem(String key, Quantity requestsItem) * 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/ * @return requests **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public Map getRequests() { return requests; } @@ -141,8 +160,9 @@ public void setRequests(Map requests) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +180,6 @@ public int hashCode() { return Objects.hash(claims, limits, requests); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +195,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("claims"); + openapiFields.add("limits"); + openapiFields.add("requests"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceRequirements + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceRequirements is not found in the empty JSON string", V1ResourceRequirements.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceRequirements.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceRequirements` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("claims") != null && !jsonObj.get("claims").isJsonNull()) { + JsonArray jsonArrayclaims = jsonObj.getAsJsonArray("claims"); + if (jsonArrayclaims != null) { + // ensure the json data is an array + if (!jsonObj.get("claims").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `claims` to be an array in the JSON string but got `%s`", jsonObj.get("claims").toString())); + } + + // validate the optional field `claims` (array) + for (int i = 0; i < jsonArrayclaims.size(); i++) { + V1ResourceClaim.validateJsonObject(jsonArrayclaims.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceRequirements.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceRequirements' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceRequirements.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceRequirements value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceRequirements read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceRequirements given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceRequirements + * @throws IOException if the JSON string is invalid with respect to V1ResourceRequirements + */ + public static V1ResourceRequirements fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceRequirements.class); + } + + /** + * Convert an instance of V1ResourceRequirements to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java index ceff0a0792..5699d89183 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -33,20 +56,22 @@ public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) - private List apiGroups = null; + private List apiGroups; public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) - private List resourceNames = null; + private List resourceNames; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) - private List resources = null; + private List resources; public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList<>(); + public V1ResourceRule() { + } public V1ResourceRule apiGroups(List apiGroups) { @@ -66,9 +91,7 @@ public V1ResourceRule addApiGroupsItem(String apiGroupsItem) { * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. * @return apiGroups **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.") - + @jakarta.annotation.Nullable public List getApiGroups() { return apiGroups; } @@ -97,9 +120,7 @@ public V1ResourceRule addResourceNamesItem(String resourceNamesItem) { * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. * @return resourceNames **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.") - + @jakarta.annotation.Nullable public List getResourceNames() { return resourceNames; } @@ -128,9 +149,7 @@ public V1ResourceRule addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. * @return resources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.") - + @jakarta.annotation.Nullable public List getResources() { return resources; } @@ -148,6 +167,9 @@ public V1ResourceRule verbs(List verbs) { } public V1ResourceRule addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } this.verbs.add(verbsItem); return this; } @@ -156,8 +178,7 @@ public V1ResourceRule addVerbsItem(String verbsItem) { * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. * @return verbs **/ - @ApiModelProperty(required = true, value = "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") - + @jakarta.annotation.Nonnull public List getVerbs() { return verbs; } @@ -168,8 +189,9 @@ public void setVerbs(List verbs) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +210,6 @@ public int hashCode() { return Objects.hash(apiGroups, resourceNames, resources, verbs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +226,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroups"); + openapiFields.add("resourceNames"); + openapiFields.add("resources"); + openapiFields.add("verbs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("verbs"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ResourceRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ResourceRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceRule is not found in the empty JSON string", V1ResourceRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ResourceRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ResourceRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroups` to be an array in the JSON string but got `%s`", jsonObj.get("apiGroups").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("resourceNames") != null && !jsonObj.get("resourceNames").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceNames` to be an array in the JSON string but got `%s`", jsonObj.get("resourceNames").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceRule + * @throws IOException if the JSON string is invalid with respect to V1ResourceRule + */ + public static V1ResourceRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceRule.class); + } + + /** + * Convert an instance of V1ResourceRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java index 0340ddf7d7..98c2edf145 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PolicyRule; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ @@ -47,8 +70,10 @@ public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) - private List rules = null; + private List rules; + public V1Role() { + } public V1Role apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1Role apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -83,9 +106,7 @@ public V1Role kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -106,9 +127,7 @@ public V1Role metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -137,9 +156,7 @@ public V1Role addRulesItem(V1PolicyRule rulesItem) { * Rules holds all the PolicyRules for this Role * @return rules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Rules holds all the PolicyRules for this Role") - + @jakarta.annotation.Nullable public List getRules() { return rules; } @@ -150,8 +167,9 @@ public void setRules(List rules) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, rules); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("rules"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Role + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Role.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Role is not found in the empty JSON string", V1Role.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Role.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Role` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + V1PolicyRule.validateJsonObject(jsonArrayrules.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Role.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Role' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Role.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Role value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Role read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Role given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Role + * @throws IOException if the JSON string is invalid with respect to V1Role + */ + public static V1Role fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Role.class); + } + + /** + * Convert an instance of V1Role to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java index 2b84ef0c29..2f06e0fdb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1RoleRef; import io.kubernetes.client.openapi.models.V1Subject; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,8 +75,10 @@ public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObje public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) - private List subjects = null; + private List subjects; + public V1RoleBinding() { + } public V1RoleBinding apiVersion(String apiVersion) { @@ -65,9 +90,7 @@ public V1RoleBinding apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -88,9 +111,7 @@ public V1RoleBinding kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -111,9 +132,7 @@ public V1RoleBinding metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -134,8 +153,7 @@ public V1RoleBinding roleRef(V1RoleRef roleRef) { * Get roleRef * @return roleRef **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1RoleRef getRoleRef() { return roleRef; } @@ -164,9 +182,7 @@ public V1RoleBinding addSubjectsItem(V1Subject subjectsItem) { * Subjects holds references to the objects the role applies to. * @return subjects **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") - + @jakarta.annotation.Nullable public List getSubjects() { return subjects; } @@ -177,8 +193,9 @@ public void setSubjects(List subjects) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -198,7 +215,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -216,11 +232,132 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("roleRef"); + openapiFields.add("subjects"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("roleRef"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RoleBinding + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RoleBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RoleBinding is not found in the empty JSON string", V1RoleBinding.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RoleBinding.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RoleBinding` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1RoleBinding.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `roleRef` + V1RoleRef.validateJsonObject(jsonObj.getAsJsonObject("roleRef")); + if (jsonObj.get("subjects") != null && !jsonObj.get("subjects").isJsonNull()) { + JsonArray jsonArraysubjects = jsonObj.getAsJsonArray("subjects"); + if (jsonArraysubjects != null) { + // ensure the json data is an array + if (!jsonObj.get("subjects").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `subjects` to be an array in the JSON string but got `%s`", jsonObj.get("subjects").toString())); + } + + // validate the optional field `subjects` (array) + for (int i = 0; i < jsonArraysubjects.size(); i++) { + V1Subject.validateJsonObject(jsonArraysubjects.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RoleBinding.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RoleBinding' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RoleBinding.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RoleBinding value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RoleBinding read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RoleBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RoleBinding + * @throws IOException if the JSON string is invalid with respect to V1RoleBinding + */ + public static V1RoleBinding fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RoleBinding.class); + } + + /** + * Convert an instance of V1RoleBinding to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java index 7e48cbf779..ccf7ff64f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1RoleBinding; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * RoleBindingList is a collection of RoleBindings */ @@ -49,6 +72,8 @@ public class V1RoleBindingList implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1RoleBindingList() { + } public V1RoleBindingList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1RoleBindingList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1RoleBindingList items(List items) { } public V1RoleBindingList addItemsItem(V1RoleBinding itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1RoleBindingList addItemsItem(V1RoleBinding itemsItem) { * Items is a list of RoleBindings * @return items **/ - @ApiModelProperty(required = true, value = "Items is a list of RoleBindings") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1RoleBindingList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1RoleBindingList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RoleBindingList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RoleBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RoleBindingList is not found in the empty JSON string", V1RoleBindingList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RoleBindingList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RoleBindingList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1RoleBindingList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1RoleBinding.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RoleBindingList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RoleBindingList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RoleBindingList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RoleBindingList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RoleBindingList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RoleBindingList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RoleBindingList + * @throws IOException if the JSON string is invalid with respect to V1RoleBindingList + */ + public static V1RoleBindingList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RoleBindingList.class); + } + + /** + * Convert an instance of V1RoleBindingList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java index 174b6bfba8..4afd06ab9e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Role; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * RoleList is a collection of Roles */ @@ -49,6 +72,8 @@ public class V1RoleList implements io.kubernetes.client.common.KubernetesListObj @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1RoleList() { + } public V1RoleList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1RoleList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1RoleList items(List items) { } public V1RoleList addItemsItem(V1Role itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1RoleList addItemsItem(V1Role itemsItem) { * Items is a list of Roles * @return items **/ - @ApiModelProperty(required = true, value = "Items is a list of Roles") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1RoleList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1RoleList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RoleList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RoleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RoleList is not found in the empty JSON string", V1RoleList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RoleList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RoleList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1RoleList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Role.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RoleList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RoleList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RoleList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RoleList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RoleList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RoleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RoleList + * @throws IOException if the JSON string is invalid with respect to V1RoleList + */ + public static V1RoleList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RoleList.class); + } + + /** + * Convert an instance of V1RoleList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java index a87c4d9264..166eab325f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * RoleRef contains information that points to the role being used */ @@ -41,6 +64,8 @@ public class V1RoleRef { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1RoleRef() { + } public V1RoleRef apiGroup(String apiGroup) { @@ -52,8 +77,7 @@ public V1RoleRef apiGroup(String apiGroup) { * APIGroup is the group for the resource being referenced * @return apiGroup **/ - @ApiModelProperty(required = true, value = "APIGroup is the group for the resource being referenced") - + @jakarta.annotation.Nonnull public String getApiGroup() { return apiGroup; } @@ -74,8 +98,7 @@ public V1RoleRef kind(String kind) { * Kind is the type of resource being referenced * @return kind **/ - @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -96,8 +119,7 @@ public V1RoleRef name(String name) { * Name is the name of resource being referenced * @return name **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -108,8 +130,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -127,7 +150,6 @@ public int hashCode() { return Objects.hash(apiGroup, kind, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -143,11 +165,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroup"); + openapiFields.add("kind"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("apiGroup"); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RoleRef + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RoleRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RoleRef is not found in the empty JSON string", V1RoleRef.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RoleRef.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RoleRef` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1RoleRef.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RoleRef.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RoleRef' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RoleRef.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RoleRef value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RoleRef read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RoleRef given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RoleRef + * @throws IOException if the JSON string is invalid with respect to V1RoleRef + */ + public static V1RoleRef fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RoleRef.class); + } + + /** + * Convert an instance of V1RoleRef to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java index 410e19559c..e1a1dff07f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Spec to control the desired behavior of daemon set rolling update. */ @@ -38,6 +61,8 @@ public class V1RollingUpdateDaemonSet { @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) private IntOrString maxUnavailable; + public V1RollingUpdateDaemonSet() { + } public V1RollingUpdateDaemonSet maxSurge(IntOrString maxSurge) { @@ -49,9 +74,7 @@ public V1RollingUpdateDaemonSet maxSurge(IntOrString maxSurge) { * 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. * @return maxSurge **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getMaxSurge() { return maxSurge; } @@ -72,9 +95,7 @@ public V1RollingUpdateDaemonSet maxUnavailable(IntOrString maxUnavailable) { * 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. * @return maxUnavailable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getMaxUnavailable() { return maxUnavailable; } @@ -85,8 +106,9 @@ public void setMaxUnavailable(IntOrString maxUnavailable) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(maxSurge, maxUnavailable); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("maxSurge"); + openapiFields.add("maxUnavailable"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RollingUpdateDaemonSet + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RollingUpdateDaemonSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RollingUpdateDaemonSet is not found in the empty JSON string", V1RollingUpdateDaemonSet.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RollingUpdateDaemonSet.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RollingUpdateDaemonSet` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("maxSurge") != null && !jsonObj.get("maxSurge").isJsonNull()) && !jsonObj.get("maxSurge").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `maxSurge` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxSurge").toString())); + } + if ((jsonObj.get("maxUnavailable") != null && !jsonObj.get("maxUnavailable").isJsonNull()) && !jsonObj.get("maxUnavailable").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `maxUnavailable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxUnavailable").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RollingUpdateDaemonSet.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RollingUpdateDaemonSet' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RollingUpdateDaemonSet.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RollingUpdateDaemonSet value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RollingUpdateDaemonSet read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RollingUpdateDaemonSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RollingUpdateDaemonSet + * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateDaemonSet + */ + public static V1RollingUpdateDaemonSet fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RollingUpdateDaemonSet.class); + } + + /** + * Convert an instance of V1RollingUpdateDaemonSet to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java index 68d196ce04..43db9f54f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Spec to control the desired behavior of rolling update. */ @@ -38,6 +61,8 @@ public class V1RollingUpdateDeployment { @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) private IntOrString maxUnavailable; + public V1RollingUpdateDeployment() { + } public V1RollingUpdateDeployment maxSurge(IntOrString maxSurge) { @@ -49,9 +74,7 @@ public V1RollingUpdateDeployment maxSurge(IntOrString maxSurge) { * 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. * @return maxSurge **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getMaxSurge() { return maxSurge; } @@ -72,9 +95,7 @@ public V1RollingUpdateDeployment maxUnavailable(IntOrString maxUnavailable) { * 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. * @return maxUnavailable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getMaxUnavailable() { return maxUnavailable; } @@ -85,8 +106,9 @@ public void setMaxUnavailable(IntOrString maxUnavailable) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(maxSurge, maxUnavailable); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("maxSurge"); + openapiFields.add("maxUnavailable"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RollingUpdateDeployment + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RollingUpdateDeployment.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RollingUpdateDeployment is not found in the empty JSON string", V1RollingUpdateDeployment.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RollingUpdateDeployment.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RollingUpdateDeployment` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("maxSurge") != null && !jsonObj.get("maxSurge").isJsonNull()) && !jsonObj.get("maxSurge").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `maxSurge` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxSurge").toString())); + } + if ((jsonObj.get("maxUnavailable") != null && !jsonObj.get("maxUnavailable").isJsonNull()) && !jsonObj.get("maxUnavailable").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `maxUnavailable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxUnavailable").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RollingUpdateDeployment.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RollingUpdateDeployment' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RollingUpdateDeployment.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RollingUpdateDeployment value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RollingUpdateDeployment read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RollingUpdateDeployment given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RollingUpdateDeployment + * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateDeployment + */ + public static V1RollingUpdateDeployment fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RollingUpdateDeployment.class); + } + + /** + * Convert an instance of V1RollingUpdateDeployment to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java index 6760ee2412..ddd02c6953 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @@ -38,6 +61,8 @@ public class V1RollingUpdateStatefulSetStrategy { @SerializedName(SERIALIZED_NAME_PARTITION) private Integer partition; + public V1RollingUpdateStatefulSetStrategy() { + } public V1RollingUpdateStatefulSetStrategy maxUnavailable(IntOrString maxUnavailable) { @@ -49,9 +74,7 @@ public V1RollingUpdateStatefulSetStrategy maxUnavailable(IntOrString maxUnavaila * 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. * @return maxUnavailable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getMaxUnavailable() { return maxUnavailable; } @@ -72,9 +95,7 @@ public V1RollingUpdateStatefulSetStrategy partition(Integer partition) { * 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. * @return partition **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getPartition() { return partition; } @@ -85,8 +106,9 @@ public void setPartition(Integer partition) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(maxUnavailable, partition); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("maxUnavailable"); + openapiFields.add("partition"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RollingUpdateStatefulSetStrategy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RollingUpdateStatefulSetStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RollingUpdateStatefulSetStrategy is not found in the empty JSON string", V1RollingUpdateStatefulSetStrategy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RollingUpdateStatefulSetStrategy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RollingUpdateStatefulSetStrategy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("maxUnavailable") != null && !jsonObj.get("maxUnavailable").isJsonNull()) && !jsonObj.get("maxUnavailable").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `maxUnavailable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxUnavailable").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RollingUpdateStatefulSetStrategy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RollingUpdateStatefulSetStrategy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RollingUpdateStatefulSetStrategy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RollingUpdateStatefulSetStrategy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RollingUpdateStatefulSetStrategy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RollingUpdateStatefulSetStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RollingUpdateStatefulSetStrategy + * @throws IOException if the JSON string is invalid with respect to V1RollingUpdateStatefulSetStrategy + */ + public static V1RollingUpdateStatefulSetStrategy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RollingUpdateStatefulSetStrategy.class); + } + + /** + * Convert an instance of V1RollingUpdateStatefulSetStrategy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java index 3c5c6ef910..2ff0a63bb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. */ @@ -33,24 +56,26 @@ public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) - private List apiGroups = null; + private List apiGroups; public static final String SERIALIZED_NAME_API_VERSIONS = "apiVersions"; @SerializedName(SERIALIZED_NAME_API_VERSIONS) - private List apiVersions = null; + private List apiVersions; public static final String SERIALIZED_NAME_OPERATIONS = "operations"; @SerializedName(SERIALIZED_NAME_OPERATIONS) - private List operations = null; + private List operations; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) - private List resources = null; + private List resources; public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) private String scope; + public V1RuleWithOperations() { + } public V1RuleWithOperations apiGroups(List apiGroups) { @@ -70,9 +95,7 @@ public V1RuleWithOperations addApiGroupsItem(String apiGroupsItem) { * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") - + @jakarta.annotation.Nullable public List getApiGroups() { return apiGroups; } @@ -101,9 +124,7 @@ public V1RuleWithOperations addApiVersionsItem(String apiVersionsItem) { * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") - + @jakarta.annotation.Nullable public List getApiVersions() { return apiVersions; } @@ -132,9 +153,7 @@ public V1RuleWithOperations addOperationsItem(String operationsItem) { * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") - + @jakarta.annotation.Nullable public List getOperations() { return operations; } @@ -163,9 +182,7 @@ public V1RuleWithOperations addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") - + @jakarta.annotation.Nullable public List getResources() { return resources; } @@ -186,9 +203,7 @@ public V1RuleWithOperations scope(String scope) { * 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 \"*\". * @return scope **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 \"*\".") - + @jakarta.annotation.Nullable public String getScope() { return scope; } @@ -199,8 +214,9 @@ public void setScope(String scope) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -220,7 +236,6 @@ public int hashCode() { return Objects.hash(apiGroups, apiVersions, operations, resources, scope); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -238,11 +253,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroups"); + openapiFields.add("apiVersions"); + openapiFields.add("operations"); + openapiFields.add("resources"); + openapiFields.add("scope"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RuleWithOperations + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RuleWithOperations is not found in the empty JSON string", V1RuleWithOperations.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RuleWithOperations.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RuleWithOperations` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroups` to be an array in the JSON string but got `%s`", jsonObj.get("apiGroups").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("apiVersions") != null && !jsonObj.get("apiVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersions` to be an array in the JSON string but got `%s`", jsonObj.get("apiVersions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("operations") != null && !jsonObj.get("operations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `operations` to be an array in the JSON string but got `%s`", jsonObj.get("operations").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + if ((jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) && !jsonObj.get("scope").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RuleWithOperations.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RuleWithOperations' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RuleWithOperations.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RuleWithOperations value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RuleWithOperations read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RuleWithOperations given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RuleWithOperations + * @throws IOException if the JSON string is invalid with respect to V1RuleWithOperations + */ + public static V1RuleWithOperations fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RuleWithOperations.class); + } + + /** + * Convert an instance of V1RuleWithOperations to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java index 386e721f6c..a9871884b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1Overhead; import io.kubernetes.client.openapi.models.V1Scheduling; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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/ */ @@ -56,6 +79,8 @@ public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObj @SerializedName(SERIALIZED_NAME_SCHEDULING) private V1Scheduling scheduling; + public V1RuntimeClass() { + } public V1RuntimeClass apiVersion(String apiVersion) { @@ -67,9 +92,7 @@ public V1RuntimeClass apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -90,8 +113,7 @@ public V1RuntimeClass handler(String handler) { * handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. * @return handler **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getHandler() { return handler; } @@ -112,9 +134,7 @@ public V1RuntimeClass kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -135,9 +155,7 @@ public V1RuntimeClass metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -158,9 +176,7 @@ public V1RuntimeClass overhead(V1Overhead overhead) { * Get overhead * @return overhead **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Overhead getOverhead() { return overhead; } @@ -181,9 +197,7 @@ public V1RuntimeClass scheduling(V1Scheduling scheduling) { * Get scheduling * @return scheduling **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Scheduling getScheduling() { return scheduling; } @@ -194,8 +208,9 @@ public void setScheduling(V1Scheduling scheduling) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -216,7 +231,6 @@ public int hashCode() { return Objects.hash(apiVersion, handler, kind, metadata, overhead, scheduling); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -235,11 +249,128 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("handler"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("overhead"); + openapiFields.add("scheduling"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("handler"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RuntimeClass + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RuntimeClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RuntimeClass is not found in the empty JSON string", V1RuntimeClass.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RuntimeClass.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RuntimeClass` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1RuntimeClass.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (!jsonObj.get("handler").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `handler` to be a primitive type in the JSON string but got `%s`", jsonObj.get("handler").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `overhead` + if (jsonObj.get("overhead") != null && !jsonObj.get("overhead").isJsonNull()) { + V1Overhead.validateJsonObject(jsonObj.getAsJsonObject("overhead")); + } + // validate the optional field `scheduling` + if (jsonObj.get("scheduling") != null && !jsonObj.get("scheduling").isJsonNull()) { + V1Scheduling.validateJsonObject(jsonObj.getAsJsonObject("scheduling")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RuntimeClass.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RuntimeClass' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RuntimeClass.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RuntimeClass value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RuntimeClass read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RuntimeClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RuntimeClass + * @throws IOException if the JSON string is invalid with respect to V1RuntimeClass + */ + public static V1RuntimeClass fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RuntimeClass.class); + } + + /** + * Convert an instance of V1RuntimeClass to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java index 682599d9cb..74d521c8a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1RuntimeClass; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * RuntimeClassList is a list of RuntimeClass objects. */ @@ -49,6 +72,8 @@ public class V1RuntimeClassList implements io.kubernetes.client.common.Kubernete @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1RuntimeClassList() { + } public V1RuntimeClassList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1RuntimeClassList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1RuntimeClassList items(List items) { } public V1RuntimeClassList addItemsItem(V1RuntimeClass itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1RuntimeClassList addItemsItem(V1RuntimeClass itemsItem) { * items is a list of schema objects. * @return items **/ - @ApiModelProperty(required = true, value = "items is a list of schema objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1RuntimeClassList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1RuntimeClassList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1RuntimeClassList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1RuntimeClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1RuntimeClassList is not found in the empty JSON string", V1RuntimeClassList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1RuntimeClassList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1RuntimeClassList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1RuntimeClassList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1RuntimeClass.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1RuntimeClassList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1RuntimeClassList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1RuntimeClassList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1RuntimeClassList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1RuntimeClassList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1RuntimeClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1RuntimeClassList + * @throws IOException if the JSON string is invalid with respect to V1RuntimeClassList + */ + public static V1RuntimeClassList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1RuntimeClassList.class); + } + + /** + * Convert an instance of V1RuntimeClassList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java index ee7a976eb9..34766c76cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SELinuxOptions are the labels to be applied to the container */ @@ -45,6 +68,8 @@ public class V1SELinuxOptions { @SerializedName(SERIALIZED_NAME_USER) private String user; + public V1SELinuxOptions() { + } public V1SELinuxOptions level(String level) { @@ -56,9 +81,7 @@ public V1SELinuxOptions level(String level) { * Level is SELinux level label that applies to the container. * @return level **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Level is SELinux level label that applies to the container.") - + @jakarta.annotation.Nullable public String getLevel() { return level; } @@ -79,9 +102,7 @@ public V1SELinuxOptions role(String role) { * Role is a SELinux role label that applies to the container. * @return role **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Role is a SELinux role label that applies to the container.") - + @jakarta.annotation.Nullable public String getRole() { return role; } @@ -102,9 +123,7 @@ public V1SELinuxOptions type(String type) { * Type is a SELinux type label that applies to the container. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Type is a SELinux type label that applies to the container.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -125,9 +144,7 @@ public V1SELinuxOptions user(String user) { * User is a SELinux user label that applies to the container. * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "User is a SELinux user label that applies to the container.") - + @jakarta.annotation.Nullable public String getUser() { return user; } @@ -138,8 +155,9 @@ public void setUser(String user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +176,6 @@ public int hashCode() { return Objects.hash(level, role, type, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +192,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("level"); + openapiFields.add("role"); + openapiFields.add("type"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SELinuxOptions + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SELinuxOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SELinuxOptions is not found in the empty JSON string", V1SELinuxOptions.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SELinuxOptions.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SELinuxOptions` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("level") != null && !jsonObj.get("level").isJsonNull()) && !jsonObj.get("level").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `level` to be a primitive type in the JSON string but got `%s`", jsonObj.get("level").toString())); + } + if ((jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) && !jsonObj.get("role").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SELinuxOptions.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SELinuxOptions' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SELinuxOptions.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SELinuxOptions value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SELinuxOptions read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SELinuxOptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SELinuxOptions + * @throws IOException if the JSON string is invalid with respect to V1SELinuxOptions + */ + public static V1SELinuxOptions fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SELinuxOptions.class); + } + + /** + * Convert an instance of V1SELinuxOptions to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java index 6e6f3309d6..0a61f1420e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ScaleSpec; import io.kubernetes.client.openapi.models.V1ScaleStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Scale represents a scaling request for a resource. */ @@ -52,6 +75,8 @@ public class V1Scale implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_STATUS) private V1ScaleStatus status; + public V1Scale() { + } public V1Scale apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1Scale apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1Scale kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1Scale metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1Scale spec(V1ScaleSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ScaleSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1Scale status(V1ScaleStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ScaleStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1ScaleStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Scale + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Scale.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Scale is not found in the empty JSON string", V1Scale.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Scale.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Scale` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ScaleSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1ScaleStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Scale.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Scale' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Scale.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Scale value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Scale read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Scale given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Scale + * @throws IOException if the JSON string is invalid with respect to V1Scale + */ + public static V1Scale fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Scale.class); + } + + /** + * Convert an instance of V1Scale to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java index b0d004ba2b..c825de9028 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ @@ -70,6 +93,8 @@ public class V1ScaleIOPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_NAME) private String volumeName; + public V1ScaleIOPersistentVolumeSource() { + } public V1ScaleIOPersistentVolumeSource fsType(String fsType) { @@ -81,9 +106,7 @@ public V1ScaleIOPersistentVolumeSource fsType(String fsType) { * 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\" * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -104,8 +127,7 @@ public V1ScaleIOPersistentVolumeSource gateway(String gateway) { * gateway is the host address of the ScaleIO API Gateway. * @return gateway **/ - @ApiModelProperty(required = true, value = "gateway is the host address of the ScaleIO API Gateway.") - + @jakarta.annotation.Nonnull public String getGateway() { return gateway; } @@ -126,9 +148,7 @@ public V1ScaleIOPersistentVolumeSource protectionDomain(String protectionDomain) * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. * @return protectionDomain **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.") - + @jakarta.annotation.Nullable public String getProtectionDomain() { return protectionDomain; } @@ -149,9 +169,7 @@ public V1ScaleIOPersistentVolumeSource readOnly(Boolean readOnly) { * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -172,8 +190,7 @@ public V1ScaleIOPersistentVolumeSource secretRef(V1SecretReference secretRef) { * Get secretRef * @return secretRef **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1SecretReference getSecretRef() { return secretRef; } @@ -194,9 +211,7 @@ public V1ScaleIOPersistentVolumeSource sslEnabled(Boolean sslEnabled) { * sslEnabled is the flag to enable/disable SSL communication with Gateway, default false * @return sslEnabled **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false") - + @jakarta.annotation.Nullable public Boolean getSslEnabled() { return sslEnabled; } @@ -217,9 +232,7 @@ public V1ScaleIOPersistentVolumeSource storageMode(String storageMode) { * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. * @return storageMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") - + @jakarta.annotation.Nullable public String getStorageMode() { return storageMode; } @@ -240,9 +253,7 @@ public V1ScaleIOPersistentVolumeSource storagePool(String storagePool) { * storagePool is the ScaleIO Storage Pool associated with the protection domain. * @return storagePool **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "storagePool is the ScaleIO Storage Pool associated with the protection domain.") - + @jakarta.annotation.Nullable public String getStoragePool() { return storagePool; } @@ -263,8 +274,7 @@ public V1ScaleIOPersistentVolumeSource system(String system) { * system is the name of the storage system as configured in ScaleIO. * @return system **/ - @ApiModelProperty(required = true, value = "system is the name of the storage system as configured in ScaleIO.") - + @jakarta.annotation.Nonnull public String getSystem() { return system; } @@ -285,9 +295,7 @@ public V1ScaleIOPersistentVolumeSource volumeName(String volumeName) { * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. * @return volumeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.") - + @jakarta.annotation.Nullable public String getVolumeName() { return volumeName; } @@ -298,8 +306,9 @@ public void setVolumeName(String volumeName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -324,7 +333,6 @@ public int hashCode() { return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -347,11 +355,136 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("gateway"); + openapiFields.add("protectionDomain"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("sslEnabled"); + openapiFields.add("storageMode"); + openapiFields.add("storagePool"); + openapiFields.add("system"); + openapiFields.add("volumeName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("gateway"); + openapiRequiredFields.add("secretRef"); + openapiRequiredFields.add("system"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ScaleIOPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ScaleIOPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ScaleIOPersistentVolumeSource is not found in the empty JSON string", V1ScaleIOPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ScaleIOPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ScaleIOPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ScaleIOPersistentVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("gateway").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `gateway` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gateway").toString())); + } + if ((jsonObj.get("protectionDomain") != null && !jsonObj.get("protectionDomain").isJsonNull()) && !jsonObj.get("protectionDomain").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protectionDomain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protectionDomain").toString())); + } + // validate the required field `secretRef` + V1SecretReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + if ((jsonObj.get("storageMode") != null && !jsonObj.get("storageMode").isJsonNull()) && !jsonObj.get("storageMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storageMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storageMode").toString())); + } + if ((jsonObj.get("storagePool") != null && !jsonObj.get("storagePool").isJsonNull()) && !jsonObj.get("storagePool").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storagePool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storagePool").toString())); + } + if (!jsonObj.get("system").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `system` to be a primitive type in the JSON string but got `%s`", jsonObj.get("system").toString())); + } + if ((jsonObj.get("volumeName") != null && !jsonObj.get("volumeName").isJsonNull()) && !jsonObj.get("volumeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ScaleIOPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ScaleIOPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ScaleIOPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ScaleIOPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ScaleIOPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ScaleIOPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScaleIOPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ScaleIOPersistentVolumeSource + */ + public static V1ScaleIOPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ScaleIOPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1ScaleIOPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java index f4c8a46a3e..c83794ccd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ScaleIOVolumeSource represents a persistent ScaleIO volume */ @@ -70,6 +93,8 @@ public class V1ScaleIOVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_NAME) private String volumeName; + public V1ScaleIOVolumeSource() { + } public V1ScaleIOVolumeSource fsType(String fsType) { @@ -81,9 +106,7 @@ public V1ScaleIOVolumeSource fsType(String fsType) { * 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\". * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -104,8 +127,7 @@ public V1ScaleIOVolumeSource gateway(String gateway) { * gateway is the host address of the ScaleIO API Gateway. * @return gateway **/ - @ApiModelProperty(required = true, value = "gateway is the host address of the ScaleIO API Gateway.") - + @jakarta.annotation.Nonnull public String getGateway() { return gateway; } @@ -126,9 +148,7 @@ public V1ScaleIOVolumeSource protectionDomain(String protectionDomain) { * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. * @return protectionDomain **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.") - + @jakarta.annotation.Nullable public String getProtectionDomain() { return protectionDomain; } @@ -149,9 +169,7 @@ public V1ScaleIOVolumeSource readOnly(Boolean readOnly) { * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -172,8 +190,7 @@ public V1ScaleIOVolumeSource secretRef(V1LocalObjectReference secretRef) { * Get secretRef * @return secretRef **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -194,9 +211,7 @@ public V1ScaleIOVolumeSource sslEnabled(Boolean sslEnabled) { * sslEnabled Flag enable/disable SSL communication with Gateway, default false * @return sslEnabled **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "sslEnabled Flag enable/disable SSL communication with Gateway, default false") - + @jakarta.annotation.Nullable public Boolean getSslEnabled() { return sslEnabled; } @@ -217,9 +232,7 @@ public V1ScaleIOVolumeSource storageMode(String storageMode) { * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. * @return storageMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") - + @jakarta.annotation.Nullable public String getStorageMode() { return storageMode; } @@ -240,9 +253,7 @@ public V1ScaleIOVolumeSource storagePool(String storagePool) { * storagePool is the ScaleIO Storage Pool associated with the protection domain. * @return storagePool **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "storagePool is the ScaleIO Storage Pool associated with the protection domain.") - + @jakarta.annotation.Nullable public String getStoragePool() { return storagePool; } @@ -263,8 +274,7 @@ public V1ScaleIOVolumeSource system(String system) { * system is the name of the storage system as configured in ScaleIO. * @return system **/ - @ApiModelProperty(required = true, value = "system is the name of the storage system as configured in ScaleIO.") - + @jakarta.annotation.Nonnull public String getSystem() { return system; } @@ -285,9 +295,7 @@ public V1ScaleIOVolumeSource volumeName(String volumeName) { * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. * @return volumeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.") - + @jakarta.annotation.Nullable public String getVolumeName() { return volumeName; } @@ -298,8 +306,9 @@ public void setVolumeName(String volumeName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -324,7 +333,6 @@ public int hashCode() { return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -347,11 +355,136 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("gateway"); + openapiFields.add("protectionDomain"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("sslEnabled"); + openapiFields.add("storageMode"); + openapiFields.add("storagePool"); + openapiFields.add("system"); + openapiFields.add("volumeName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("gateway"); + openapiRequiredFields.add("secretRef"); + openapiRequiredFields.add("system"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ScaleIOVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ScaleIOVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ScaleIOVolumeSource is not found in the empty JSON string", V1ScaleIOVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ScaleIOVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ScaleIOVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ScaleIOVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if (!jsonObj.get("gateway").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `gateway` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gateway").toString())); + } + if ((jsonObj.get("protectionDomain") != null && !jsonObj.get("protectionDomain").isJsonNull()) && !jsonObj.get("protectionDomain").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protectionDomain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protectionDomain").toString())); + } + // validate the required field `secretRef` + V1LocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + if ((jsonObj.get("storageMode") != null && !jsonObj.get("storageMode").isJsonNull()) && !jsonObj.get("storageMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storageMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storageMode").toString())); + } + if ((jsonObj.get("storagePool") != null && !jsonObj.get("storagePool").isJsonNull()) && !jsonObj.get("storagePool").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storagePool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storagePool").toString())); + } + if (!jsonObj.get("system").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `system` to be a primitive type in the JSON string but got `%s`", jsonObj.get("system").toString())); + } + if ((jsonObj.get("volumeName") != null && !jsonObj.get("volumeName").isJsonNull()) && !jsonObj.get("volumeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ScaleIOVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ScaleIOVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ScaleIOVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ScaleIOVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ScaleIOVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ScaleIOVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScaleIOVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1ScaleIOVolumeSource + */ + public static V1ScaleIOVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ScaleIOVolumeSource.class); + } + + /** + * Convert an instance of V1ScaleIOVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java index 877368bfaa..814b96f736 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ScaleSpec describes the attributes of a scale subresource. */ @@ -33,6 +56,8 @@ public class V1ScaleSpec { @SerializedName(SERIALIZED_NAME_REPLICAS) private Integer replicas; + public V1ScaleSpec() { + } public V1ScaleSpec replicas(Integer replicas) { @@ -44,9 +69,7 @@ public V1ScaleSpec replicas(Integer replicas) { * replicas is the desired number of instances for the scaled object. * @return replicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "replicas is the desired number of instances for the scaled object.") - + @jakarta.annotation.Nullable public Integer getReplicas() { return replicas; } @@ -57,8 +80,9 @@ public void setReplicas(Integer replicas) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -74,7 +98,6 @@ public int hashCode() { return Objects.hash(replicas); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -88,11 +111,94 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("replicas"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ScaleSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ScaleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ScaleSpec is not found in the empty JSON string", V1ScaleSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ScaleSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ScaleSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ScaleSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ScaleSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ScaleSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ScaleSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ScaleSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ScaleSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScaleSpec + * @throws IOException if the JSON string is invalid with respect to V1ScaleSpec + */ + public static V1ScaleSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ScaleSpec.class); + } + + /** + * Convert an instance of V1ScaleSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java index 8b0f454574..d6ce44f3ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ScaleStatus represents the current status of a scale subresource. */ @@ -37,6 +60,8 @@ public class V1ScaleStatus { @SerializedName(SERIALIZED_NAME_SELECTOR) private String selector; + public V1ScaleStatus() { + } public V1ScaleStatus replicas(Integer replicas) { @@ -48,8 +73,7 @@ public V1ScaleStatus replicas(Integer replicas) { * replicas is the actual number of observed instances of the scaled object. * @return replicas **/ - @ApiModelProperty(required = true, value = "replicas is the actual number of observed instances of the scaled object.") - + @jakarta.annotation.Nonnull public Integer getReplicas() { return replicas; } @@ -70,9 +94,7 @@ public V1ScaleStatus selector(String selector) { * 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/ * @return selector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public String getSelector() { return selector; } @@ -83,8 +105,9 @@ public void setSelector(String selector) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +124,6 @@ public int hashCode() { return Objects.hash(replicas, selector); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +138,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("replicas"); + openapiFields.add("selector"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("replicas"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ScaleStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ScaleStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ScaleStatus is not found in the empty JSON string", V1ScaleStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ScaleStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ScaleStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ScaleStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("selector") != null && !jsonObj.get("selector").isJsonNull()) && !jsonObj.get("selector").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `selector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selector").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ScaleStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ScaleStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ScaleStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ScaleStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ScaleStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ScaleStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScaleStatus + * @throws IOException if the JSON string is invalid with respect to V1ScaleStatus + */ + public static V1ScaleStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ScaleStatus.class); + } + + /** + * Convert an instance of V1ScaleStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java index 161a5ac4b8..1974e3c6b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java @@ -20,14 +20,37 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Toleration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. */ @@ -36,12 +59,14 @@ public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) - private Map nodeSelector = null; + private Map nodeSelector = new HashMap<>(); public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) - private List tolerations = null; + private List tolerations; + public V1Scheduling() { + } public V1Scheduling nodeSelector(Map nodeSelector) { @@ -61,9 +86,7 @@ public V1Scheduling putNodeSelectorItem(String key, String nodeSelectorItem) { * 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. * @return nodeSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getNodeSelector() { return nodeSelector; } @@ -92,9 +115,7 @@ public V1Scheduling addTolerationsItem(V1Toleration tolerationsItem) { * 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. * @return tolerations **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getTolerations() { return tolerations; } @@ -105,8 +126,9 @@ public void setTolerations(List tolerations) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -123,7 +145,6 @@ public int hashCode() { return Objects.hash(nodeSelector, tolerations); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -138,11 +159,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nodeSelector"); + openapiFields.add("tolerations"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Scheduling + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Scheduling.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Scheduling is not found in the empty JSON string", V1Scheduling.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Scheduling.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Scheduling` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { + JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); + if (jsonArraytolerations != null) { + // ensure the json data is an array + if (!jsonObj.get("tolerations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tolerations` to be an array in the JSON string but got `%s`", jsonObj.get("tolerations").toString())); + } + + // validate the optional field `tolerations` (array) + for (int i = 0; i < jsonArraytolerations.size(); i++) { + V1Toleration.validateJsonObject(jsonArraytolerations.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Scheduling.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Scheduling' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Scheduling.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Scheduling value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Scheduling read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Scheduling given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Scheduling + * @throws IOException if the JSON string is invalid with respect to V1Scheduling + */ + public static V1Scheduling fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Scheduling.class); + } + + /** + * Convert an instance of V1Scheduling to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java index 7ab365ee63..0ca97c1e3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. */ @@ -34,8 +57,10 @@ public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) - private List matchExpressions = null; + private List matchExpressions; + public V1ScopeSelector() { + } public V1ScopeSelector matchExpressions(List matchExpressions) { @@ -55,9 +80,7 @@ public V1ScopeSelector addMatchExpressionsItem(V1ScopedResourceSelectorRequireme * A list of scope selector requirements by scope of the resources. * @return matchExpressions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A list of scope selector requirements by scope of the resources.") - + @jakarta.annotation.Nullable public List getMatchExpressions() { return matchExpressions; } @@ -68,8 +91,9 @@ public void setMatchExpressions(List matchE } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(matchExpressions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("matchExpressions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ScopeSelector + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ScopeSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ScopeSelector is not found in the empty JSON string", V1ScopeSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ScopeSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ScopeSelector` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("matchExpressions") != null && !jsonObj.get("matchExpressions").isJsonNull()) { + JsonArray jsonArraymatchExpressions = jsonObj.getAsJsonArray("matchExpressions"); + if (jsonArraymatchExpressions != null) { + // ensure the json data is an array + if (!jsonObj.get("matchExpressions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchExpressions` to be an array in the JSON string but got `%s`", jsonObj.get("matchExpressions").toString())); + } + + // validate the optional field `matchExpressions` (array) + for (int i = 0; i < jsonArraymatchExpressions.size(); i++) { + V1ScopedResourceSelectorRequirement.validateJsonObject(jsonArraymatchExpressions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ScopeSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ScopeSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ScopeSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ScopeSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ScopeSelector read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ScopeSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScopeSelector + * @throws IOException if the JSON string is invalid with respect to V1ScopeSelector + */ + public static V1ScopeSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ScopeSelector.class); + } + + /** + * Convert an instance of V1ScopeSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java index 81144136af..5e8fb92cba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. */ @@ -41,8 +64,10 @@ public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) - private List values = null; + private List values; + public V1ScopedResourceSelectorRequirement() { + } public V1ScopedResourceSelectorRequirement operator(String operator) { @@ -54,8 +79,7 @@ public V1ScopedResourceSelectorRequirement operator(String operator) { * Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. * @return operator **/ - @ApiModelProperty(required = true, value = "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.") - + @jakarta.annotation.Nonnull public String getOperator() { return operator; } @@ -76,8 +100,7 @@ public V1ScopedResourceSelectorRequirement scopeName(String scopeName) { * The name of the scope that the selector applies to. * @return scopeName **/ - @ApiModelProperty(required = true, value = "The name of the scope that the selector applies to.") - + @jakarta.annotation.Nonnull public String getScopeName() { return scopeName; } @@ -106,9 +129,7 @@ public V1ScopedResourceSelectorRequirement addValuesItem(String valuesItem) { * 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. * @return values **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getValues() { return values; } @@ -119,8 +140,9 @@ public void setValues(List values) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -138,7 +160,6 @@ public int hashCode() { return Objects.hash(operator, scopeName, values); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -154,11 +175,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("operator"); + openapiFields.add("scopeName"); + openapiFields.add("values"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("operator"); + openapiRequiredFields.add("scopeName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ScopedResourceSelectorRequirement + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ScopedResourceSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ScopedResourceSelectorRequirement is not found in the empty JSON string", V1ScopedResourceSelectorRequirement.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ScopedResourceSelectorRequirement.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ScopedResourceSelectorRequirement` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ScopedResourceSelectorRequirement.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("operator").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + } + if (!jsonObj.get("scopeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `scopeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scopeName").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ScopedResourceSelectorRequirement.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ScopedResourceSelectorRequirement' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ScopedResourceSelectorRequirement.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ScopedResourceSelectorRequirement value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ScopedResourceSelectorRequirement read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ScopedResourceSelectorRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ScopedResourceSelectorRequirement + * @throws IOException if the JSON string is invalid with respect to V1ScopedResourceSelectorRequirement + */ + public static V1ScopedResourceSelectorRequirement fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ScopedResourceSelectorRequirement.class); + } + + /** + * Convert an instance of V1ScopedResourceSelectorRequirement to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java index 38dd12a299..efb4993bed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. */ @@ -37,6 +60,8 @@ public class V1SeccompProfile { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1SeccompProfile() { + } public V1SeccompProfile localhostProfile(String localhostProfile) { @@ -71,8 +96,7 @@ public V1SeccompProfile type(String type) { * 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. * @return type **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -83,8 +107,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +126,6 @@ public int hashCode() { return Objects.hash(localhostProfile, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +140,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("localhostProfile"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SeccompProfile + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SeccompProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SeccompProfile is not found in the empty JSON string", V1SeccompProfile.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SeccompProfile.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SeccompProfile` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1SeccompProfile.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("localhostProfile") != null && !jsonObj.get("localhostProfile").isJsonNull()) && !jsonObj.get("localhostProfile").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `localhostProfile` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localhostProfile").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SeccompProfile.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SeccompProfile' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SeccompProfile.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SeccompProfile value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SeccompProfile read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SeccompProfile given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SeccompProfile + * @throws IOException if the JSON string is invalid with respect to V1SeccompProfile + */ + public static V1SeccompProfile fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SeccompProfile.class); + } + + /** + * Convert an instance of V1SeccompProfile to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java index e311bf7a8c..64d68f6e27 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. @@ -39,7 +61,7 @@ public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private Map data = null; + private Map data = new HashMap<>(); public static final String SERIALIZED_NAME_IMMUTABLE = "immutable"; @SerializedName(SERIALIZED_NAME_IMMUTABLE) @@ -55,12 +77,14 @@ public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_STRING_DATA = "stringData"; @SerializedName(SERIALIZED_NAME_STRING_DATA) - private Map stringData = null; + private Map stringData = new HashMap<>(); public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1Secret() { + } public V1Secret apiVersion(String apiVersion) { @@ -72,9 +96,7 @@ public V1Secret apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -103,9 +125,7 @@ public V1Secret putDataItem(String key, byte[] dataItem) { * 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 * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Map getData() { return data; } @@ -126,9 +146,7 @@ public V1Secret immutable(Boolean immutable) { * 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. * @return immutable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getImmutable() { return immutable; } @@ -149,9 +167,7 @@ public V1Secret kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -172,9 +188,7 @@ public V1Secret metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -203,9 +217,7 @@ public V1Secret putStringDataItem(String key, String stringDataItem) { * 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. * @return stringData **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getStringData() { return stringData; } @@ -226,9 +238,7 @@ public V1Secret type(String type) { * Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -239,8 +249,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -262,7 +273,6 @@ public int hashCode() { return Objects.hash(apiVersion, data, immutable, kind, metadata, stringData, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -282,11 +292,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("data"); + openapiFields.add("immutable"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("stringData"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Secret + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Secret.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Secret is not found in the empty JSON string", V1Secret.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Secret.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Secret` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Secret.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Secret' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Secret.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Secret value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Secret read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Secret given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Secret + * @throws IOException if the JSON string is invalid with respect to V1Secret + */ + public static V1Secret fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Secret.class); + } + + /** + * Convert an instance of V1Secret to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java index 870d6249bd..a358ff5a1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -37,6 +60,8 @@ public class V1SecretEnvSource { @SerializedName(SERIALIZED_NAME_OPTIONAL) private Boolean optional; + public V1SecretEnvSource() { + } public V1SecretEnvSource name(String name) { @@ -48,9 +73,7 @@ public V1SecretEnvSource name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -71,9 +94,7 @@ public V1SecretEnvSource optional(Boolean optional) { * Specify whether the Secret must be defined * @return optional **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Specify whether the Secret must be defined") - + @jakarta.annotation.Nullable public Boolean getOptional() { return optional; } @@ -84,8 +105,9 @@ public void setOptional(Boolean optional) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(name, optional); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("optional"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SecretEnvSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SecretEnvSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SecretEnvSource is not found in the empty JSON string", V1SecretEnvSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SecretEnvSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SecretEnvSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SecretEnvSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SecretEnvSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SecretEnvSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SecretEnvSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SecretEnvSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SecretEnvSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretEnvSource + * @throws IOException if the JSON string is invalid with respect to V1SecretEnvSource + */ + public static V1SecretEnvSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SecretEnvSource.class); + } + + /** + * Convert an instance of V1SecretEnvSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java index 8cdf5b60a0..f33a815abf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SecretKeySelector selects a key of a Secret. */ @@ -41,6 +64,8 @@ public class V1SecretKeySelector { @SerializedName(SERIALIZED_NAME_OPTIONAL) private Boolean optional; + public V1SecretKeySelector() { + } public V1SecretKeySelector key(String key) { @@ -52,8 +77,7 @@ public V1SecretKeySelector key(String key) { * The key of the secret to select from. Must be a valid secret key. * @return key **/ - @ApiModelProperty(required = true, value = "The key of the secret to select from. Must be a valid secret key.") - + @jakarta.annotation.Nonnull public String getKey() { return key; } @@ -74,9 +98,7 @@ public V1SecretKeySelector name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -97,9 +119,7 @@ public V1SecretKeySelector optional(Boolean optional) { * Specify whether the Secret or its key must be defined * @return optional **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") - + @jakarta.annotation.Nullable public Boolean getOptional() { return optional; } @@ -110,8 +130,9 @@ public void setOptional(Boolean optional) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -129,7 +150,6 @@ public int hashCode() { return Objects.hash(key, name, optional); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -145,11 +165,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("name"); + openapiFields.add("optional"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SecretKeySelector + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SecretKeySelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SecretKeySelector is not found in the empty JSON string", V1SecretKeySelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SecretKeySelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SecretKeySelector` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1SecretKeySelector.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SecretKeySelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SecretKeySelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SecretKeySelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SecretKeySelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SecretKeySelector read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SecretKeySelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretKeySelector + * @throws IOException if the JSON string is invalid with respect to V1SecretKeySelector + */ + public static V1SecretKeySelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SecretKeySelector.class); + } + + /** + * Convert an instance of V1SecretKeySelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java index 9d5d226b0e..ada96ec417 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Secret; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SecretList is a list of Secret. */ @@ -49,6 +72,8 @@ public class V1SecretList implements io.kubernetes.client.common.KubernetesListO @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1SecretList() { + } public V1SecretList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1SecretList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1SecretList items(List items) { } public V1SecretList addItemsItem(V1Secret itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1SecretList addItemsItem(V1Secret itemsItem) { * Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret * @return items **/ - @ApiModelProperty(required = true, value = "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1SecretList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1SecretList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SecretList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SecretList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SecretList is not found in the empty JSON string", V1SecretList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SecretList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SecretList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1SecretList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Secret.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SecretList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SecretList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SecretList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SecretList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SecretList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SecretList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretList + * @throws IOException if the JSON string is invalid with respect to V1SecretList + */ + public static V1SecretList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SecretList.class); + } + + /** + * Convert an instance of V1SecretList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java index 00940bb26e..72a2f9f50f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1KeyToPath; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -34,7 +57,7 @@ public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; + private List items; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -44,6 +67,8 @@ public class V1SecretProjection { @SerializedName(SERIALIZED_NAME_OPTIONAL) private Boolean optional; + public V1SecretProjection() { + } public V1SecretProjection items(List items) { @@ -63,9 +88,7 @@ public V1SecretProjection addItemsItem(V1KeyToPath itemsItem) { * 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 '..'. * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 '..'.") - + @jakarta.annotation.Nullable public List getItems() { return items; } @@ -86,9 +109,7 @@ public V1SecretProjection name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -109,9 +130,7 @@ public V1SecretProjection optional(Boolean optional) { * optional field specify whether the Secret or its key must be defined * @return optional **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "optional field specify whether the Secret or its key must be defined") - + @jakarta.annotation.Nullable public Boolean getOptional() { return optional; } @@ -122,8 +141,9 @@ public void setOptional(Boolean optional) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -141,7 +161,6 @@ public int hashCode() { return Objects.hash(items, name, optional); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -157,11 +176,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("items"); + openapiFields.add("name"); + openapiFields.add("optional"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SecretProjection + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SecretProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SecretProjection is not found in the empty JSON string", V1SecretProjection.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SecretProjection.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SecretProjection` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + if (jsonArrayitems != null) { + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + // validate the optional field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1KeyToPath.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SecretProjection.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SecretProjection' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SecretProjection.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SecretProjection value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SecretProjection read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SecretProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretProjection + * @throws IOException if the JSON string is invalid with respect to V1SecretProjection + */ + public static V1SecretProjection fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SecretProjection.class); + } + + /** + * Convert an instance of V1SecretProjection to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java index 7c7e1b3b02..d5fd35e787 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace */ @@ -37,6 +60,8 @@ public class V1SecretReference { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; + public V1SecretReference() { + } public V1SecretReference name(String name) { @@ -48,9 +73,7 @@ public V1SecretReference name(String name) { * name is unique within a namespace to reference a secret resource. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "name is unique within a namespace to reference a secret resource.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -71,9 +94,7 @@ public V1SecretReference namespace(String namespace) { * namespace defines the space within which the secret name must be unique. * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "namespace defines the space within which the secret name must be unique.") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -84,8 +105,9 @@ public void setNamespace(String namespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(name, namespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("namespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SecretReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SecretReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SecretReference is not found in the empty JSON string", V1SecretReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SecretReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SecretReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SecretReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SecretReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SecretReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SecretReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SecretReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SecretReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretReference + * @throws IOException if the JSON string is invalid with respect to V1SecretReference + */ + public static V1SecretReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SecretReference.class); + } + + /** + * Convert an instance of V1SecretReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java index 027391f902..de2ab7c8d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1KeyToPath; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,7 +61,7 @@ public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; + private List items; public static final String SERIALIZED_NAME_OPTIONAL = "optional"; @SerializedName(SERIALIZED_NAME_OPTIONAL) @@ -48,6 +71,8 @@ public class V1SecretVolumeSource { @SerializedName(SERIALIZED_NAME_SECRET_NAME) private String secretName; + public V1SecretVolumeSource() { + } public V1SecretVolumeSource defaultMode(Integer defaultMode) { @@ -59,9 +84,7 @@ public V1SecretVolumeSource defaultMode(Integer defaultMode) { * 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. * @return defaultMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getDefaultMode() { return defaultMode; } @@ -90,9 +113,7 @@ public V1SecretVolumeSource addItemsItem(V1KeyToPath itemsItem) { * 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 '..'. * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 '..'.") - + @jakarta.annotation.Nullable public List getItems() { return items; } @@ -113,9 +134,7 @@ public V1SecretVolumeSource optional(Boolean optional) { * optional field specify whether the Secret or its keys must be defined * @return optional **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "optional field specify whether the Secret or its keys must be defined") - + @jakarta.annotation.Nullable public Boolean getOptional() { return optional; } @@ -136,9 +155,7 @@ public V1SecretVolumeSource secretName(String secretName) { * secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret * @return secretName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") - + @jakarta.annotation.Nullable public String getSecretName() { return secretName; } @@ -149,8 +166,9 @@ public void setSecretName(String secretName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -169,7 +187,6 @@ public int hashCode() { return Objects.hash(defaultMode, items, optional, secretName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -186,11 +203,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("defaultMode"); + openapiFields.add("items"); + openapiFields.add("optional"); + openapiFields.add("secretName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SecretVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SecretVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SecretVolumeSource is not found in the empty JSON string", V1SecretVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SecretVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SecretVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + if (jsonArrayitems != null) { + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + // validate the optional field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1KeyToPath.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("secretName") != null && !jsonObj.get("secretName").isJsonNull()) && !jsonObj.get("secretName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `secretName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SecretVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SecretVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SecretVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SecretVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SecretVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SecretVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecretVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1SecretVolumeSource + */ + public static V1SecretVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SecretVolumeSource.class); + } + + /** + * Convert an instance of V1SecretVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java index 0d93f295ae..f91cf8e8b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java @@ -23,10 +23,33 @@ import io.kubernetes.client.openapi.models.V1SELinuxOptions; import io.kubernetes.client.openapi.models.V1SeccompProfile; import io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -77,6 +100,8 @@ public class V1SecurityContext { @SerializedName(SERIALIZED_NAME_WINDOWS_OPTIONS) private V1WindowsSecurityContextOptions windowsOptions; + public V1SecurityContext() { + } public V1SecurityContext allowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { @@ -88,9 +113,7 @@ public V1SecurityContext allowPrivilegeEscalation(Boolean allowPrivilegeEscalati * 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. * @return allowPrivilegeEscalation **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation; } @@ -111,9 +134,7 @@ public V1SecurityContext capabilities(V1Capabilities capabilities) { * Get capabilities * @return capabilities **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1Capabilities getCapabilities() { return capabilities; } @@ -134,9 +155,7 @@ public V1SecurityContext privileged(Boolean privileged) { * 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. * @return privileged **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getPrivileged() { return privileged; } @@ -157,9 +176,7 @@ public V1SecurityContext procMount(String procMount) { * 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. * @return procMount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getProcMount() { return procMount; } @@ -180,9 +197,7 @@ public V1SecurityContext readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) * 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. * @return readOnlyRootFilesystem **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem; } @@ -203,9 +218,7 @@ public V1SecurityContext runAsGroup(Long runAsGroup) { * 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. * @return runAsGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getRunAsGroup() { return runAsGroup; } @@ -226,9 +239,7 @@ public V1SecurityContext runAsNonRoot(Boolean runAsNonRoot) { * 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. * @return runAsNonRoot **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getRunAsNonRoot() { return runAsNonRoot; } @@ -249,9 +260,7 @@ public V1SecurityContext runAsUser(Long runAsUser) { * 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. * @return runAsUser **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getRunAsUser() { return runAsUser; } @@ -272,9 +281,7 @@ public V1SecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { * Get seLinuxOptions * @return seLinuxOptions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } @@ -295,9 +302,7 @@ public V1SecurityContext seccompProfile(V1SeccompProfile seccompProfile) { * Get seccompProfile * @return seccompProfile **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SeccompProfile getSeccompProfile() { return seccompProfile; } @@ -318,9 +323,7 @@ public V1SecurityContext windowsOptions(V1WindowsSecurityContextOptions windowsO * Get windowsOptions * @return windowsOptions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1WindowsSecurityContextOptions getWindowsOptions() { return windowsOptions; } @@ -331,8 +334,9 @@ public void setWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -358,7 +362,6 @@ public int hashCode() { return Objects.hash(allowPrivilegeEscalation, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -382,11 +385,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allowPrivilegeEscalation"); + openapiFields.add("capabilities"); + openapiFields.add("privileged"); + openapiFields.add("procMount"); + openapiFields.add("readOnlyRootFilesystem"); + openapiFields.add("runAsGroup"); + openapiFields.add("runAsNonRoot"); + openapiFields.add("runAsUser"); + openapiFields.add("seLinuxOptions"); + openapiFields.add("seccompProfile"); + openapiFields.add("windowsOptions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SecurityContext + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SecurityContext.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SecurityContext is not found in the empty JSON string", V1SecurityContext.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SecurityContext.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SecurityContext` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `capabilities` + if (jsonObj.get("capabilities") != null && !jsonObj.get("capabilities").isJsonNull()) { + V1Capabilities.validateJsonObject(jsonObj.getAsJsonObject("capabilities")); + } + if ((jsonObj.get("procMount") != null && !jsonObj.get("procMount").isJsonNull()) && !jsonObj.get("procMount").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `procMount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("procMount").toString())); + } + // validate the optional field `seLinuxOptions` + if (jsonObj.get("seLinuxOptions") != null && !jsonObj.get("seLinuxOptions").isJsonNull()) { + V1SELinuxOptions.validateJsonObject(jsonObj.getAsJsonObject("seLinuxOptions")); + } + // validate the optional field `seccompProfile` + if (jsonObj.get("seccompProfile") != null && !jsonObj.get("seccompProfile").isJsonNull()) { + V1SeccompProfile.validateJsonObject(jsonObj.getAsJsonObject("seccompProfile")); + } + // validate the optional field `windowsOptions` + if (jsonObj.get("windowsOptions") != null && !jsonObj.get("windowsOptions").isJsonNull()) { + V1WindowsSecurityContextOptions.validateJsonObject(jsonObj.getAsJsonObject("windowsOptions")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SecurityContext.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SecurityContext' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SecurityContext.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SecurityContext value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SecurityContext read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SecurityContext given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SecurityContext + * @throws IOException if the JSON string is invalid with respect to V1SecurityContext + */ + public static V1SecurityContext fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SecurityContext.class); + } + + /** + * Convert an instance of V1SecurityContext to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java index 7d97bfee53..0ac4d06821 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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 */ @@ -52,6 +75,8 @@ public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.Ku @SerializedName(SERIALIZED_NAME_STATUS) private V1SubjectAccessReviewStatus status; + public V1SelfSubjectAccessReview() { + } public V1SelfSubjectAccessReview apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1SelfSubjectAccessReview apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1SelfSubjectAccessReview kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1SelfSubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1SelfSubjectAccessReview spec(V1SelfSubjectAccessReviewSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1SelfSubjectAccessReviewSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1SelfSubjectAccessReview status(V1SubjectAccessReviewStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SubjectAccessReviewStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1SubjectAccessReviewStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SelfSubjectAccessReview + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SelfSubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SelfSubjectAccessReview is not found in the empty JSON string", V1SelfSubjectAccessReview.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SelfSubjectAccessReview.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SelfSubjectAccessReview` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1SelfSubjectAccessReview.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1SelfSubjectAccessReviewSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1SubjectAccessReviewStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SelfSubjectAccessReview.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SelfSubjectAccessReview' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SelfSubjectAccessReview.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SelfSubjectAccessReview value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SelfSubjectAccessReview read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SelfSubjectAccessReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectAccessReview + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectAccessReview + */ + public static V1SelfSubjectAccessReview fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SelfSubjectAccessReview.class); + } + + /** + * Convert an instance of V1SelfSubjectAccessReview to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java index 43d5fd70fc..e0fb59883e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NonResourceAttributes; import io.kubernetes.client.openapi.models.V1ResourceAttributes; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @@ -39,6 +62,8 @@ public class V1SelfSubjectAccessReviewSpec { @SerializedName(SERIALIZED_NAME_RESOURCE_ATTRIBUTES) private V1ResourceAttributes resourceAttributes; + public V1SelfSubjectAccessReviewSpec() { + } public V1SelfSubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { @@ -50,9 +75,7 @@ public V1SelfSubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttribut * Get nonResourceAttributes * @return nonResourceAttributes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } @@ -73,9 +96,7 @@ public V1SelfSubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes res * Get resourceAttributes * @return resourceAttributes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceAttributes getResourceAttributes() { return resourceAttributes; } @@ -86,8 +107,9 @@ public void setResourceAttributes(V1ResourceAttributes resourceAttributes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -104,7 +126,6 @@ public int hashCode() { return Objects.hash(nonResourceAttributes, resourceAttributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -119,11 +140,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nonResourceAttributes"); + openapiFields.add("resourceAttributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SelfSubjectAccessReviewSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SelfSubjectAccessReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SelfSubjectAccessReviewSpec is not found in the empty JSON string", V1SelfSubjectAccessReviewSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SelfSubjectAccessReviewSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SelfSubjectAccessReviewSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `nonResourceAttributes` + if (jsonObj.get("nonResourceAttributes") != null && !jsonObj.get("nonResourceAttributes").isJsonNull()) { + V1NonResourceAttributes.validateJsonObject(jsonObj.getAsJsonObject("nonResourceAttributes")); + } + // validate the optional field `resourceAttributes` + if (jsonObj.get("resourceAttributes") != null && !jsonObj.get("resourceAttributes").isJsonNull()) { + V1ResourceAttributes.validateJsonObject(jsonObj.getAsJsonObject("resourceAttributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SelfSubjectAccessReviewSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SelfSubjectAccessReviewSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SelfSubjectAccessReviewSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SelfSubjectAccessReviewSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SelfSubjectAccessReviewSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SelfSubjectAccessReviewSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectAccessReviewSpec + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectAccessReviewSpec + */ + public static V1SelfSubjectAccessReviewSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SelfSubjectAccessReviewSpec.class); + } + + /** + * Convert an instance of V1SelfSubjectAccessReviewSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java index 61e4d6ffdf..6ddd8b7928 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec; import io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.Kub @SerializedName(SERIALIZED_NAME_STATUS) private V1SubjectRulesReviewStatus status; + public V1SelfSubjectRulesReview() { + } public V1SelfSubjectRulesReview apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1SelfSubjectRulesReview apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1SelfSubjectRulesReview kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1SelfSubjectRulesReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1SelfSubjectRulesReview spec(V1SelfSubjectRulesReviewSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1SelfSubjectRulesReviewSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1SelfSubjectRulesReview status(V1SubjectRulesReviewStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SubjectRulesReviewStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1SubjectRulesReviewStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SelfSubjectRulesReview + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SelfSubjectRulesReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SelfSubjectRulesReview is not found in the empty JSON string", V1SelfSubjectRulesReview.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SelfSubjectRulesReview.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SelfSubjectRulesReview` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1SelfSubjectRulesReview.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1SelfSubjectRulesReviewSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1SubjectRulesReviewStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SelfSubjectRulesReview.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SelfSubjectRulesReview' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SelfSubjectRulesReview.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SelfSubjectRulesReview value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SelfSubjectRulesReview read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SelfSubjectRulesReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectRulesReview + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectRulesReview + */ + public static V1SelfSubjectRulesReview fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SelfSubjectRulesReview.class); + } + + /** + * Convert an instance of V1SelfSubjectRulesReview to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java index 4a28aca446..dba98aa555 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. */ @@ -33,6 +56,8 @@ public class V1SelfSubjectRulesReviewSpec { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; + public V1SelfSubjectRulesReviewSpec() { + } public V1SelfSubjectRulesReviewSpec namespace(String namespace) { @@ -44,9 +69,7 @@ public V1SelfSubjectRulesReviewSpec namespace(String namespace) { * Namespace to evaluate rules for. Required. * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Namespace to evaluate rules for. Required.") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -57,8 +80,9 @@ public void setNamespace(String namespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -74,7 +98,6 @@ public int hashCode() { return Objects.hash(namespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -88,11 +111,97 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("namespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SelfSubjectRulesReviewSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SelfSubjectRulesReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SelfSubjectRulesReviewSpec is not found in the empty JSON string", V1SelfSubjectRulesReviewSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SelfSubjectRulesReviewSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SelfSubjectRulesReviewSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SelfSubjectRulesReviewSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SelfSubjectRulesReviewSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SelfSubjectRulesReviewSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SelfSubjectRulesReviewSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SelfSubjectRulesReviewSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SelfSubjectRulesReviewSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SelfSubjectRulesReviewSpec + * @throws IOException if the JSON string is invalid with respect to V1SelfSubjectRulesReviewSpec + */ + public static V1SelfSubjectRulesReviewSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SelfSubjectRulesReviewSpec.class); + } + + /** + * Convert an instance of V1SelfSubjectRulesReviewSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java index 5653b00fe4..24f583fbd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. */ @@ -37,6 +60,8 @@ public class V1ServerAddressByClientCIDR { @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS) private String serverAddress; + public V1ServerAddressByClientCIDR() { + } public V1ServerAddressByClientCIDR clientCIDR(String clientCIDR) { @@ -48,8 +73,7 @@ public V1ServerAddressByClientCIDR clientCIDR(String clientCIDR) { * The CIDR with which clients can match their IP to figure out the server address that they should use. * @return clientCIDR **/ - @ApiModelProperty(required = true, value = "The CIDR with which clients can match their IP to figure out the server address that they should use.") - + @jakarta.annotation.Nonnull public String getClientCIDR() { return clientCIDR; } @@ -70,8 +94,7 @@ public V1ServerAddressByClientCIDR serverAddress(String serverAddress) { * Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. * @return serverAddress **/ - @ApiModelProperty(required = true, value = "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.") - + @jakarta.annotation.Nonnull public String getServerAddress() { return serverAddress; } @@ -82,8 +105,9 @@ public void setServerAddress(String serverAddress) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(clientCIDR, serverAddress); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("clientCIDR"); + openapiFields.add("serverAddress"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("clientCIDR"); + openapiRequiredFields.add("serverAddress"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServerAddressByClientCIDR + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServerAddressByClientCIDR.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServerAddressByClientCIDR is not found in the empty JSON string", V1ServerAddressByClientCIDR.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServerAddressByClientCIDR.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServerAddressByClientCIDR` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ServerAddressByClientCIDR.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("clientCIDR").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `clientCIDR` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientCIDR").toString())); + } + if (!jsonObj.get("serverAddress").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `serverAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serverAddress").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServerAddressByClientCIDR.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServerAddressByClientCIDR' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServerAddressByClientCIDR.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServerAddressByClientCIDR value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServerAddressByClientCIDR read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServerAddressByClientCIDR given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServerAddressByClientCIDR + * @throws IOException if the JSON string is invalid with respect to V1ServerAddressByClientCIDR + */ + public static V1ServerAddressByClientCIDR fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServerAddressByClientCIDR.class); + } + + /** + * Convert an instance of V1ServerAddressByClientCIDR to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java index 8890936892..db1176b95a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ServiceSpec; import io.kubernetes.client.openapi.models.V1ServiceStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1Service implements io.kubernetes.client.common.KubernetesObject { @SerializedName(SERIALIZED_NAME_STATUS) private V1ServiceStatus status; + public V1Service() { + } public V1Service apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1Service apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1Service kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1Service metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1Service spec(V1ServiceSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ServiceSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1Service status(V1ServiceStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ServiceStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1ServiceStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Service + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Service.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Service is not found in the empty JSON string", V1Service.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Service.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Service` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ServiceSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1ServiceStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Service.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Service' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Service.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Service value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Service read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Service given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Service + * @throws IOException if the JSON string is invalid with respect to V1Service + */ + public static V1Service fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Service.class); + } + + /** + * Convert an instance of V1Service to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java index 5908c2460b..407de7226d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1LocalObjectReference; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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 */ @@ -44,7 +67,7 @@ public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesO public static final String SERIALIZED_NAME_IMAGE_PULL_SECRETS = "imagePullSecrets"; @SerializedName(SERIALIZED_NAME_IMAGE_PULL_SECRETS) - private List imagePullSecrets = null; + private List imagePullSecrets; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -56,8 +79,10 @@ public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesO public static final String SERIALIZED_NAME_SECRETS = "secrets"; @SerializedName(SERIALIZED_NAME_SECRETS) - private List secrets = null; + private List secrets; + public V1ServiceAccount() { + } public V1ServiceAccount apiVersion(String apiVersion) { @@ -69,9 +94,7 @@ public V1ServiceAccount apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -92,9 +115,7 @@ public V1ServiceAccount automountServiceAccountToken(Boolean automountServiceAcc * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. * @return automountServiceAccountToken **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.") - + @jakarta.annotation.Nullable public Boolean getAutomountServiceAccountToken() { return automountServiceAccountToken; } @@ -123,9 +144,7 @@ public V1ServiceAccount addImagePullSecretsItem(V1LocalObjectReference imagePull * 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 * @return imagePullSecrets **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getImagePullSecrets() { return imagePullSecrets; } @@ -146,9 +165,7 @@ public V1ServiceAccount kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -169,9 +186,7 @@ public V1ServiceAccount metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -200,9 +215,7 @@ public V1ServiceAccount addSecretsItem(V1ObjectReference secretsItem) { * 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 * @return secrets **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getSecrets() { return secrets; } @@ -213,8 +226,9 @@ public void setSecrets(List secrets) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -235,7 +249,6 @@ public int hashCode() { return Objects.hash(apiVersion, automountServiceAccountToken, imagePullSecrets, kind, metadata, secrets); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -254,11 +267,137 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("automountServiceAccountToken"); + openapiFields.add("imagePullSecrets"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("secrets"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServiceAccount + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServiceAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceAccount is not found in the empty JSON string", V1ServiceAccount.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServiceAccount.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceAccount` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (jsonObj.get("imagePullSecrets") != null && !jsonObj.get("imagePullSecrets").isJsonNull()) { + JsonArray jsonArrayimagePullSecrets = jsonObj.getAsJsonArray("imagePullSecrets"); + if (jsonArrayimagePullSecrets != null) { + // ensure the json data is an array + if (!jsonObj.get("imagePullSecrets").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `imagePullSecrets` to be an array in the JSON string but got `%s`", jsonObj.get("imagePullSecrets").toString())); + } + + // validate the optional field `imagePullSecrets` (array) + for (int i = 0; i < jsonArrayimagePullSecrets.size(); i++) { + V1LocalObjectReference.validateJsonObject(jsonArrayimagePullSecrets.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if (jsonObj.get("secrets") != null && !jsonObj.get("secrets").isJsonNull()) { + JsonArray jsonArraysecrets = jsonObj.getAsJsonArray("secrets"); + if (jsonArraysecrets != null) { + // ensure the json data is an array + if (!jsonObj.get("secrets").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `secrets` to be an array in the JSON string but got `%s`", jsonObj.get("secrets").toString())); + } + + // validate the optional field `secrets` (array) + for (int i = 0; i < jsonArraysecrets.size(); i++) { + V1ObjectReference.validateJsonObject(jsonArraysecrets.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceAccount.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceAccount' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceAccount.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceAccount value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceAccount read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceAccount given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceAccount + * @throws IOException if the JSON string is invalid with respect to V1ServiceAccount + */ + public static V1ServiceAccount fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceAccount.class); + } + + /** + * Convert an instance of V1ServiceAccount to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java index 19b288ed82..caf1e2ba40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ServiceAccount; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceAccountList is a list of ServiceAccount objects */ @@ -49,6 +72,8 @@ public class V1ServiceAccountList implements io.kubernetes.client.common.Kuberne @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ServiceAccountList() { + } public V1ServiceAccountList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ServiceAccountList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ServiceAccountList items(List items) { } public V1ServiceAccountList addItemsItem(V1ServiceAccount itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ServiceAccountList addItemsItem(V1ServiceAccount itemsItem) { * List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ * @return items **/ - @ApiModelProperty(required = true, value = "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ServiceAccountList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ServiceAccountList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServiceAccountList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServiceAccountList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceAccountList is not found in the empty JSON string", V1ServiceAccountList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServiceAccountList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceAccountList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ServiceAccountList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ServiceAccount.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceAccountList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceAccountList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceAccountList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceAccountList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceAccountList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceAccountList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceAccountList + * @throws IOException if the JSON string is invalid with respect to V1ServiceAccountList + */ + public static V1ServiceAccountList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceAccountList.class); + } + + /** + * Convert an instance of V1ServiceAccountList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java index 67f827be4e..fe3396ded7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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). */ @@ -41,6 +64,8 @@ public class V1ServiceAccountTokenProjection { @SerializedName(SERIALIZED_NAME_PATH) private String path; + public V1ServiceAccountTokenProjection() { + } public V1ServiceAccountTokenProjection audience(String audience) { @@ -52,9 +77,7 @@ public V1ServiceAccountTokenProjection audience(String audience) { * 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. * @return audience **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getAudience() { return audience; } @@ -75,9 +98,7 @@ public V1ServiceAccountTokenProjection expirationSeconds(Long expirationSeconds) * 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. * @return expirationSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getExpirationSeconds() { return expirationSeconds; } @@ -98,8 +119,7 @@ public V1ServiceAccountTokenProjection path(String path) { * path is the path relative to the mount point of the file to project the token into. * @return path **/ - @ApiModelProperty(required = true, value = "path is the path relative to the mount point of the file to project the token into.") - + @jakarta.annotation.Nonnull public String getPath() { return path; } @@ -110,8 +130,9 @@ public void setPath(String path) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -129,7 +150,6 @@ public int hashCode() { return Objects.hash(audience, expirationSeconds, path); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -145,11 +165,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("audience"); + openapiFields.add("expirationSeconds"); + openapiFields.add("path"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("path"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServiceAccountTokenProjection + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServiceAccountTokenProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceAccountTokenProjection is not found in the empty JSON string", V1ServiceAccountTokenProjection.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServiceAccountTokenProjection.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceAccountTokenProjection` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ServiceAccountTokenProjection.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("audience") != null && !jsonObj.get("audience").isJsonNull()) && !jsonObj.get("audience").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `audience` to be a primitive type in the JSON string but got `%s`", jsonObj.get("audience").toString())); + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceAccountTokenProjection.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceAccountTokenProjection' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceAccountTokenProjection.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceAccountTokenProjection value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceAccountTokenProjection read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceAccountTokenProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceAccountTokenProjection + * @throws IOException if the JSON string is invalid with respect to V1ServiceAccountTokenProjection + */ + public static V1ServiceAccountTokenProjection fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceAccountTokenProjection.class); + } + + /** + * Convert an instance of V1ServiceAccountTokenProjection to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java index fbf754cddf..51c03fe3bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceBackendPort is the service port being referenced. */ @@ -37,6 +60,8 @@ public class V1ServiceBackendPort { @SerializedName(SERIALIZED_NAME_NUMBER) private Integer number; + public V1ServiceBackendPort() { + } public V1ServiceBackendPort name(String name) { @@ -48,9 +73,7 @@ public V1ServiceBackendPort name(String name) { * name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\". * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -71,9 +94,7 @@ public V1ServiceBackendPort number(Integer number) { * number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\". * @return number **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".") - + @jakarta.annotation.Nullable public Integer getNumber() { return number; } @@ -84,8 +105,9 @@ public void setNumber(Integer number) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(name, number); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("number"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServiceBackendPort + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServiceBackendPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceBackendPort is not found in the empty JSON string", V1ServiceBackendPort.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServiceBackendPort.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceBackendPort` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceBackendPort.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceBackendPort' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceBackendPort.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceBackendPort value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceBackendPort read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceBackendPort given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceBackendPort + * @throws IOException if the JSON string is invalid with respect to V1ServiceBackendPort + */ + public static V1ServiceBackendPort fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceBackendPort.class); + } + + /** + * Convert an instance of V1ServiceBackendPort to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java index c596d9a07a..54ff2c6ce2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Service; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceList holds a list of services. */ @@ -49,6 +72,8 @@ public class V1ServiceList implements io.kubernetes.client.common.KubernetesList @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ServiceList() { + } public V1ServiceList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ServiceList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ServiceList items(List items) { } public V1ServiceList addItemsItem(V1Service itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ServiceList addItemsItem(V1Service itemsItem) { * List of services * @return items **/ - @ApiModelProperty(required = true, value = "List of services") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ServiceList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ServiceList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServiceList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServiceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceList is not found in the empty JSON string", V1ServiceList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServiceList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ServiceList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1Service.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceList + * @throws IOException if the JSON string is invalid with respect to V1ServiceList + */ + public static V1ServiceList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceList.class); + } + + /** + * Convert an instance of V1ServiceList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java index 870f4a6989..67f45aacc3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServicePort contains information on service's port. */ @@ -54,6 +77,8 @@ public class V1ServicePort { @SerializedName(SERIALIZED_NAME_TARGET_PORT) private IntOrString targetPort; + public V1ServicePort() { + } public V1ServicePort appProtocol(String appProtocol) { @@ -88,9 +113,7 @@ public V1ServicePort name(String name) { * 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. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -111,9 +134,7 @@ public V1ServicePort nodePort(Integer nodePort) { * 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 * @return nodePort **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Integer getNodePort() { return nodePort; } @@ -134,8 +155,7 @@ public V1ServicePort port(Integer port) { * The port that will be exposed by this service. * @return port **/ - @ApiModelProperty(required = true, value = "The port that will be exposed by this service.") - + @jakarta.annotation.Nonnull public Integer getPort() { return port; } @@ -156,9 +176,7 @@ public V1ServicePort protocol(String protocol) { * The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. * @return protocol **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.") - + @jakarta.annotation.Nullable public String getProtocol() { return protocol; } @@ -179,9 +197,7 @@ public V1ServicePort targetPort(IntOrString targetPort) { * 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. * @return targetPort **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public IntOrString getTargetPort() { return targetPort; } @@ -192,8 +208,9 @@ public void setTargetPort(IntOrString targetPort) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -214,7 +231,6 @@ public int hashCode() { return Objects.hash(appProtocol, name, nodePort, port, protocol, targetPort); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -233,11 +249,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("appProtocol"); + openapiFields.add("name"); + openapiFields.add("nodePort"); + openapiFields.add("port"); + openapiFields.add("protocol"); + openapiFields.add("targetPort"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("port"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServicePort + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServicePort.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServicePort is not found in the empty JSON string", V1ServicePort.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServicePort.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServicePort` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ServicePort.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("appProtocol") != null && !jsonObj.get("appProtocol").isJsonNull()) && !jsonObj.get("appProtocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `appProtocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("appProtocol").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("protocol") != null && !jsonObj.get("protocol").isJsonNull()) && !jsonObj.get("protocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); + } + if ((jsonObj.get("targetPort") != null && !jsonObj.get("targetPort").isJsonNull()) && !jsonObj.get("targetPort").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `targetPort` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetPort").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServicePort.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServicePort' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServicePort.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServicePort value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServicePort read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServicePort given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServicePort + * @throws IOException if the JSON string is invalid with respect to V1ServicePort + */ + public static V1ServicePort fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServicePort.class); + } + + /** + * Convert an instance of V1ServicePort to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java index b747044474..baea765071 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java @@ -21,14 +21,37 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ServicePort; import io.kubernetes.client.openapi.models.V1SessionAffinityConfig; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceSpec describes the attributes that a user creates on a service. */ @@ -45,11 +68,11 @@ public class V1ServiceSpec { public static final String SERIALIZED_NAME_CLUSTER_I_PS = "clusterIPs"; @SerializedName(SERIALIZED_NAME_CLUSTER_I_PS) - private List clusterIPs = null; + private List clusterIPs; public static final String SERIALIZED_NAME_EXTERNAL_I_PS = "externalIPs"; @SerializedName(SERIALIZED_NAME_EXTERNAL_I_PS) - private List externalIPs = null; + private List externalIPs; public static final String SERIALIZED_NAME_EXTERNAL_NAME = "externalName"; @SerializedName(SERIALIZED_NAME_EXTERNAL_NAME) @@ -69,7 +92,7 @@ public class V1ServiceSpec { public static final String SERIALIZED_NAME_IP_FAMILIES = "ipFamilies"; @SerializedName(SERIALIZED_NAME_IP_FAMILIES) - private List ipFamilies = null; + private List ipFamilies; public static final String SERIALIZED_NAME_IP_FAMILY_POLICY = "ipFamilyPolicy"; @SerializedName(SERIALIZED_NAME_IP_FAMILY_POLICY) @@ -85,11 +108,11 @@ public class V1ServiceSpec { public static final String SERIALIZED_NAME_LOAD_BALANCER_SOURCE_RANGES = "loadBalancerSourceRanges"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER_SOURCE_RANGES) - private List loadBalancerSourceRanges = null; + private List loadBalancerSourceRanges; public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; + private List ports; public static final String SERIALIZED_NAME_PUBLISH_NOT_READY_ADDRESSES = "publishNotReadyAddresses"; @SerializedName(SERIALIZED_NAME_PUBLISH_NOT_READY_ADDRESSES) @@ -97,7 +120,7 @@ public class V1ServiceSpec { public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) - private Map selector = null; + private Map selector = new HashMap<>(); public static final String SERIALIZED_NAME_SESSION_AFFINITY = "sessionAffinity"; @SerializedName(SERIALIZED_NAME_SESSION_AFFINITY) @@ -111,6 +134,8 @@ public class V1ServiceSpec { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1ServiceSpec() { + } public V1ServiceSpec allocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { @@ -122,9 +147,7 @@ public V1ServiceSpec allocateLoadBalancerNodePorts(Boolean allocateLoadBalancerN * 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. * @return allocateLoadBalancerNodePorts **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getAllocateLoadBalancerNodePorts() { return allocateLoadBalancerNodePorts; } @@ -145,9 +168,7 @@ public V1ServiceSpec clusterIP(String clusterIP) { * 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 * @return clusterIP **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getClusterIP() { return clusterIP; } @@ -176,9 +197,7 @@ public V1ServiceSpec addClusterIPsItem(String clusterIPsItem) { * 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 * @return clusterIPs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getClusterIPs() { return clusterIPs; } @@ -207,9 +226,7 @@ public V1ServiceSpec addExternalIPsItem(String externalIPsItem) { * 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. * @return externalIPs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getExternalIPs() { return externalIPs; } @@ -230,9 +247,7 @@ public V1ServiceSpec externalName(String externalName) { * 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\". * @return externalName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\".") - + @jakarta.annotation.Nullable public String getExternalName() { return externalName; } @@ -253,9 +268,7 @@ public V1ServiceSpec externalTrafficPolicy(String externalTrafficPolicy) { * 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. * @return externalTrafficPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getExternalTrafficPolicy() { return externalTrafficPolicy; } @@ -276,9 +289,7 @@ public V1ServiceSpec healthCheckNodePort(Integer healthCheckNodePort) { * 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. * @return healthCheckNodePort **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getHealthCheckNodePort() { return healthCheckNodePort; } @@ -299,9 +310,7 @@ public V1ServiceSpec internalTrafficPolicy(String internalTrafficPolicy) { * 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). * @return internalTrafficPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public String getInternalTrafficPolicy() { return internalTrafficPolicy; } @@ -330,9 +339,7 @@ public V1ServiceSpec addIpFamiliesItem(String ipFamiliesItem) { * 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. * @return ipFamilies **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getIpFamilies() { return ipFamilies; } @@ -353,9 +360,7 @@ public V1ServiceSpec ipFamilyPolicy(String ipFamilyPolicy) { * 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. * @return ipFamilyPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getIpFamilyPolicy() { return ipFamilyPolicy; } @@ -376,9 +381,7 @@ public V1ServiceSpec loadBalancerClass(String loadBalancerClass) { * 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. * @return loadBalancerClass **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getLoadBalancerClass() { return loadBalancerClass; } @@ -430,9 +433,7 @@ public V1ServiceSpec addLoadBalancerSourceRangesItem(String loadBalancerSourceRa * 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/ * @return loadBalancerSourceRanges **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public List getLoadBalancerSourceRanges() { return loadBalancerSourceRanges; } @@ -461,9 +462,7 @@ public V1ServiceSpec addPortsItem(V1ServicePort portsItem) { * 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 * @return ports **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getPorts() { return ports; } @@ -484,9 +483,7 @@ public V1ServiceSpec publishNotReadyAddresses(Boolean publishNotReadyAddresses) * 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. * @return publishNotReadyAddresses **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getPublishNotReadyAddresses() { return publishNotReadyAddresses; } @@ -515,9 +512,7 @@ public V1ServiceSpec putSelectorItem(String key, String selectorItem) { * 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/ * @return selector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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/") - + @jakarta.annotation.Nullable public Map getSelector() { return selector; } @@ -538,9 +533,7 @@ public V1ServiceSpec sessionAffinity(String sessionAffinity) { * 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 * @return sessionAffinity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getSessionAffinity() { return sessionAffinity; } @@ -561,9 +554,7 @@ public V1ServiceSpec sessionAffinityConfig(V1SessionAffinityConfig sessionAffini * Get sessionAffinityConfig * @return sessionAffinityConfig **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SessionAffinityConfig getSessionAffinityConfig() { return sessionAffinityConfig; } @@ -584,9 +575,7 @@ public V1ServiceSpec type(String type) { * 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 * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -597,8 +586,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -632,7 +622,6 @@ public int hashCode() { return Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -664,11 +653,173 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allocateLoadBalancerNodePorts"); + openapiFields.add("clusterIP"); + openapiFields.add("clusterIPs"); + openapiFields.add("externalIPs"); + openapiFields.add("externalName"); + openapiFields.add("externalTrafficPolicy"); + openapiFields.add("healthCheckNodePort"); + openapiFields.add("internalTrafficPolicy"); + openapiFields.add("ipFamilies"); + openapiFields.add("ipFamilyPolicy"); + openapiFields.add("loadBalancerClass"); + openapiFields.add("loadBalancerIP"); + openapiFields.add("loadBalancerSourceRanges"); + openapiFields.add("ports"); + openapiFields.add("publishNotReadyAddresses"); + openapiFields.add("selector"); + openapiFields.add("sessionAffinity"); + openapiFields.add("sessionAffinityConfig"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServiceSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServiceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceSpec is not found in the empty JSON string", V1ServiceSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServiceSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("clusterIP") != null && !jsonObj.get("clusterIP").isJsonNull()) && !jsonObj.get("clusterIP").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `clusterIP` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clusterIP").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("clusterIPs") != null && !jsonObj.get("clusterIPs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `clusterIPs` to be an array in the JSON string but got `%s`", jsonObj.get("clusterIPs").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("externalIPs") != null && !jsonObj.get("externalIPs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `externalIPs` to be an array in the JSON string but got `%s`", jsonObj.get("externalIPs").toString())); + } + if ((jsonObj.get("externalName") != null && !jsonObj.get("externalName").isJsonNull()) && !jsonObj.get("externalName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `externalName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("externalName").toString())); + } + if ((jsonObj.get("externalTrafficPolicy") != null && !jsonObj.get("externalTrafficPolicy").isJsonNull()) && !jsonObj.get("externalTrafficPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `externalTrafficPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("externalTrafficPolicy").toString())); + } + if ((jsonObj.get("internalTrafficPolicy") != null && !jsonObj.get("internalTrafficPolicy").isJsonNull()) && !jsonObj.get("internalTrafficPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `internalTrafficPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("internalTrafficPolicy").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("ipFamilies") != null && !jsonObj.get("ipFamilies").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ipFamilies` to be an array in the JSON string but got `%s`", jsonObj.get("ipFamilies").toString())); + } + if ((jsonObj.get("ipFamilyPolicy") != null && !jsonObj.get("ipFamilyPolicy").isJsonNull()) && !jsonObj.get("ipFamilyPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ipFamilyPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipFamilyPolicy").toString())); + } + if ((jsonObj.get("loadBalancerClass") != null && !jsonObj.get("loadBalancerClass").isJsonNull()) && !jsonObj.get("loadBalancerClass").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `loadBalancerClass` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loadBalancerClass").toString())); + } + if ((jsonObj.get("loadBalancerIP") != null && !jsonObj.get("loadBalancerIP").isJsonNull()) && !jsonObj.get("loadBalancerIP").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `loadBalancerIP` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loadBalancerIP").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("loadBalancerSourceRanges") != null && !jsonObj.get("loadBalancerSourceRanges").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `loadBalancerSourceRanges` to be an array in the JSON string but got `%s`", jsonObj.get("loadBalancerSourceRanges").toString())); + } + if (jsonObj.get("ports") != null && !jsonObj.get("ports").isJsonNull()) { + JsonArray jsonArrayports = jsonObj.getAsJsonArray("ports"); + if (jsonArrayports != null) { + // ensure the json data is an array + if (!jsonObj.get("ports").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ports` to be an array in the JSON string but got `%s`", jsonObj.get("ports").toString())); + } + + // validate the optional field `ports` (array) + for (int i = 0; i < jsonArrayports.size(); i++) { + V1ServicePort.validateJsonObject(jsonArrayports.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("sessionAffinity") != null && !jsonObj.get("sessionAffinity").isJsonNull()) && !jsonObj.get("sessionAffinity").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sessionAffinity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sessionAffinity").toString())); + } + // validate the optional field `sessionAffinityConfig` + if (jsonObj.get("sessionAffinityConfig") != null && !jsonObj.get("sessionAffinityConfig").isJsonNull()) { + V1SessionAffinityConfig.validateJsonObject(jsonObj.getAsJsonObject("sessionAffinityConfig")); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceSpec + * @throws IOException if the JSON string is invalid with respect to V1ServiceSpec + */ + public static V1ServiceSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceSpec.class); + } + + /** + * Convert an instance of V1ServiceSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java index cfec25e274..738912e7d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; import io.kubernetes.client.openapi.models.V1LoadBalancerStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceStatus represents the current status of a service. */ @@ -35,12 +58,14 @@ public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) private V1LoadBalancerStatus loadBalancer; + public V1ServiceStatus() { + } public V1ServiceStatus conditions(List conditions) { @@ -60,9 +85,7 @@ public V1ServiceStatus addConditionsItem(V1Condition conditionsItem) { * Current service state * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Current service state") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -83,9 +106,7 @@ public V1ServiceStatus loadBalancer(V1LoadBalancerStatus loadBalancer) { * Get loadBalancer * @return loadBalancer **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LoadBalancerStatus getLoadBalancer() { return loadBalancer; } @@ -96,8 +117,9 @@ public void setLoadBalancer(V1LoadBalancerStatus loadBalancer) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -114,7 +136,6 @@ public int hashCode() { return Objects.hash(conditions, loadBalancer); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -129,11 +150,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + openapiFields.add("loadBalancer"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ServiceStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ServiceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceStatus is not found in the empty JSON string", V1ServiceStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ServiceStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1Condition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `loadBalancer` + if (jsonObj.get("loadBalancer") != null && !jsonObj.get("loadBalancer").isJsonNull()) { + V1LoadBalancerStatus.validateJsonObject(jsonObj.getAsJsonObject("loadBalancer")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ServiceStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ServiceStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ServiceStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ServiceStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ServiceStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ServiceStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ServiceStatus + * @throws IOException if the JSON string is invalid with respect to V1ServiceStatus + */ + public static V1ServiceStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ServiceStatus.class); + } + + /** + * Convert an instance of V1ServiceStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java index fe19988196..e19fb2fd82 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ClientIPConfig; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SessionAffinityConfig represents the configurations of session affinity. */ @@ -34,6 +57,8 @@ public class V1SessionAffinityConfig { @SerializedName(SERIALIZED_NAME_CLIENT_I_P) private V1ClientIPConfig clientIP; + public V1SessionAffinityConfig() { + } public V1SessionAffinityConfig clientIP(V1ClientIPConfig clientIP) { @@ -45,9 +70,7 @@ public V1SessionAffinityConfig clientIP(V1ClientIPConfig clientIP) { * Get clientIP * @return clientIP **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ClientIPConfig getClientIP() { return clientIP; } @@ -58,8 +81,9 @@ public void setClientIP(V1ClientIPConfig clientIP) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(clientIP); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("clientIP"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SessionAffinityConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SessionAffinityConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SessionAffinityConfig is not found in the empty JSON string", V1SessionAffinityConfig.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SessionAffinityConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SessionAffinityConfig` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `clientIP` + if (jsonObj.get("clientIP") != null && !jsonObj.get("clientIP").isJsonNull()) { + V1ClientIPConfig.validateJsonObject(jsonObj.getAsJsonObject("clientIP")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SessionAffinityConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SessionAffinityConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SessionAffinityConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SessionAffinityConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SessionAffinityConfig read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SessionAffinityConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SessionAffinityConfig + * @throws IOException if the JSON string is invalid with respect to V1SessionAffinityConfig + */ + public static V1SessionAffinityConfig fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SessionAffinityConfig.class); + } + + /** + * Convert an instance of V1SessionAffinityConfig to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java index ae0c12500b..7a1a1f8d04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1StatefulSetSpec; import io.kubernetes.client.openapi.models.V1StatefulSetStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObje @SerializedName(SERIALIZED_NAME_STATUS) private V1StatefulSetStatus status; + public V1StatefulSet() { + } public V1StatefulSet apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1StatefulSet apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1StatefulSet kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1StatefulSet metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1StatefulSet spec(V1StatefulSetSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1StatefulSetSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1StatefulSet status(V1StatefulSetStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1StatefulSetStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1StatefulSetStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatefulSet + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatefulSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatefulSet is not found in the empty JSON string", V1StatefulSet.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatefulSet.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatefulSet` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1StatefulSetSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1StatefulSetStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatefulSet.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatefulSet' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatefulSet.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatefulSet value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatefulSet read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatefulSet given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSet + * @throws IOException if the JSON string is invalid with respect to V1StatefulSet + */ + public static V1StatefulSet fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatefulSet.class); + } + + /** + * Convert an instance of V1StatefulSet to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java index 6a95cf68fe..f632b4d95f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * StatefulSetCondition describes the state of a statefulset at a certain point. */ @@ -50,6 +73,8 @@ public class V1StatefulSetCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1StatefulSetCondition() { + } public V1StatefulSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1StatefulSetCondition lastTransitionTime(OffsetDateTime lastTransitionTi * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1StatefulSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable message indicating details about the transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1StatefulSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,8 +149,7 @@ public V1StatefulSetCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -152,8 +170,7 @@ public V1StatefulSetCondition type(String type) { * Type of statefulset condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type of statefulset condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -164,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatefulSetCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatefulSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatefulSetCondition is not found in the empty JSON string", V1StatefulSetCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatefulSetCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatefulSetCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StatefulSetCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatefulSetCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatefulSetCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatefulSetCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatefulSetCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatefulSetCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatefulSetCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetCondition + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetCondition + */ + public static V1StatefulSetCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatefulSetCondition.class); + } + + /** + * Convert an instance of V1StatefulSetCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java index 5a441a9ab3..facc88e493 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1StatefulSet; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * StatefulSetList is a collection of StatefulSets. */ @@ -49,6 +72,8 @@ public class V1StatefulSetList implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1StatefulSetList() { + } public V1StatefulSetList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1StatefulSetList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1StatefulSetList items(List items) { } public V1StatefulSetList addItemsItem(V1StatefulSet itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1StatefulSetList addItemsItem(V1StatefulSet itemsItem) { * Items is the list of stateful sets. * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of stateful sets.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1StatefulSetList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1StatefulSetList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatefulSetList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatefulSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatefulSetList is not found in the empty JSON string", V1StatefulSetList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatefulSetList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatefulSetList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StatefulSetList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1StatefulSet.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatefulSetList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatefulSetList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatefulSetList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatefulSetList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatefulSetList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatefulSetList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetList + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetList + */ + public static V1StatefulSetList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatefulSetList.class); + } + + /** + * Convert an instance of V1StatefulSetList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java index 16ff338dd9..439825e67b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. */ @@ -33,6 +56,8 @@ public class V1StatefulSetOrdinals { @SerializedName(SERIALIZED_NAME_START) private Integer start; + public V1StatefulSetOrdinals() { + } public V1StatefulSetOrdinals start(Integer start) { @@ -44,9 +69,7 @@ public V1StatefulSetOrdinals start(Integer start) { * 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). * @return start **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public Integer getStart() { return start; } @@ -57,8 +80,9 @@ public void setStart(Integer start) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -74,7 +98,6 @@ public int hashCode() { return Objects.hash(start); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -88,11 +111,94 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("start"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatefulSetOrdinals + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatefulSetOrdinals.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatefulSetOrdinals is not found in the empty JSON string", V1StatefulSetOrdinals.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatefulSetOrdinals.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatefulSetOrdinals` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatefulSetOrdinals.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatefulSetOrdinals' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatefulSetOrdinals.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatefulSetOrdinals value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatefulSetOrdinals read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatefulSetOrdinals given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetOrdinals + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetOrdinals + */ + public static V1StatefulSetOrdinals fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatefulSetOrdinals.class); + } + + /** + * Convert an instance of V1StatefulSetOrdinals to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java index 93e0f7fcc7..2bfcda63d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. */ @@ -37,6 +60,8 @@ public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { @SerializedName(SERIALIZED_NAME_WHEN_SCALED) private String whenScaled; + public V1StatefulSetPersistentVolumeClaimRetentionPolicy() { + } public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenDeleted(String whenDeleted) { @@ -48,9 +73,7 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenDeleted(String when * 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. * @return whenDeleted **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getWhenDeleted() { return whenDeleted; } @@ -71,9 +94,7 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenScaled(String whenS * 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. * @return whenScaled **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getWhenScaled() { return whenScaled; } @@ -84,8 +105,9 @@ public void setWhenScaled(String whenScaled) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(whenDeleted, whenScaled); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("whenDeleted"); + openapiFields.add("whenScaled"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatefulSetPersistentVolumeClaimRetentionPolicy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatefulSetPersistentVolumeClaimRetentionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatefulSetPersistentVolumeClaimRetentionPolicy is not found in the empty JSON string", V1StatefulSetPersistentVolumeClaimRetentionPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatefulSetPersistentVolumeClaimRetentionPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatefulSetPersistentVolumeClaimRetentionPolicy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("whenDeleted") != null && !jsonObj.get("whenDeleted").isJsonNull()) && !jsonObj.get("whenDeleted").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `whenDeleted` to be a primitive type in the JSON string but got `%s`", jsonObj.get("whenDeleted").toString())); + } + if ((jsonObj.get("whenScaled") != null && !jsonObj.get("whenScaled").isJsonNull()) && !jsonObj.get("whenScaled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `whenScaled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("whenScaled").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatefulSetPersistentVolumeClaimRetentionPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatefulSetPersistentVolumeClaimRetentionPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatefulSetPersistentVolumeClaimRetentionPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatefulSetPersistentVolumeClaimRetentionPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatefulSetPersistentVolumeClaimRetentionPolicy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetPersistentVolumeClaimRetentionPolicy + */ + public static V1StatefulSetPersistentVolumeClaimRetentionPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatefulSetPersistentVolumeClaimRetentionPolicy.class); + } + + /** + * Convert an instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java index 773e5b8268..a06b85a28c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java @@ -25,12 +25,35 @@ import io.kubernetes.client.openapi.models.V1StatefulSetOrdinals; import io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy; import io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * A StatefulSetSpec is the specification of a StatefulSet. */ @@ -79,8 +102,10 @@ public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES = "volumeClaimTemplates"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES) - private List volumeClaimTemplates = null; + private List volumeClaimTemplates; + public V1StatefulSetSpec() { + } public V1StatefulSetSpec minReadySeconds(Integer minReadySeconds) { @@ -92,9 +117,7 @@ public V1StatefulSetSpec minReadySeconds(Integer minReadySeconds) { * 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) * @return minReadySeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)") - + @jakarta.annotation.Nullable public Integer getMinReadySeconds() { return minReadySeconds; } @@ -115,9 +138,7 @@ public V1StatefulSetSpec ordinals(V1StatefulSetOrdinals ordinals) { * Get ordinals * @return ordinals **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1StatefulSetOrdinals getOrdinals() { return ordinals; } @@ -138,9 +159,7 @@ public V1StatefulSetSpec persistentVolumeClaimRetentionPolicy(V1StatefulSetPersi * Get persistentVolumeClaimRetentionPolicy * @return persistentVolumeClaimRetentionPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy() { return persistentVolumeClaimRetentionPolicy; } @@ -161,9 +180,7 @@ public V1StatefulSetSpec podManagementPolicy(String podManagementPolicy) { * 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. * @return podManagementPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getPodManagementPolicy() { return podManagementPolicy; } @@ -184,9 +201,7 @@ public V1StatefulSetSpec replicas(Integer replicas) { * 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. * @return replicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getReplicas() { return replicas; } @@ -207,9 +222,7 @@ public V1StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * 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. * @return revisionHistoryLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } @@ -230,8 +243,7 @@ public V1StatefulSetSpec selector(V1LabelSelector selector) { * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1LabelSelector getSelector() { return selector; } @@ -252,8 +264,7 @@ public V1StatefulSetSpec serviceName(String serviceName) { * 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. * @return serviceName **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getServiceName() { return serviceName; } @@ -274,8 +285,7 @@ public V1StatefulSetSpec template(V1PodTemplateSpec template) { * Get template * @return template **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1PodTemplateSpec getTemplate() { return template; } @@ -296,9 +306,7 @@ public V1StatefulSetSpec updateStrategy(V1StatefulSetUpdateStrategy updateStrate * Get updateStrategy * @return updateStrategy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1StatefulSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } @@ -327,9 +335,7 @@ public V1StatefulSetSpec addVolumeClaimTemplatesItem(V1PersistentVolumeClaim vol * 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. * @return volumeClaimTemplates **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getVolumeClaimTemplates() { return volumeClaimTemplates; } @@ -340,8 +346,9 @@ public void setVolumeClaimTemplates(List volumeClaimTem } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -367,7 +374,6 @@ public int hashCode() { return Objects.hash(minReadySeconds, ordinals, persistentVolumeClaimRetentionPolicy, podManagementPolicy, replicas, revisionHistoryLimit, selector, serviceName, template, updateStrategy, volumeClaimTemplates); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -391,11 +397,150 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("minReadySeconds"); + openapiFields.add("ordinals"); + openapiFields.add("persistentVolumeClaimRetentionPolicy"); + openapiFields.add("podManagementPolicy"); + openapiFields.add("replicas"); + openapiFields.add("revisionHistoryLimit"); + openapiFields.add("selector"); + openapiFields.add("serviceName"); + openapiFields.add("template"); + openapiFields.add("updateStrategy"); + openapiFields.add("volumeClaimTemplates"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("selector"); + openapiRequiredFields.add("serviceName"); + openapiRequiredFields.add("template"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatefulSetSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatefulSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatefulSetSpec is not found in the empty JSON string", V1StatefulSetSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatefulSetSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatefulSetSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StatefulSetSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `ordinals` + if (jsonObj.get("ordinals") != null && !jsonObj.get("ordinals").isJsonNull()) { + V1StatefulSetOrdinals.validateJsonObject(jsonObj.getAsJsonObject("ordinals")); + } + // validate the optional field `persistentVolumeClaimRetentionPolicy` + if (jsonObj.get("persistentVolumeClaimRetentionPolicy") != null && !jsonObj.get("persistentVolumeClaimRetentionPolicy").isJsonNull()) { + V1StatefulSetPersistentVolumeClaimRetentionPolicy.validateJsonObject(jsonObj.getAsJsonObject("persistentVolumeClaimRetentionPolicy")); + } + if ((jsonObj.get("podManagementPolicy") != null && !jsonObj.get("podManagementPolicy").isJsonNull()) && !jsonObj.get("podManagementPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `podManagementPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podManagementPolicy").toString())); + } + // validate the required field `selector` + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + if (!jsonObj.get("serviceName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `serviceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceName").toString())); + } + // validate the required field `template` + V1PodTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("template")); + // validate the optional field `updateStrategy` + if (jsonObj.get("updateStrategy") != null && !jsonObj.get("updateStrategy").isJsonNull()) { + V1StatefulSetUpdateStrategy.validateJsonObject(jsonObj.getAsJsonObject("updateStrategy")); + } + if (jsonObj.get("volumeClaimTemplates") != null && !jsonObj.get("volumeClaimTemplates").isJsonNull()) { + JsonArray jsonArrayvolumeClaimTemplates = jsonObj.getAsJsonArray("volumeClaimTemplates"); + if (jsonArrayvolumeClaimTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("volumeClaimTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeClaimTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("volumeClaimTemplates").toString())); + } + + // validate the optional field `volumeClaimTemplates` (array) + for (int i = 0; i < jsonArrayvolumeClaimTemplates.size(); i++) { + V1PersistentVolumeClaim.validateJsonObject(jsonArrayvolumeClaimTemplates.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatefulSetSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatefulSetSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatefulSetSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatefulSetSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatefulSetSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatefulSetSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetSpec + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetSpec + */ + public static V1StatefulSetSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatefulSetSpec.class); + } + + /** + * Convert an instance of V1StatefulSetSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java index 03d1c0fe35..bd061c9a27 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1StatefulSetCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * StatefulSetStatus represents the current state of a StatefulSet. */ @@ -42,7 +65,7 @@ public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) @@ -72,6 +95,8 @@ public class V1StatefulSetStatus { @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) private Integer updatedReplicas; + public V1StatefulSetStatus() { + } public V1StatefulSetStatus availableReplicas(Integer availableReplicas) { @@ -83,9 +108,7 @@ public V1StatefulSetStatus availableReplicas(Integer availableReplicas) { * Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. * @return availableReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.") - + @jakarta.annotation.Nullable public Integer getAvailableReplicas() { return availableReplicas; } @@ -106,9 +129,7 @@ public V1StatefulSetStatus collisionCount(Integer collisionCount) { * 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. * @return collisionCount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getCollisionCount() { return collisionCount; } @@ -137,9 +158,7 @@ public V1StatefulSetStatus addConditionsItem(V1StatefulSetCondition conditionsIt * Represents the latest available observations of a statefulset's current state. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Represents the latest available observations of a statefulset's current state.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -160,9 +179,7 @@ public V1StatefulSetStatus currentReplicas(Integer currentReplicas) { * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. * @return currentReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.") - + @jakarta.annotation.Nullable public Integer getCurrentReplicas() { return currentReplicas; } @@ -183,9 +200,7 @@ public V1StatefulSetStatus currentRevision(String currentRevision) { * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). * @return currentRevision **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).") - + @jakarta.annotation.Nullable public String getCurrentRevision() { return currentRevision; } @@ -206,9 +221,7 @@ public V1StatefulSetStatus observedGeneration(Long observedGeneration) { * 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. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -229,9 +242,7 @@ public V1StatefulSetStatus readyReplicas(Integer readyReplicas) { * readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. * @return readyReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.") - + @jakarta.annotation.Nullable public Integer getReadyReplicas() { return readyReplicas; } @@ -252,8 +263,7 @@ public V1StatefulSetStatus replicas(Integer replicas) { * replicas is the number of Pods created by the StatefulSet controller. * @return replicas **/ - @ApiModelProperty(required = true, value = "replicas is the number of Pods created by the StatefulSet controller.") - + @jakarta.annotation.Nonnull public Integer getReplicas() { return replicas; } @@ -274,9 +284,7 @@ public V1StatefulSetStatus updateRevision(String updateRevision) { * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) * @return updateRevision **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)") - + @jakarta.annotation.Nullable public String getUpdateRevision() { return updateRevision; } @@ -297,9 +305,7 @@ public V1StatefulSetStatus updatedReplicas(Integer updatedReplicas) { * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. * @return updatedReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.") - + @jakarta.annotation.Nullable public Integer getUpdatedReplicas() { return updatedReplicas; } @@ -310,8 +316,9 @@ public void setUpdatedReplicas(Integer updatedReplicas) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -336,7 +343,6 @@ public int hashCode() { return Objects.hash(availableReplicas, collisionCount, conditions, currentReplicas, currentRevision, observedGeneration, readyReplicas, replicas, updateRevision, updatedReplicas); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -359,11 +365,131 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("availableReplicas"); + openapiFields.add("collisionCount"); + openapiFields.add("conditions"); + openapiFields.add("currentReplicas"); + openapiFields.add("currentRevision"); + openapiFields.add("observedGeneration"); + openapiFields.add("readyReplicas"); + openapiFields.add("replicas"); + openapiFields.add("updateRevision"); + openapiFields.add("updatedReplicas"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("replicas"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatefulSetStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatefulSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatefulSetStatus is not found in the empty JSON string", V1StatefulSetStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatefulSetStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatefulSetStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StatefulSetStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1StatefulSetCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("currentRevision") != null && !jsonObj.get("currentRevision").isJsonNull()) && !jsonObj.get("currentRevision").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currentRevision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currentRevision").toString())); + } + if ((jsonObj.get("updateRevision") != null && !jsonObj.get("updateRevision").isJsonNull()) && !jsonObj.get("updateRevision").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `updateRevision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updateRevision").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatefulSetStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatefulSetStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatefulSetStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatefulSetStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatefulSetStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatefulSetStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetStatus + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetStatus + */ + public static V1StatefulSetStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatefulSetStatus.class); + } + + /** + * Convert an instance of V1StatefulSetStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java index 2aa226fc72..8e9129cefc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,6 +61,8 @@ public class V1StatefulSetUpdateStrategy { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1StatefulSetUpdateStrategy() { + } public V1StatefulSetUpdateStrategy rollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { @@ -49,9 +74,7 @@ public V1StatefulSetUpdateStrategy rollingUpdate(V1RollingUpdateStatefulSetStrat * Get rollingUpdate * @return rollingUpdate **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1RollingUpdateStatefulSetStrategy getRollingUpdate() { return rollingUpdate; } @@ -72,9 +95,7 @@ public V1StatefulSetUpdateStrategy type(String type) { * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -85,8 +106,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(rollingUpdate, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("rollingUpdate"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatefulSetUpdateStrategy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatefulSetUpdateStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatefulSetUpdateStrategy is not found in the empty JSON string", V1StatefulSetUpdateStrategy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatefulSetUpdateStrategy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatefulSetUpdateStrategy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `rollingUpdate` + if (jsonObj.get("rollingUpdate") != null && !jsonObj.get("rollingUpdate").isJsonNull()) { + V1RollingUpdateStatefulSetStrategy.validateJsonObject(jsonObj.getAsJsonObject("rollingUpdate")); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatefulSetUpdateStrategy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatefulSetUpdateStrategy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatefulSetUpdateStrategy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatefulSetUpdateStrategy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatefulSetUpdateStrategy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatefulSetUpdateStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatefulSetUpdateStrategy + * @throws IOException if the JSON string is invalid with respect to V1StatefulSetUpdateStrategy + */ + public static V1StatefulSetUpdateStrategy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatefulSetUpdateStrategy.class); + } + + /** + * Convert an instance of V1StatefulSetUpdateStrategy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java index 83bc94eed7..287d77de10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1StatusDetails; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Status is a return value for calls that don't return other objects. */ @@ -63,6 +86,8 @@ public class V1Status { @SerializedName(SERIALIZED_NAME_STATUS) private String status; + public V1Status() { + } public V1Status apiVersion(String apiVersion) { @@ -74,9 +99,7 @@ public V1Status apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -97,9 +120,7 @@ public V1Status code(Integer code) { * Suggested HTTP return code for this status, 0 if not set. * @return code **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Suggested HTTP return code for this status, 0 if not set.") - + @jakarta.annotation.Nullable public Integer getCode() { return code; } @@ -120,9 +141,7 @@ public V1Status details(V1StatusDetails details) { * Get details * @return details **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1StatusDetails getDetails() { return details; } @@ -143,9 +162,7 @@ public V1Status kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -166,9 +183,7 @@ public V1Status message(String message) { * A human-readable description of the status of this operation. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human-readable description of the status of this operation.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -189,9 +204,7 @@ public V1Status metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -212,9 +225,7 @@ public V1Status reason(String reason) { * 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. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -235,9 +246,7 @@ public V1Status status(String status) { * 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 * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getStatus() { return status; } @@ -248,8 +257,9 @@ public void setStatus(String status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -272,7 +282,6 @@ public int hashCode() { return Objects.hash(apiVersion, code, details, kind, message, metadata, reason, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -293,11 +302,124 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("code"); + openapiFields.add("details"); + openapiFields.add("kind"); + openapiFields.add("message"); + openapiFields.add("metadata"); + openapiFields.add("reason"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Status + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Status.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Status is not found in the empty JSON string", V1Status.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Status.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Status` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // validate the optional field `details` + if (jsonObj.get("details") != null && !jsonObj.get("details").isJsonNull()) { + V1StatusDetails.validateJsonObject(jsonObj.getAsJsonObject("details")); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Status.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Status' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Status.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Status value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Status read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Status given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Status + * @throws IOException if the JSON string is invalid with respect to V1Status + */ + public static V1Status fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Status.class); + } + + /** + * Convert an instance of V1Status to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java index f8b9a4dc7d..5e286c52dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. */ @@ -41,6 +64,8 @@ public class V1StatusCause { @SerializedName(SERIALIZED_NAME_REASON) private String reason; + public V1StatusCause() { + } public V1StatusCause field(String field) { @@ -52,9 +77,7 @@ public V1StatusCause field(String field) { * 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\" * @return field **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"") - + @jakarta.annotation.Nullable public String getField() { return field; } @@ -75,9 +98,7 @@ public V1StatusCause message(String message) { * A human-readable description of the cause of the error. This field may be presented as-is to a reader. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human-readable description of the cause of the error. This field may be presented as-is to a reader.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -98,9 +119,7 @@ public V1StatusCause reason(String reason) { * A machine-readable description of the cause of the error. If this value is empty there is no information available. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A machine-readable description of the cause of the error. If this value is empty there is no information available.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -111,8 +130,9 @@ public void setReason(String reason) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +150,6 @@ public int hashCode() { return Objects.hash(field, message, reason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +165,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("field"); + openapiFields.add("message"); + openapiFields.add("reason"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatusCause + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatusCause.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatusCause is not found in the empty JSON string", V1StatusCause.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatusCause.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatusCause` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("field") != null && !jsonObj.get("field").isJsonNull()) && !jsonObj.get("field").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `field` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatusCause.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatusCause' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatusCause.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatusCause value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatusCause read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatusCause given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatusCause + * @throws IOException if the JSON string is invalid with respect to V1StatusCause + */ + public static V1StatusCause fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatusCause.class); + } + + /** + * Convert an instance of V1StatusCause to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java index 46244a9980..436a922744 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1StatusCause; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -34,7 +57,7 @@ public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; @SerializedName(SERIALIZED_NAME_CAUSES) - private List causes = null; + private List causes; public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -56,6 +79,8 @@ public class V1StatusDetails { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1StatusDetails() { + } public V1StatusDetails causes(List causes) { @@ -75,9 +100,7 @@ public V1StatusDetails addCausesItem(V1StatusCause causesItem) { * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. * @return causes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.") - + @jakarta.annotation.Nullable public List getCauses() { return causes; } @@ -98,9 +121,7 @@ public V1StatusDetails group(String group) { * The group attribute of the resource associated with the status StatusReason. * @return group **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The group attribute of the resource associated with the status StatusReason.") - + @jakarta.annotation.Nullable public String getGroup() { return group; } @@ -121,9 +142,7 @@ public V1StatusDetails kind(String kind) { * 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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -144,9 +163,7 @@ public V1StatusDetails name(String name) { * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -167,9 +184,7 @@ public V1StatusDetails retryAfterSeconds(Integer retryAfterSeconds) { * 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. * @return retryAfterSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getRetryAfterSeconds() { return retryAfterSeconds; } @@ -190,9 +205,7 @@ public V1StatusDetails uid(String uid) { * 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 * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -203,8 +216,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -225,7 +239,6 @@ public int hashCode() { return Objects.hash(causes, group, kind, name, retryAfterSeconds, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -244,11 +257,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("causes"); + openapiFields.add("group"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("retryAfterSeconds"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StatusDetails + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StatusDetails.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StatusDetails is not found in the empty JSON string", V1StatusDetails.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StatusDetails.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StatusDetails` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("causes") != null && !jsonObj.get("causes").isJsonNull()) { + JsonArray jsonArraycauses = jsonObj.getAsJsonArray("causes"); + if (jsonArraycauses != null) { + // ensure the json data is an array + if (!jsonObj.get("causes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `causes` to be an array in the JSON string but got `%s`", jsonObj.get("causes").toString())); + } + + // validate the optional field `causes` (array) + for (int i = 0; i < jsonArraycauses.size(); i++) { + V1StatusCause.validateJsonObject(jsonArraycauses.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StatusDetails.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StatusDetails' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StatusDetails.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StatusDetails value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StatusDetails read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StatusDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StatusDetails + * @throws IOException if the JSON string is invalid with respect to V1StatusDetails + */ + public static V1StatusDetails fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StatusDetails.class); + } + + /** + * Convert an instance of V1StatusDetails to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java index bc569e4646..f1443cbb32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java @@ -21,14 +21,37 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1TopologySelectorTerm; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -41,7 +64,7 @@ public class V1StorageClass implements io.kubernetes.client.common.KubernetesObj public static final String SERIALIZED_NAME_ALLOWED_TOPOLOGIES = "allowedTopologies"; @SerializedName(SERIALIZED_NAME_ALLOWED_TOPOLOGIES) - private List allowedTopologies = null; + private List allowedTopologies; public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -57,11 +80,11 @@ public class V1StorageClass implements io.kubernetes.client.common.KubernetesObj public static final String SERIALIZED_NAME_MOUNT_OPTIONS = "mountOptions"; @SerializedName(SERIALIZED_NAME_MOUNT_OPTIONS) - private List mountOptions = null; + private List mountOptions; public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) - private Map parameters = null; + private Map parameters = new HashMap<>(); public static final String SERIALIZED_NAME_PROVISIONER = "provisioner"; @SerializedName(SERIALIZED_NAME_PROVISIONER) @@ -75,6 +98,8 @@ public class V1StorageClass implements io.kubernetes.client.common.KubernetesObj @SerializedName(SERIALIZED_NAME_VOLUME_BINDING_MODE) private String volumeBindingMode; + public V1StorageClass() { + } public V1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion) { @@ -86,9 +111,7 @@ public V1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion) { * allowVolumeExpansion shows whether the storage class allow volume expand. * @return allowVolumeExpansion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "allowVolumeExpansion shows whether the storage class allow volume expand.") - + @jakarta.annotation.Nullable public Boolean getAllowVolumeExpansion() { return allowVolumeExpansion; } @@ -117,9 +140,7 @@ public V1StorageClass addAllowedTopologiesItem(V1TopologySelectorTerm allowedTop * 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. * @return allowedTopologies **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getAllowedTopologies() { return allowedTopologies; } @@ -140,9 +161,7 @@ public V1StorageClass apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -163,9 +182,7 @@ public V1StorageClass kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -186,9 +203,7 @@ public V1StorageClass metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -217,9 +232,7 @@ public V1StorageClass addMountOptionsItem(String mountOptionsItem) { * 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. * @return mountOptions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getMountOptions() { return mountOptions; } @@ -248,9 +261,7 @@ public V1StorageClass putParametersItem(String key, String parametersItem) { * parameters holds the parameters for the provisioner that should create volumes of this storage class. * @return parameters **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "parameters holds the parameters for the provisioner that should create volumes of this storage class.") - + @jakarta.annotation.Nullable public Map getParameters() { return parameters; } @@ -271,8 +282,7 @@ public V1StorageClass provisioner(String provisioner) { * provisioner indicates the type of the provisioner. * @return provisioner **/ - @ApiModelProperty(required = true, value = "provisioner indicates the type of the provisioner.") - + @jakarta.annotation.Nonnull public String getProvisioner() { return provisioner; } @@ -293,9 +303,7 @@ public V1StorageClass reclaimPolicy(String reclaimPolicy) { * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. * @return reclaimPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.") - + @jakarta.annotation.Nullable public String getReclaimPolicy() { return reclaimPolicy; } @@ -316,9 +324,7 @@ public V1StorageClass volumeBindingMode(String volumeBindingMode) { * 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. * @return volumeBindingMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getVolumeBindingMode() { return volumeBindingMode; } @@ -329,8 +335,9 @@ public void setVolumeBindingMode(String volumeBindingMode) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -355,7 +362,6 @@ public int hashCode() { return Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -378,11 +384,148 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allowVolumeExpansion"); + openapiFields.add("allowedTopologies"); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("mountOptions"); + openapiFields.add("parameters"); + openapiFields.add("provisioner"); + openapiFields.add("reclaimPolicy"); + openapiFields.add("volumeBindingMode"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("provisioner"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StorageClass + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StorageClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StorageClass is not found in the empty JSON string", V1StorageClass.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StorageClass.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StorageClass` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StorageClass.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("allowedTopologies") != null && !jsonObj.get("allowedTopologies").isJsonNull()) { + JsonArray jsonArrayallowedTopologies = jsonObj.getAsJsonArray("allowedTopologies"); + if (jsonArrayallowedTopologies != null) { + // ensure the json data is an array + if (!jsonObj.get("allowedTopologies").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `allowedTopologies` to be an array in the JSON string but got `%s`", jsonObj.get("allowedTopologies").toString())); + } + + // validate the optional field `allowedTopologies` (array) + for (int i = 0; i < jsonArrayallowedTopologies.size(); i++) { + V1TopologySelectorTerm.validateJsonObject(jsonArrayallowedTopologies.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("mountOptions") != null && !jsonObj.get("mountOptions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mountOptions` to be an array in the JSON string but got `%s`", jsonObj.get("mountOptions").toString())); + } + if (!jsonObj.get("provisioner").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `provisioner` to be a primitive type in the JSON string but got `%s`", jsonObj.get("provisioner").toString())); + } + if ((jsonObj.get("reclaimPolicy") != null && !jsonObj.get("reclaimPolicy").isJsonNull()) && !jsonObj.get("reclaimPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reclaimPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reclaimPolicy").toString())); + } + if ((jsonObj.get("volumeBindingMode") != null && !jsonObj.get("volumeBindingMode").isJsonNull()) && !jsonObj.get("volumeBindingMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeBindingMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeBindingMode").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StorageClass.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageClass' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageClass.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageClass value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageClass read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageClass + * @throws IOException if the JSON string is invalid with respect to V1StorageClass + */ + public static V1StorageClass fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageClass.class); + } + + /** + * Convert an instance of V1StorageClass to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java index b3e6d9003d..2878c3c98c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1StorageClass; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * StorageClassList is a collection of storage classes. */ @@ -49,6 +72,8 @@ public class V1StorageClassList implements io.kubernetes.client.common.Kubernete @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1StorageClassList() { + } public V1StorageClassList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1StorageClassList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1StorageClassList items(List items) { } public V1StorageClassList addItemsItem(V1StorageClass itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1StorageClassList addItemsItem(V1StorageClass itemsItem) { * items is the list of StorageClasses * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of StorageClasses") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1StorageClassList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1StorageClassList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StorageClassList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StorageClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StorageClassList is not found in the empty JSON string", V1StorageClassList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StorageClassList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StorageClassList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StorageClassList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1StorageClass.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StorageClassList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageClassList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageClassList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageClassList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageClassList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageClassList + * @throws IOException if the JSON string is invalid with respect to V1StorageClassList + */ + public static V1StorageClassList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageClassList.class); + } + + /** + * Convert an instance of V1StorageClassList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java index 2a51f2e3e3..e08ce8eae0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a StorageOS persistent volume resource. */ @@ -50,6 +73,8 @@ public class V1StorageOSPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_NAMESPACE) private String volumeNamespace; + public V1StorageOSPersistentVolumeSource() { + } public V1StorageOSPersistentVolumeSource fsType(String fsType) { @@ -61,9 +86,7 @@ public V1StorageOSPersistentVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -84,9 +107,7 @@ public V1StorageOSPersistentVolumeSource readOnly(Boolean readOnly) { * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -107,9 +128,7 @@ public V1StorageOSPersistentVolumeSource secretRef(V1ObjectReference secretRef) * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectReference getSecretRef() { return secretRef; } @@ -130,9 +149,7 @@ public V1StorageOSPersistentVolumeSource volumeName(String volumeName) { * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. * @return volumeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") - + @jakarta.annotation.Nullable public String getVolumeName() { return volumeName; } @@ -153,9 +170,7 @@ public V1StorageOSPersistentVolumeSource volumeNamespace(String volumeNamespace) * 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. * @return volumeNamespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getVolumeNamespace() { return volumeNamespace; } @@ -166,8 +181,9 @@ public void setVolumeNamespace(String volumeNamespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -187,7 +203,6 @@ public int hashCode() { return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +220,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("volumeName"); + openapiFields.add("volumeNamespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StorageOSPersistentVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StorageOSPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StorageOSPersistentVolumeSource is not found in the empty JSON string", V1StorageOSPersistentVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StorageOSPersistentVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StorageOSPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1ObjectReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if ((jsonObj.get("volumeName") != null && !jsonObj.get("volumeName").isJsonNull()) && !jsonObj.get("volumeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); + } + if ((jsonObj.get("volumeNamespace") != null && !jsonObj.get("volumeNamespace").isJsonNull()) && !jsonObj.get("volumeNamespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeNamespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeNamespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StorageOSPersistentVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageOSPersistentVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageOSPersistentVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageOSPersistentVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageOSPersistentVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageOSPersistentVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageOSPersistentVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1StorageOSPersistentVolumeSource + */ + public static V1StorageOSPersistentVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageOSPersistentVolumeSource.class); + } + + /** + * Convert an instance of V1StorageOSPersistentVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java index 4a690c98b6..6a4a3f5e3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a StorageOS persistent volume resource. */ @@ -50,6 +73,8 @@ public class V1StorageOSVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_NAMESPACE) private String volumeNamespace; + public V1StorageOSVolumeSource() { + } public V1StorageOSVolumeSource fsType(String fsType) { @@ -61,9 +86,7 @@ public V1StorageOSVolumeSource fsType(String fsType) { * 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. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -84,9 +107,7 @@ public V1StorageOSVolumeSource readOnly(Boolean readOnly) { * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -107,9 +128,7 @@ public V1StorageOSVolumeSource secretRef(V1LocalObjectReference secretRef) { * Get secretRef * @return secretRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -130,9 +149,7 @@ public V1StorageOSVolumeSource volumeName(String volumeName) { * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. * @return volumeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") - + @jakarta.annotation.Nullable public String getVolumeName() { return volumeName; } @@ -153,9 +170,7 @@ public V1StorageOSVolumeSource volumeNamespace(String volumeNamespace) { * 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. * @return volumeNamespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getVolumeNamespace() { return volumeNamespace; } @@ -166,8 +181,9 @@ public void setVolumeNamespace(String volumeNamespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -187,7 +203,6 @@ public int hashCode() { return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +220,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("readOnly"); + openapiFields.add("secretRef"); + openapiFields.add("volumeName"); + openapiFields.add("volumeNamespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1StorageOSVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1StorageOSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1StorageOSVolumeSource is not found in the empty JSON string", V1StorageOSVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1StorageOSVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1StorageOSVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + // validate the optional field `secretRef` + if (jsonObj.get("secretRef") != null && !jsonObj.get("secretRef").isJsonNull()) { + V1LocalObjectReference.validateJsonObject(jsonObj.getAsJsonObject("secretRef")); + } + if ((jsonObj.get("volumeName") != null && !jsonObj.get("volumeName").isJsonNull()) && !jsonObj.get("volumeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); + } + if ((jsonObj.get("volumeNamespace") != null && !jsonObj.get("volumeNamespace").isJsonNull()) && !jsonObj.get("volumeNamespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeNamespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeNamespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StorageOSVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageOSVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageOSVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageOSVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageOSVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageOSVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageOSVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1StorageOSVolumeSource + */ + public static V1StorageOSVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageOSVolumeSource.class); + } + + /** + * Convert an instance of V1StorageOSVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java index a34b02567a..5664c9e6ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -45,6 +68,8 @@ public class V1Subject { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; + public V1Subject() { + } public V1Subject apiGroup(String apiGroup) { @@ -56,9 +81,7 @@ public V1Subject apiGroup(String apiGroup) { * 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. * @return apiGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getApiGroup() { return apiGroup; } @@ -79,8 +102,7 @@ public V1Subject kind(String kind) { * 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. * @return kind **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -101,8 +123,7 @@ public V1Subject name(String name) { * Name of the object being referenced. * @return name **/ - @ApiModelProperty(required = true, value = "Name of the object being referenced.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -123,9 +144,7 @@ public V1Subject namespace(String namespace) { * 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. * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -136,8 +155,9 @@ public void setNamespace(String namespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -156,7 +176,6 @@ public int hashCode() { return Objects.hash(apiGroup, kind, name, namespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,11 +192,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroup"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("namespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Subject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Subject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Subject is not found in the empty JSON string", V1Subject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Subject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Subject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Subject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Subject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Subject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Subject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Subject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Subject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Subject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Subject + * @throws IOException if the JSON string is invalid with respect to V1Subject + */ + public static V1Subject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Subject.class); + } + + /** + * Convert an instance of V1Subject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java index 110f86ec6b..0357d4a95f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SubjectAccessReview checks whether or not a user or group can perform an action. */ @@ -52,6 +75,8 @@ public class V1SubjectAccessReview implements io.kubernetes.client.common.Kubern @SerializedName(SERIALIZED_NAME_STATUS) private V1SubjectAccessReviewStatus status; + public V1SubjectAccessReview() { + } public V1SubjectAccessReview apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1SubjectAccessReview apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1SubjectAccessReview kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1SubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1SubjectAccessReview spec(V1SubjectAccessReviewSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1SubjectAccessReviewSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1SubjectAccessReview status(V1SubjectAccessReviewStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SubjectAccessReviewStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1SubjectAccessReviewStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SubjectAccessReview + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SubjectAccessReview is not found in the empty JSON string", V1SubjectAccessReview.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SubjectAccessReview.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SubjectAccessReview` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1SubjectAccessReview.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1SubjectAccessReviewSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1SubjectAccessReviewStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SubjectAccessReview.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SubjectAccessReview' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SubjectAccessReview.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SubjectAccessReview value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SubjectAccessReview read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SubjectAccessReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SubjectAccessReview + * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReview + */ + public static V1SubjectAccessReview fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SubjectAccessReview.class); + } + + /** + * Convert an instance of V1SubjectAccessReview to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java index 7b8d65b9b6..1ac2dc5efa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java @@ -21,14 +21,37 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NonResourceAttributes; import io.kubernetes.client.openapi.models.V1ResourceAttributes; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @@ -37,11 +60,11 @@ public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) - private Map> extra = null; + private Map> extra = new HashMap<>(); public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) - private List groups = null; + private List groups; public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) @@ -59,6 +82,8 @@ public class V1SubjectAccessReviewSpec { @SerializedName(SERIALIZED_NAME_USER) private String user; + public V1SubjectAccessReviewSpec() { + } public V1SubjectAccessReviewSpec extra(Map> extra) { @@ -78,9 +103,7 @@ public V1SubjectAccessReviewSpec putExtraItem(String key, List extraItem * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. * @return extra **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.") - + @jakarta.annotation.Nullable public Map> getExtra() { return extra; } @@ -109,9 +132,7 @@ public V1SubjectAccessReviewSpec addGroupsItem(String groupsItem) { * Groups is the groups you're testing for. * @return groups **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Groups is the groups you're testing for.") - + @jakarta.annotation.Nullable public List getGroups() { return groups; } @@ -132,9 +153,7 @@ public V1SubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes n * Get nonResourceAttributes * @return nonResourceAttributes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } @@ -155,9 +174,7 @@ public V1SubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourc * Get resourceAttributes * @return resourceAttributes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ResourceAttributes getResourceAttributes() { return resourceAttributes; } @@ -178,9 +195,7 @@ public V1SubjectAccessReviewSpec uid(String uid) { * UID information about the requesting user. * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "UID information about the requesting user.") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -201,9 +216,7 @@ public V1SubjectAccessReviewSpec user(String user) { * User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups") - + @jakarta.annotation.Nullable public String getUser() { return user; } @@ -214,8 +227,9 @@ public void setUser(String user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -236,7 +250,6 @@ public int hashCode() { return Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -255,11 +268,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("extra"); + openapiFields.add("groups"); + openapiFields.add("nonResourceAttributes"); + openapiFields.add("resourceAttributes"); + openapiFields.add("uid"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SubjectAccessReviewSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SubjectAccessReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SubjectAccessReviewSpec is not found in the empty JSON string", V1SubjectAccessReviewSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SubjectAccessReviewSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SubjectAccessReviewSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + // validate the optional field `nonResourceAttributes` + if (jsonObj.get("nonResourceAttributes") != null && !jsonObj.get("nonResourceAttributes").isJsonNull()) { + V1NonResourceAttributes.validateJsonObject(jsonObj.getAsJsonObject("nonResourceAttributes")); + } + // validate the optional field `resourceAttributes` + if (jsonObj.get("resourceAttributes") != null && !jsonObj.get("resourceAttributes").isJsonNull()) { + V1ResourceAttributes.validateJsonObject(jsonObj.getAsJsonObject("resourceAttributes")); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + if ((jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SubjectAccessReviewSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SubjectAccessReviewSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SubjectAccessReviewSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SubjectAccessReviewSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SubjectAccessReviewSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SubjectAccessReviewSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SubjectAccessReviewSpec + * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReviewSpec + */ + public static V1SubjectAccessReviewSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SubjectAccessReviewSpec.class); + } + + /** + * Convert an instance of V1SubjectAccessReviewSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java index f6ec607f4f..51e2e258c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SubjectAccessReviewStatus */ @@ -45,6 +68,8 @@ public class V1SubjectAccessReviewStatus { @SerializedName(SERIALIZED_NAME_REASON) private String reason; + public V1SubjectAccessReviewStatus() { + } public V1SubjectAccessReviewStatus allowed(Boolean allowed) { @@ -56,8 +81,7 @@ public V1SubjectAccessReviewStatus allowed(Boolean allowed) { * Allowed is required. True if the action would be allowed, false otherwise. * @return allowed **/ - @ApiModelProperty(required = true, value = "Allowed is required. True if the action would be allowed, false otherwise.") - + @jakarta.annotation.Nonnull public Boolean getAllowed() { return allowed; } @@ -78,9 +102,7 @@ public V1SubjectAccessReviewStatus denied(Boolean denied) { * Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. * @return denied **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.") - + @jakarta.annotation.Nullable public Boolean getDenied() { return denied; } @@ -101,9 +123,7 @@ public V1SubjectAccessReviewStatus evaluationError(String evaluationError) { * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. * @return evaluationError **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.") - + @jakarta.annotation.Nullable public String getEvaluationError() { return evaluationError; } @@ -124,9 +144,7 @@ public V1SubjectAccessReviewStatus reason(String reason) { * Reason is optional. It indicates why a request was allowed or denied. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Reason is optional. It indicates why a request was allowed or denied.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -137,8 +155,9 @@ public void setReason(String reason) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +176,6 @@ public int hashCode() { return Objects.hash(allowed, denied, evaluationError, reason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +192,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allowed"); + openapiFields.add("denied"); + openapiFields.add("evaluationError"); + openapiFields.add("reason"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("allowed"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SubjectAccessReviewStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SubjectAccessReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SubjectAccessReviewStatus is not found in the empty JSON string", V1SubjectAccessReviewStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SubjectAccessReviewStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SubjectAccessReviewStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1SubjectAccessReviewStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("evaluationError") != null && !jsonObj.get("evaluationError").isJsonNull()) && !jsonObj.get("evaluationError").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `evaluationError` to be a primitive type in the JSON string but got `%s`", jsonObj.get("evaluationError").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SubjectAccessReviewStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SubjectAccessReviewStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SubjectAccessReviewStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SubjectAccessReviewStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SubjectAccessReviewStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SubjectAccessReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SubjectAccessReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1SubjectAccessReviewStatus + */ + public static V1SubjectAccessReviewStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SubjectAccessReviewStatus.class); + } + + /** + * Convert an instance of V1SubjectAccessReviewStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java index 5b11b99e5e..53554fb5f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NonResourceRule; import io.kubernetes.client.openapi.models.V1ResourceRule; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -49,6 +72,8 @@ public class V1SubjectRulesReviewStatus { @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) private List resourceRules = new ArrayList<>(); + public V1SubjectRulesReviewStatus() { + } public V1SubjectRulesReviewStatus evaluationError(String evaluationError) { @@ -60,9 +85,7 @@ public V1SubjectRulesReviewStatus evaluationError(String evaluationError) { * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. * @return evaluationError **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.") - + @jakarta.annotation.Nullable public String getEvaluationError() { return evaluationError; } @@ -83,8 +106,7 @@ public V1SubjectRulesReviewStatus incomplete(Boolean incomplete) { * Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. * @return incomplete **/ - @ApiModelProperty(required = true, value = "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.") - + @jakarta.annotation.Nonnull public Boolean getIncomplete() { return incomplete; } @@ -102,6 +124,9 @@ public V1SubjectRulesReviewStatus nonResourceRules(List nonRe } public V1SubjectRulesReviewStatus addNonResourceRulesItem(V1NonResourceRule nonResourceRulesItem) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList<>(); + } this.nonResourceRules.add(nonResourceRulesItem); return this; } @@ -110,8 +135,7 @@ public V1SubjectRulesReviewStatus addNonResourceRulesItem(V1NonResourceRule nonR * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * @return nonResourceRules **/ - @ApiModelProperty(required = true, value = "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") - + @jakarta.annotation.Nonnull public List getNonResourceRules() { return nonResourceRules; } @@ -129,6 +153,9 @@ public V1SubjectRulesReviewStatus resourceRules(List resourceRul } public V1SubjectRulesReviewStatus addResourceRulesItem(V1ResourceRule resourceRulesItem) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList<>(); + } this.resourceRules.add(resourceRulesItem); return this; } @@ -137,8 +164,7 @@ public V1SubjectRulesReviewStatus addResourceRulesItem(V1ResourceRule resourceRu * ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * @return resourceRules **/ - @ApiModelProperty(required = true, value = "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") - + @jakarta.annotation.Nonnull public List getResourceRules() { return resourceRules; } @@ -149,8 +175,9 @@ public void setResourceRules(List resourceRules) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -169,7 +196,6 @@ public int hashCode() { return Objects.hash(evaluationError, incomplete, nonResourceRules, resourceRules); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -186,11 +212,130 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("evaluationError"); + openapiFields.add("incomplete"); + openapiFields.add("nonResourceRules"); + openapiFields.add("resourceRules"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("incomplete"); + openapiRequiredFields.add("nonResourceRules"); + openapiRequiredFields.add("resourceRules"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1SubjectRulesReviewStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1SubjectRulesReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1SubjectRulesReviewStatus is not found in the empty JSON string", V1SubjectRulesReviewStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1SubjectRulesReviewStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SubjectRulesReviewStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1SubjectRulesReviewStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("evaluationError") != null && !jsonObj.get("evaluationError").isJsonNull()) && !jsonObj.get("evaluationError").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `evaluationError` to be a primitive type in the JSON string but got `%s`", jsonObj.get("evaluationError").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("nonResourceRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nonResourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("nonResourceRules").toString())); + } + + JsonArray jsonArraynonResourceRules = jsonObj.getAsJsonArray("nonResourceRules"); + // validate the required field `nonResourceRules` (array) + for (int i = 0; i < jsonArraynonResourceRules.size(); i++) { + V1NonResourceRule.validateJsonObject(jsonArraynonResourceRules.get(i).getAsJsonObject()); + }; + // ensure the json data is an array + if (!jsonObj.get("resourceRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("resourceRules").toString())); + } + + JsonArray jsonArrayresourceRules = jsonObj.getAsJsonArray("resourceRules"); + // validate the required field `resourceRules` (array) + for (int i = 0; i < jsonArrayresourceRules.size(); i++) { + V1ResourceRule.validateJsonObject(jsonArrayresourceRules.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1SubjectRulesReviewStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1SubjectRulesReviewStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1SubjectRulesReviewStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1SubjectRulesReviewStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1SubjectRulesReviewStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1SubjectRulesReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1SubjectRulesReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1SubjectRulesReviewStatus + */ + public static V1SubjectRulesReviewStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1SubjectRulesReviewStatus.class); + } + + /** + * Convert an instance of V1SubjectRulesReviewStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java index e833082a0a..542669e01b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Sysctl defines a kernel parameter to be set */ @@ -37,6 +60,8 @@ public class V1Sysctl { @SerializedName(SERIALIZED_NAME_VALUE) private String value; + public V1Sysctl() { + } public V1Sysctl name(String name) { @@ -48,8 +73,7 @@ public V1Sysctl name(String name) { * Name of a property to set * @return name **/ - @ApiModelProperty(required = true, value = "Name of a property to set") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -70,8 +94,7 @@ public V1Sysctl value(String value) { * Value of a property to set * @return value **/ - @ApiModelProperty(required = true, value = "Value of a property to set") - + @jakarta.annotation.Nonnull public String getValue() { return value; } @@ -82,8 +105,9 @@ public void setValue(String value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(name, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("value"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Sysctl + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Sysctl.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Sysctl is not found in the empty JSON string", V1Sysctl.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Sysctl.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Sysctl` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Sysctl.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Sysctl.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Sysctl' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Sysctl.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Sysctl value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Sysctl read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Sysctl given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Sysctl + * @throws IOException if the JSON string is invalid with respect to V1Sysctl + */ + public static V1Sysctl fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Sysctl.class); + } + + /** + * Convert an instance of V1Sysctl to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java index 95b2f15e4e..424d489528 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TCPSocketAction describes an action based on opening a socket */ @@ -38,6 +61,8 @@ public class V1TCPSocketAction { @SerializedName(SERIALIZED_NAME_PORT) private IntOrString port; + public V1TCPSocketAction() { + } public V1TCPSocketAction host(String host) { @@ -49,9 +74,7 @@ public V1TCPSocketAction host(String host) { * Optional: Host name to connect to, defaults to the pod IP. * @return host **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Optional: Host name to connect to, defaults to the pod IP.") - + @jakarta.annotation.Nullable public String getHost() { return host; } @@ -72,8 +95,7 @@ public V1TCPSocketAction port(IntOrString port) { * 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. * @return port **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public IntOrString getPort() { return port; } @@ -84,8 +106,9 @@ public void setPort(IntOrString port) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +125,6 @@ public int hashCode() { return Objects.hash(host, port); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +139,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("host"); + openapiFields.add("port"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("port"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TCPSocketAction + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TCPSocketAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TCPSocketAction is not found in the empty JSON string", V1TCPSocketAction.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TCPSocketAction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TCPSocketAction` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TCPSocketAction.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("host") != null && !jsonObj.get("host").isJsonNull()) && !jsonObj.get("host").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); + } + if (!jsonObj.get("port").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `port` to be a primitive type in the JSON string but got `%s`", jsonObj.get("port").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TCPSocketAction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TCPSocketAction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TCPSocketAction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TCPSocketAction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TCPSocketAction read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TCPSocketAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TCPSocketAction + * @throws IOException if the JSON string is invalid with respect to V1TCPSocketAction + */ + public static V1TCPSocketAction fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TCPSocketAction.class); + } + + /** + * Convert an instance of V1TCPSocketAction to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java index 20b304d8e3..9ce2701600 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. */ @@ -46,6 +69,8 @@ public class V1Taint { @SerializedName(SERIALIZED_NAME_VALUE) private String value; + public V1Taint() { + } public V1Taint effect(String effect) { @@ -57,8 +82,7 @@ public V1Taint effect(String effect) { * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. * @return effect **/ - @ApiModelProperty(required = true, value = "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.") - + @jakarta.annotation.Nonnull public String getEffect() { return effect; } @@ -79,8 +103,7 @@ public V1Taint key(String key) { * Required. The taint key to be applied to a node. * @return key **/ - @ApiModelProperty(required = true, value = "Required. The taint key to be applied to a node.") - + @jakarta.annotation.Nonnull public String getKey() { return key; } @@ -101,9 +124,7 @@ public V1Taint timeAdded(OffsetDateTime timeAdded) { * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. * @return timeAdded **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.") - + @jakarta.annotation.Nullable public OffsetDateTime getTimeAdded() { return timeAdded; } @@ -124,9 +145,7 @@ public V1Taint value(String value) { * The taint value corresponding to the taint key. * @return value **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The taint value corresponding to the taint key.") - + @jakarta.annotation.Nullable public String getValue() { return value; } @@ -137,8 +156,9 @@ public void setValue(String value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +177,6 @@ public int hashCode() { return Objects.hash(effect, key, timeAdded, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +193,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("effect"); + openapiFields.add("key"); + openapiFields.add("timeAdded"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("effect"); + openapiRequiredFields.add("key"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Taint + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Taint.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Taint is not found in the empty JSON string", V1Taint.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Taint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Taint` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Taint.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("effect").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `effect` to be a primitive type in the JSON string but got `%s`", jsonObj.get("effect").toString())); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Taint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Taint' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Taint.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Taint value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Taint read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Taint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Taint + * @throws IOException if the JSON string is invalid with respect to V1Taint + */ + public static V1Taint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Taint.class); + } + + /** + * Convert an instance of V1Taint to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java index 75844b3a7e..dce9559672 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1BoundObjectReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TokenRequestSpec contains client provided parameters of a token request. */ @@ -44,6 +67,8 @@ public class V1TokenRequestSpec { @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) private Long expirationSeconds; + public V1TokenRequestSpec() { + } public V1TokenRequestSpec audiences(List audiences) { @@ -52,6 +77,9 @@ public V1TokenRequestSpec audiences(List audiences) { } public V1TokenRequestSpec addAudiencesItem(String audiencesItem) { + if (this.audiences == null) { + this.audiences = new ArrayList<>(); + } this.audiences.add(audiencesItem); return this; } @@ -60,8 +88,7 @@ public V1TokenRequestSpec addAudiencesItem(String audiencesItem) { * Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. * @return audiences **/ - @ApiModelProperty(required = true, value = "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.") - + @jakarta.annotation.Nonnull public List getAudiences() { return audiences; } @@ -82,9 +109,7 @@ public V1TokenRequestSpec boundObjectRef(V1BoundObjectReference boundObjectRef) * Get boundObjectRef * @return boundObjectRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1BoundObjectReference getBoundObjectRef() { return boundObjectRef; } @@ -105,9 +130,7 @@ public V1TokenRequestSpec expirationSeconds(Long expirationSeconds) { * ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. * @return expirationSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.") - + @jakarta.annotation.Nullable public Long getExpirationSeconds() { return expirationSeconds; } @@ -118,8 +141,9 @@ public void setExpirationSeconds(Long expirationSeconds) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -137,7 +161,6 @@ public int hashCode() { return Objects.hash(audiences, boundObjectRef, expirationSeconds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,11 +176,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("audiences"); + openapiFields.add("boundObjectRef"); + openapiFields.add("expirationSeconds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("audiences"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TokenRequestSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TokenRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TokenRequestSpec is not found in the empty JSON string", V1TokenRequestSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TokenRequestSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TokenRequestSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TokenRequestSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("audiences") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("audiences").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audiences` to be an array in the JSON string but got `%s`", jsonObj.get("audiences").toString())); + } + // validate the optional field `boundObjectRef` + if (jsonObj.get("boundObjectRef") != null && !jsonObj.get("boundObjectRef").isJsonNull()) { + V1BoundObjectReference.validateJsonObject(jsonObj.getAsJsonObject("boundObjectRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TokenRequestSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TokenRequestSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TokenRequestSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TokenRequestSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TokenRequestSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TokenRequestSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenRequestSpec + * @throws IOException if the JSON string is invalid with respect to V1TokenRequestSpec + */ + public static V1TokenRequestSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TokenRequestSpec.class); + } + + /** + * Convert an instance of V1TokenRequestSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java index a7f2195015..966c31f22e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TokenRequestStatus is the result of a token request. */ @@ -38,6 +61,8 @@ public class V1TokenRequestStatus { @SerializedName(SERIALIZED_NAME_TOKEN) private String token; + public V1TokenRequestStatus() { + } public V1TokenRequestStatus expirationTimestamp(OffsetDateTime expirationTimestamp) { @@ -49,8 +74,7 @@ public V1TokenRequestStatus expirationTimestamp(OffsetDateTime expirationTimesta * ExpirationTimestamp is the time of expiration of the returned token. * @return expirationTimestamp **/ - @ApiModelProperty(required = true, value = "ExpirationTimestamp is the time of expiration of the returned token.") - + @jakarta.annotation.Nonnull public OffsetDateTime getExpirationTimestamp() { return expirationTimestamp; } @@ -71,8 +95,7 @@ public V1TokenRequestStatus token(String token) { * Token is the opaque bearer token. * @return token **/ - @ApiModelProperty(required = true, value = "Token is the opaque bearer token.") - + @jakarta.annotation.Nonnull public String getToken() { return token; } @@ -83,8 +106,9 @@ public void setToken(String token) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +125,6 @@ public int hashCode() { return Objects.hash(expirationTimestamp, token); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +139,107 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expirationTimestamp"); + openapiFields.add("token"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("expirationTimestamp"); + openapiRequiredFields.add("token"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TokenRequestStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TokenRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TokenRequestStatus is not found in the empty JSON string", V1TokenRequestStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TokenRequestStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TokenRequestStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TokenRequestStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("token").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TokenRequestStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TokenRequestStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TokenRequestStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TokenRequestStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TokenRequestStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TokenRequestStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenRequestStatus + * @throws IOException if the JSON string is invalid with respect to V1TokenRequestStatus + */ + public static V1TokenRequestStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TokenRequestStatus.class); + } + + /** + * Convert an instance of V1TokenRequestStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java index 73f8d9f008..118c13d2d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1TokenReviewSpec; import io.kubernetes.client.openapi.models.V1TokenReviewStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1TokenReview implements io.kubernetes.client.common.KubernetesObje @SerializedName(SERIALIZED_NAME_STATUS) private V1TokenReviewStatus status; + public V1TokenReview() { + } public V1TokenReview apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1TokenReview apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1TokenReview kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1TokenReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1TokenReview spec(V1TokenReviewSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1TokenReviewSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1TokenReview status(V1TokenReviewStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1TokenReviewStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1TokenReviewStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TokenReview + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TokenReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TokenReview is not found in the empty JSON string", V1TokenReview.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TokenReview.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TokenReview` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TokenReview.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1TokenReviewSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1TokenReviewStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TokenReview.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TokenReview' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TokenReview.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TokenReview value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TokenReview read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TokenReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenReview + * @throws IOException if the JSON string is invalid with respect to V1TokenReview + */ + public static V1TokenReview fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TokenReview.class); + } + + /** + * Convert an instance of V1TokenReview to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java index 385d6cc694..f0026430fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TokenReviewSpec is a description of the token authentication request. */ @@ -33,12 +56,14 @@ public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) - private List audiences = null; + private List audiences; public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) private String token; + public V1TokenReviewSpec() { + } public V1TokenReviewSpec audiences(List audiences) { @@ -58,9 +83,7 @@ public V1TokenReviewSpec addAudiencesItem(String audiencesItem) { * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. * @return audiences **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.") - + @jakarta.annotation.Nullable public List getAudiences() { return audiences; } @@ -81,9 +104,7 @@ public V1TokenReviewSpec token(String token) { * Token is the opaque bearer token. * @return token **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Token is the opaque bearer token.") - + @jakarta.annotation.Nullable public String getToken() { return token; } @@ -94,8 +115,9 @@ public void setToken(String token) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -112,7 +134,6 @@ public int hashCode() { return Objects.hash(audiences, token); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,11 +148,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("audiences"); + openapiFields.add("token"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TokenReviewSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TokenReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TokenReviewSpec is not found in the empty JSON string", V1TokenReviewSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TokenReviewSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TokenReviewSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("audiences") != null && !jsonObj.get("audiences").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audiences` to be an array in the JSON string but got `%s`", jsonObj.get("audiences").toString())); + } + if ((jsonObj.get("token") != null && !jsonObj.get("token").isJsonNull()) && !jsonObj.get("token").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TokenReviewSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TokenReviewSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TokenReviewSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TokenReviewSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TokenReviewSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TokenReviewSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenReviewSpec + * @throws IOException if the JSON string is invalid with respect to V1TokenReviewSpec + */ + public static V1TokenReviewSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TokenReviewSpec.class); + } + + /** + * Convert an instance of V1TokenReviewSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java index 2546e61b1a..54a16de2ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1UserInfo; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TokenReviewStatus is the result of the token authentication request. */ @@ -34,7 +57,7 @@ public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) - private List audiences = null; + private List audiences; public static final String SERIALIZED_NAME_AUTHENTICATED = "authenticated"; @SerializedName(SERIALIZED_NAME_AUTHENTICATED) @@ -48,6 +71,8 @@ public class V1TokenReviewStatus { @SerializedName(SERIALIZED_NAME_USER) private V1UserInfo user; + public V1TokenReviewStatus() { + } public V1TokenReviewStatus audiences(List audiences) { @@ -67,9 +92,7 @@ public V1TokenReviewStatus addAudiencesItem(String audiencesItem) { * Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. * @return audiences **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.") - + @jakarta.annotation.Nullable public List getAudiences() { return audiences; } @@ -90,9 +113,7 @@ public V1TokenReviewStatus authenticated(Boolean authenticated) { * Authenticated indicates that the token was associated with a known user. * @return authenticated **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Authenticated indicates that the token was associated with a known user.") - + @jakarta.annotation.Nullable public Boolean getAuthenticated() { return authenticated; } @@ -113,9 +134,7 @@ public V1TokenReviewStatus error(String error) { * Error indicates that the token couldn't be checked * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Error indicates that the token couldn't be checked") - + @jakarta.annotation.Nullable public String getError() { return error; } @@ -136,9 +155,7 @@ public V1TokenReviewStatus user(V1UserInfo user) { * Get user * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1UserInfo getUser() { return user; } @@ -149,8 +166,9 @@ public void setUser(V1UserInfo user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -169,7 +187,6 @@ public int hashCode() { return Objects.hash(audiences, authenticated, error, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -186,11 +203,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("audiences"); + openapiFields.add("authenticated"); + openapiFields.add("error"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TokenReviewStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TokenReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TokenReviewStatus is not found in the empty JSON string", V1TokenReviewStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TokenReviewStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TokenReviewStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("audiences") != null && !jsonObj.get("audiences").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audiences` to be an array in the JSON string but got `%s`", jsonObj.get("audiences").toString())); + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); + } + // validate the optional field `user` + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { + V1UserInfo.validateJsonObject(jsonObj.getAsJsonObject("user")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TokenReviewStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TokenReviewStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TokenReviewStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TokenReviewStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TokenReviewStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TokenReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TokenReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1TokenReviewStatus + */ + public static V1TokenReviewStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TokenReviewStatus.class); + } + + /** + * Convert an instance of V1TokenReviewStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java index 06c7faff1c..36f163895f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @@ -49,6 +72,8 @@ public class V1Toleration { @SerializedName(SERIALIZED_NAME_VALUE) private String value; + public V1Toleration() { + } public V1Toleration effect(String effect) { @@ -60,9 +85,7 @@ public V1Toleration effect(String effect) { * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. * @return effect **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.") - + @jakarta.annotation.Nullable public String getEffect() { return effect; } @@ -83,9 +106,7 @@ public V1Toleration key(String key) { * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. * @return key **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getKey() { return key; } @@ -106,9 +127,7 @@ public V1Toleration operator(String operator) { * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. * @return operator **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getOperator() { return operator; } @@ -129,9 +148,7 @@ public V1Toleration tolerationSeconds(Long tolerationSeconds) { * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. * @return tolerationSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Long getTolerationSeconds() { return tolerationSeconds; } @@ -152,9 +169,7 @@ public V1Toleration value(String value) { * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. * @return value **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.") - + @jakarta.annotation.Nullable public String getValue() { return value; } @@ -165,8 +180,9 @@ public void setValue(String value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -186,7 +202,6 @@ public int hashCode() { return Objects.hash(effect, key, operator, tolerationSeconds, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -204,11 +219,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("effect"); + openapiFields.add("key"); + openapiFields.add("operator"); + openapiFields.add("tolerationSeconds"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Toleration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Toleration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Toleration is not found in the empty JSON string", V1Toleration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Toleration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Toleration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("effect") != null && !jsonObj.get("effect").isJsonNull()) && !jsonObj.get("effect").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `effect` to be a primitive type in the JSON string but got `%s`", jsonObj.get("effect").toString())); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("operator") != null && !jsonObj.get("operator").isJsonNull()) && !jsonObj.get("operator").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Toleration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Toleration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Toleration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Toleration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Toleration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Toleration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Toleration + * @throws IOException if the JSON string is invalid with respect to V1Toleration + */ + public static V1Toleration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Toleration.class); + } + + /** + * Convert an instance of V1Toleration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java index 354ddd80a9..82aa07e20d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. */ @@ -39,6 +62,8 @@ public class V1TopologySelectorLabelRequirement { @SerializedName(SERIALIZED_NAME_VALUES) private List values = new ArrayList<>(); + public V1TopologySelectorLabelRequirement() { + } public V1TopologySelectorLabelRequirement key(String key) { @@ -50,8 +75,7 @@ public V1TopologySelectorLabelRequirement key(String key) { * The label key that the selector applies to. * @return key **/ - @ApiModelProperty(required = true, value = "The label key that the selector applies to.") - + @jakarta.annotation.Nonnull public String getKey() { return key; } @@ -69,6 +93,9 @@ public V1TopologySelectorLabelRequirement values(List values) { } public V1TopologySelectorLabelRequirement addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } this.values.add(valuesItem); return this; } @@ -77,8 +104,7 @@ public V1TopologySelectorLabelRequirement addValuesItem(String valuesItem) { * An array of string values. One value must match the label to be selected. Each entry in Values is ORed. * @return values **/ - @ApiModelProperty(required = true, value = "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.") - + @jakarta.annotation.Nonnull public List getValues() { return values; } @@ -89,8 +115,9 @@ public void setValues(List values) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -107,7 +134,6 @@ public int hashCode() { return Objects.hash(key, values); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -122,11 +148,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("values"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + openapiRequiredFields.add("values"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TopologySelectorLabelRequirement + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TopologySelectorLabelRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TopologySelectorLabelRequirement is not found in the empty JSON string", V1TopologySelectorLabelRequirement.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TopologySelectorLabelRequirement.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TopologySelectorLabelRequirement` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TopologySelectorLabelRequirement.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + // ensure the required json array is present + if (jsonObj.get("values") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TopologySelectorLabelRequirement.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TopologySelectorLabelRequirement' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TopologySelectorLabelRequirement.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TopologySelectorLabelRequirement value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TopologySelectorLabelRequirement read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TopologySelectorLabelRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TopologySelectorLabelRequirement + * @throws IOException if the JSON string is invalid with respect to V1TopologySelectorLabelRequirement + */ + public static V1TopologySelectorLabelRequirement fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TopologySelectorLabelRequirement.class); + } + + /** + * Convert an instance of V1TopologySelectorLabelRequirement to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java index 483efc1e3d..7778e4b8db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -34,8 +57,10 @@ public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) - private List matchLabelExpressions = null; + private List matchLabelExpressions; + public V1TopologySelectorTerm() { + } public V1TopologySelectorTerm matchLabelExpressions(List matchLabelExpressions) { @@ -55,9 +80,7 @@ public V1TopologySelectorTerm addMatchLabelExpressionsItem(V1TopologySelectorLab * A list of topology selector requirements by labels. * @return matchLabelExpressions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A list of topology selector requirements by labels.") - + @jakarta.annotation.Nullable public List getMatchLabelExpressions() { return matchLabelExpressions; } @@ -68,8 +91,9 @@ public void setMatchLabelExpressions(List ma } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(matchLabelExpressions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("matchLabelExpressions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TopologySelectorTerm + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TopologySelectorTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TopologySelectorTerm is not found in the empty JSON string", V1TopologySelectorTerm.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TopologySelectorTerm.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TopologySelectorTerm` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("matchLabelExpressions") != null && !jsonObj.get("matchLabelExpressions").isJsonNull()) { + JsonArray jsonArraymatchLabelExpressions = jsonObj.getAsJsonArray("matchLabelExpressions"); + if (jsonArraymatchLabelExpressions != null) { + // ensure the json data is an array + if (!jsonObj.get("matchLabelExpressions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchLabelExpressions` to be an array in the JSON string but got `%s`", jsonObj.get("matchLabelExpressions").toString())); + } + + // validate the optional field `matchLabelExpressions` (array) + for (int i = 0; i < jsonArraymatchLabelExpressions.size(); i++) { + V1TopologySelectorLabelRequirement.validateJsonObject(jsonArraymatchLabelExpressions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TopologySelectorTerm.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TopologySelectorTerm' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TopologySelectorTerm.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TopologySelectorTerm value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TopologySelectorTerm read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TopologySelectorTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TopologySelectorTerm + * @throws IOException if the JSON string is invalid with respect to V1TopologySelectorTerm + */ + public static V1TopologySelectorTerm fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TopologySelectorTerm.class); + } + + /** + * Convert an instance of V1TopologySelectorTerm to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java index cf1bcc7f39..20ca711d01 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TopologySpreadConstraint specifies how to spread matching pods among the given topology. */ @@ -38,7 +61,7 @@ public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_MATCH_LABEL_KEYS = "matchLabelKeys"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_KEYS) - private List matchLabelKeys = null; + private List matchLabelKeys; public static final String SERIALIZED_NAME_MAX_SKEW = "maxSkew"; @SerializedName(SERIALIZED_NAME_MAX_SKEW) @@ -64,6 +87,8 @@ public class V1TopologySpreadConstraint { @SerializedName(SERIALIZED_NAME_WHEN_UNSATISFIABLE) private String whenUnsatisfiable; + public V1TopologySpreadConstraint() { + } public V1TopologySpreadConstraint labelSelector(V1LabelSelector labelSelector) { @@ -75,9 +100,7 @@ public V1TopologySpreadConstraint labelSelector(V1LabelSelector labelSelector) { * Get labelSelector * @return labelSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getLabelSelector() { return labelSelector; } @@ -106,9 +129,7 @@ public V1TopologySpreadConstraint addMatchLabelKeysItem(String matchLabelKeysIte * 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). * @return matchLabelKeys **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public List getMatchLabelKeys() { return matchLabelKeys; } @@ -129,8 +150,7 @@ public V1TopologySpreadConstraint maxSkew(Integer maxSkew) { * 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. * @return maxSkew **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public Integer getMaxSkew() { return maxSkew; } @@ -151,9 +171,7 @@ public V1TopologySpreadConstraint minDomains(Integer minDomains) { * 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). * @return minDomains **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public Integer getMinDomains() { return minDomains; } @@ -174,9 +192,7 @@ public V1TopologySpreadConstraint nodeAffinityPolicy(String nodeAffinityPolicy) * 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. * @return nodeAffinityPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getNodeAffinityPolicy() { return nodeAffinityPolicy; } @@ -197,9 +213,7 @@ public V1TopologySpreadConstraint nodeTaintsPolicy(String nodeTaintsPolicy) { * 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. * @return nodeTaintsPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getNodeTaintsPolicy() { return nodeTaintsPolicy; } @@ -220,8 +234,7 @@ public V1TopologySpreadConstraint topologyKey(String topologyKey) { * 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 <key, value> 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. * @return topologyKey **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getTopologyKey() { return topologyKey; } @@ -242,8 +255,7 @@ public V1TopologySpreadConstraint whenUnsatisfiable(String whenUnsatisfiable) { * 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. * @return whenUnsatisfiable **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getWhenUnsatisfiable() { return whenUnsatisfiable; } @@ -254,8 +266,9 @@ public void setWhenUnsatisfiable(String whenUnsatisfiable) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -278,7 +291,6 @@ public int hashCode() { return Objects.hash(labelSelector, matchLabelKeys, maxSkew, minDomains, nodeAffinityPolicy, nodeTaintsPolicy, topologyKey, whenUnsatisfiable); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -299,11 +311,131 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("labelSelector"); + openapiFields.add("matchLabelKeys"); + openapiFields.add("maxSkew"); + openapiFields.add("minDomains"); + openapiFields.add("nodeAffinityPolicy"); + openapiFields.add("nodeTaintsPolicy"); + openapiFields.add("topologyKey"); + openapiFields.add("whenUnsatisfiable"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("maxSkew"); + openapiRequiredFields.add("topologyKey"); + openapiRequiredFields.add("whenUnsatisfiable"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TopologySpreadConstraint + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TopologySpreadConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TopologySpreadConstraint is not found in the empty JSON string", V1TopologySpreadConstraint.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TopologySpreadConstraint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TopologySpreadConstraint` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TopologySpreadConstraint.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `labelSelector` + if (jsonObj.get("labelSelector") != null && !jsonObj.get("labelSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("labelSelector")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("matchLabelKeys") != null && !jsonObj.get("matchLabelKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchLabelKeys` to be an array in the JSON string but got `%s`", jsonObj.get("matchLabelKeys").toString())); + } + if ((jsonObj.get("nodeAffinityPolicy") != null && !jsonObj.get("nodeAffinityPolicy").isJsonNull()) && !jsonObj.get("nodeAffinityPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeAffinityPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeAffinityPolicy").toString())); + } + if ((jsonObj.get("nodeTaintsPolicy") != null && !jsonObj.get("nodeTaintsPolicy").isJsonNull()) && !jsonObj.get("nodeTaintsPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeTaintsPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeTaintsPolicy").toString())); + } + if (!jsonObj.get("topologyKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `topologyKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("topologyKey").toString())); + } + if (!jsonObj.get("whenUnsatisfiable").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `whenUnsatisfiable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("whenUnsatisfiable").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TopologySpreadConstraint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TopologySpreadConstraint' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TopologySpreadConstraint.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TopologySpreadConstraint value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TopologySpreadConstraint read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TopologySpreadConstraint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TopologySpreadConstraint + * @throws IOException if the JSON string is invalid with respect to V1TopologySpreadConstraint + */ + public static V1TopologySpreadConstraint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TopologySpreadConstraint.class); + } + + /** + * Convert an instance of V1TopologySpreadConstraint to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java index 59ea880d92..9d75ec52c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. */ @@ -41,6 +64,8 @@ public class V1TypedLocalObjectReference { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1TypedLocalObjectReference() { + } public V1TypedLocalObjectReference apiGroup(String apiGroup) { @@ -52,9 +77,7 @@ public V1TypedLocalObjectReference apiGroup(String apiGroup) { * 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. * @return apiGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getApiGroup() { return apiGroup; } @@ -75,8 +98,7 @@ public V1TypedLocalObjectReference kind(String kind) { * Kind is the type of resource being referenced * @return kind **/ - @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -97,8 +119,7 @@ public V1TypedLocalObjectReference name(String name) { * Name is the name of resource being referenced * @return name **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -109,8 +130,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(apiGroup, kind, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroup"); + openapiFields.add("kind"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TypedLocalObjectReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TypedLocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TypedLocalObjectReference is not found in the empty JSON string", V1TypedLocalObjectReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TypedLocalObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TypedLocalObjectReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TypedLocalObjectReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TypedLocalObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TypedLocalObjectReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TypedLocalObjectReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TypedLocalObjectReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TypedLocalObjectReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TypedLocalObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TypedLocalObjectReference + * @throws IOException if the JSON string is invalid with respect to V1TypedLocalObjectReference + */ + public static V1TypedLocalObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TypedLocalObjectReference.class); + } + + /** + * Convert an instance of V1TypedLocalObjectReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java index af67c0dd54..4139e2f94b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * V1TypedObjectReference */ @@ -44,6 +67,8 @@ public class V1TypedObjectReference { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; + public V1TypedObjectReference() { + } public V1TypedObjectReference apiGroup(String apiGroup) { @@ -55,9 +80,7 @@ public V1TypedObjectReference apiGroup(String apiGroup) { * 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. * @return apiGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getApiGroup() { return apiGroup; } @@ -78,8 +101,7 @@ public V1TypedObjectReference kind(String kind) { * Kind is the type of resource being referenced * @return kind **/ - @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -100,8 +122,7 @@ public V1TypedObjectReference name(String name) { * Name is the name of resource being referenced * @return name **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -122,9 +143,7 @@ public V1TypedObjectReference namespace(String namespace) { * 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. * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -135,8 +154,9 @@ public void setNamespace(String namespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -155,7 +175,6 @@ public int hashCode() { return Objects.hash(apiGroup, kind, name, namespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -172,11 +191,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroup"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("namespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1TypedObjectReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1TypedObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1TypedObjectReference is not found in the empty JSON string", V1TypedObjectReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1TypedObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TypedObjectReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TypedObjectReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1TypedObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1TypedObjectReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1TypedObjectReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1TypedObjectReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1TypedObjectReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1TypedObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1TypedObjectReference + * @throws IOException if the JSON string is invalid with respect to V1TypedObjectReference + */ + public static V1TypedObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1TypedObjectReference.class); + } + + /** + * Convert an instance of V1TypedObjectReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java index c7c44be5c2..dc1b150d1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. */ @@ -33,12 +56,14 @@ public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) - private List failed = null; + private List failed; public static final String SERIALIZED_NAME_SUCCEEDED = "succeeded"; @SerializedName(SERIALIZED_NAME_SUCCEEDED) - private List succeeded = null; + private List succeeded; + public V1UncountedTerminatedPods() { + } public V1UncountedTerminatedPods failed(List failed) { @@ -58,9 +83,7 @@ public V1UncountedTerminatedPods addFailedItem(String failedItem) { * failed holds UIDs of failed Pods. * @return failed **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "failed holds UIDs of failed Pods.") - + @jakarta.annotation.Nullable public List getFailed() { return failed; } @@ -89,9 +112,7 @@ public V1UncountedTerminatedPods addSucceededItem(String succeededItem) { * succeeded holds UIDs of succeeded Pods. * @return succeeded **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "succeeded holds UIDs of succeeded Pods.") - + @jakarta.annotation.Nullable public List getSucceeded() { return succeeded; } @@ -102,8 +123,9 @@ public void setSucceeded(List succeeded) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -120,7 +142,6 @@ public int hashCode() { return Objects.hash(failed, succeeded); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -135,11 +156,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("failed"); + openapiFields.add("succeeded"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1UncountedTerminatedPods + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1UncountedTerminatedPods.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1UncountedTerminatedPods is not found in the empty JSON string", V1UncountedTerminatedPods.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1UncountedTerminatedPods.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1UncountedTerminatedPods` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("failed") != null && !jsonObj.get("failed").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `failed` to be an array in the JSON string but got `%s`", jsonObj.get("failed").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("succeeded") != null && !jsonObj.get("succeeded").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `succeeded` to be an array in the JSON string but got `%s`", jsonObj.get("succeeded").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1UncountedTerminatedPods.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1UncountedTerminatedPods' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1UncountedTerminatedPods.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1UncountedTerminatedPods value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1UncountedTerminatedPods read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1UncountedTerminatedPods given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1UncountedTerminatedPods + * @throws IOException if the JSON string is invalid with respect to V1UncountedTerminatedPods + */ + public static V1UncountedTerminatedPods fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1UncountedTerminatedPods.class); + } + + /** + * Convert an instance of V1UncountedTerminatedPods to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java index 7f6d2b1767..df3ab5cc9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java @@ -19,14 +19,37 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * UserInfo holds the information about the user needed to implement the user.Info interface. */ @@ -35,11 +58,11 @@ public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) - private Map> extra = null; + private Map> extra = new HashMap<>(); public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) - private List groups = null; + private List groups; public static final String SERIALIZED_NAME_UID = "uid"; @SerializedName(SERIALIZED_NAME_UID) @@ -49,6 +72,8 @@ public class V1UserInfo { @SerializedName(SERIALIZED_NAME_USERNAME) private String username; + public V1UserInfo() { + } public V1UserInfo extra(Map> extra) { @@ -68,9 +93,7 @@ public V1UserInfo putExtraItem(String key, List extraItem) { * Any additional information provided by the authenticator. * @return extra **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Any additional information provided by the authenticator.") - + @jakarta.annotation.Nullable public Map> getExtra() { return extra; } @@ -99,9 +122,7 @@ public V1UserInfo addGroupsItem(String groupsItem) { * The names of groups this user is a part of. * @return groups **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The names of groups this user is a part of.") - + @jakarta.annotation.Nullable public List getGroups() { return groups; } @@ -122,9 +143,7 @@ public V1UserInfo uid(String uid) { * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -145,9 +164,7 @@ public V1UserInfo username(String username) { * The name that uniquely identifies this user among all active users. * @return username **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The name that uniquely identifies this user among all active users.") - + @jakarta.annotation.Nullable public String getUsername() { return username; } @@ -158,8 +175,9 @@ public void setUsername(String username) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -178,7 +196,6 @@ public int hashCode() { return Objects.hash(extra, groups, uid, username); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -195,11 +212,107 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("extra"); + openapiFields.add("groups"); + openapiFields.add("uid"); + openapiFields.add("username"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1UserInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1UserInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1UserInfo is not found in the empty JSON string", V1UserInfo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1UserInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1UserInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1UserInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1UserInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1UserInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1UserInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1UserInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1UserInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1UserInfo + * @throws IOException if the JSON string is invalid with respect to V1UserInfo + */ + public static V1UserInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1UserInfo.class); + } + + /** + * Convert an instance of V1UserInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java index 6c79248abf..628efa1cff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java @@ -23,12 +23,35 @@ import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1MatchCondition; import io.kubernetes.client.openapi.models.V1RuleWithOperations; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. */ @@ -49,7 +72,7 @@ public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) - private List matchConditions = null; + private List matchConditions; public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; @SerializedName(SERIALIZED_NAME_MATCH_POLICY) @@ -69,7 +92,7 @@ public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) - private List rules = null; + private List rules; public static final String SERIALIZED_NAME_SIDE_EFFECTS = "sideEffects"; @SerializedName(SERIALIZED_NAME_SIDE_EFFECTS) @@ -79,6 +102,8 @@ public class V1ValidatingWebhook { @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) private Integer timeoutSeconds; + public V1ValidatingWebhook() { + } public V1ValidatingWebhook admissionReviewVersions(List admissionReviewVersions) { @@ -87,6 +112,9 @@ public V1ValidatingWebhook admissionReviewVersions(List admissionReviewV } public V1ValidatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVersionsItem) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList<>(); + } this.admissionReviewVersions.add(admissionReviewVersionsItem); return this; } @@ -95,8 +123,7 @@ public V1ValidatingWebhook addAdmissionReviewVersionsItem(String admissionReview * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. * @return admissionReviewVersions **/ - @ApiModelProperty(required = true, value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") - + @jakarta.annotation.Nonnull public List getAdmissionReviewVersions() { return admissionReviewVersions; } @@ -117,8 +144,7 @@ public V1ValidatingWebhook clientConfig(AdmissionregistrationV1WebhookClientConf * Get clientConfig * @return clientConfig **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public AdmissionregistrationV1WebhookClientConfig getClientConfig() { return clientConfig; } @@ -139,9 +165,7 @@ public V1ValidatingWebhook failurePolicy(String failurePolicy) { * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") - + @jakarta.annotation.Nullable public String getFailurePolicy() { return failurePolicy; } @@ -193,9 +217,7 @@ public V1ValidatingWebhook matchPolicy(String matchPolicy) { * matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" * @return matchPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"") - + @jakarta.annotation.Nullable public String getMatchPolicy() { return matchPolicy; } @@ -216,8 +238,7 @@ public V1ValidatingWebhook name(String name) { * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. * @return name **/ - @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -238,9 +259,7 @@ public V1ValidatingWebhook namespaceSelector(V1LabelSelector namespaceSelector) * Get namespaceSelector * @return namespaceSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -261,9 +280,7 @@ public V1ValidatingWebhook objectSelector(V1LabelSelector objectSelector) { * Get objectSelector * @return objectSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getObjectSelector() { return objectSelector; } @@ -292,9 +309,7 @@ public V1ValidatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. * @return rules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") - + @jakarta.annotation.Nullable public List getRules() { return rules; } @@ -315,8 +330,7 @@ public V1ValidatingWebhook sideEffects(String sideEffects) { * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. * @return sideEffects **/ - @ApiModelProperty(required = true, value = "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.") - + @jakarta.annotation.Nonnull public String getSideEffects() { return sideEffects; } @@ -337,9 +351,7 @@ public V1ValidatingWebhook timeoutSeconds(Integer timeoutSeconds) { * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. * @return timeoutSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") - + @jakarta.annotation.Nullable public Integer getTimeoutSeconds() { return timeoutSeconds; } @@ -350,8 +362,9 @@ public void setTimeoutSeconds(Integer timeoutSeconds) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -377,7 +390,6 @@ public int hashCode() { return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, rules, sideEffects, timeoutSeconds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -401,11 +413,171 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("admissionReviewVersions"); + openapiFields.add("clientConfig"); + openapiFields.add("failurePolicy"); + openapiFields.add("matchConditions"); + openapiFields.add("matchPolicy"); + openapiFields.add("name"); + openapiFields.add("namespaceSelector"); + openapiFields.add("objectSelector"); + openapiFields.add("rules"); + openapiFields.add("sideEffects"); + openapiFields.add("timeoutSeconds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("admissionReviewVersions"); + openapiRequiredFields.add("clientConfig"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("sideEffects"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ValidatingWebhook + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ValidatingWebhook.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingWebhook is not found in the empty JSON string", V1ValidatingWebhook.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ValidatingWebhook.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingWebhook` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ValidatingWebhook.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("admissionReviewVersions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("admissionReviewVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `admissionReviewVersions` to be an array in the JSON string but got `%s`", jsonObj.get("admissionReviewVersions").toString())); + } + // validate the required field `clientConfig` + AdmissionregistrationV1WebhookClientConfig.validateJsonObject(jsonObj.getAsJsonObject("clientConfig")); + if ((jsonObj.get("failurePolicy") != null && !jsonObj.get("failurePolicy").isJsonNull()) && !jsonObj.get("failurePolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `failurePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("failurePolicy").toString())); + } + if (jsonObj.get("matchConditions") != null && !jsonObj.get("matchConditions").isJsonNull()) { + JsonArray jsonArraymatchConditions = jsonObj.getAsJsonArray("matchConditions"); + if (jsonArraymatchConditions != null) { + // ensure the json data is an array + if (!jsonObj.get("matchConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchConditions` to be an array in the JSON string but got `%s`", jsonObj.get("matchConditions").toString())); + } + + // validate the optional field `matchConditions` (array) + for (int i = 0; i < jsonArraymatchConditions.size(); i++) { + V1MatchCondition.validateJsonObject(jsonArraymatchConditions.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("matchPolicy") != null && !jsonObj.get("matchPolicy").isJsonNull()) && !jsonObj.get("matchPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `matchPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchPolicy").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `namespaceSelector` + if (jsonObj.get("namespaceSelector") != null && !jsonObj.get("namespaceSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("namespaceSelector")); + } + // validate the optional field `objectSelector` + if (jsonObj.get("objectSelector") != null && !jsonObj.get("objectSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("objectSelector")); + } + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + V1RuleWithOperations.validateJsonObject(jsonArrayrules.get(i).getAsJsonObject()); + }; + } + } + if (!jsonObj.get("sideEffects").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sideEffects` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sideEffects").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ValidatingWebhook.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ValidatingWebhook' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ValidatingWebhook.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ValidatingWebhook value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ValidatingWebhook read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ValidatingWebhook given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingWebhook + * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhook + */ + public static V1ValidatingWebhook fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ValidatingWebhook.class); + } + + /** + * Convert an instance of V1ValidatingWebhook to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java index 0323e1f37e..134728401a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ValidatingWebhook; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. */ @@ -47,8 +70,10 @@ public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.co public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) - private List webhooks = null; + private List webhooks; + public V1ValidatingWebhookConfiguration() { + } public V1ValidatingWebhookConfiguration apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ValidatingWebhookConfiguration apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -83,9 +106,7 @@ public V1ValidatingWebhookConfiguration kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -106,9 +127,7 @@ public V1ValidatingWebhookConfiguration metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -137,9 +156,7 @@ public V1ValidatingWebhookConfiguration addWebhooksItem(V1ValidatingWebhook webh * Webhooks is a list of webhooks and the affected resources and operations. * @return webhooks **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") - + @jakarta.annotation.Nullable public List getWebhooks() { return webhooks; } @@ -150,8 +167,9 @@ public void setWebhooks(List webhooks) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, webhooks); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("webhooks"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ValidatingWebhookConfiguration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ValidatingWebhookConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingWebhookConfiguration is not found in the empty JSON string", V1ValidatingWebhookConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ValidatingWebhookConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingWebhookConfiguration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if (jsonObj.get("webhooks") != null && !jsonObj.get("webhooks").isJsonNull()) { + JsonArray jsonArraywebhooks = jsonObj.getAsJsonArray("webhooks"); + if (jsonArraywebhooks != null) { + // ensure the json data is an array + if (!jsonObj.get("webhooks").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `webhooks` to be an array in the JSON string but got `%s`", jsonObj.get("webhooks").toString())); + } + + // validate the optional field `webhooks` (array) + for (int i = 0; i < jsonArraywebhooks.size(); i++) { + V1ValidatingWebhook.validateJsonObject(jsonArraywebhooks.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ValidatingWebhookConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ValidatingWebhookConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ValidatingWebhookConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ValidatingWebhookConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ValidatingWebhookConfiguration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ValidatingWebhookConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingWebhookConfiguration + * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhookConfiguration + */ + public static V1ValidatingWebhookConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ValidatingWebhookConfiguration.class); + } + + /** + * Convert an instance of V1ValidatingWebhookConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java index 072d5e29f1..27e1fd33c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ @@ -49,6 +72,8 @@ public class V1ValidatingWebhookConfigurationList implements io.kubernetes.clien @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1ValidatingWebhookConfigurationList() { + } public V1ValidatingWebhookConfigurationList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1ValidatingWebhookConfigurationList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1ValidatingWebhookConfigurationList items(List(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1ValidatingWebhookConfigurationList addItemsItem(V1ValidatingWebhookConf * List of ValidatingWebhookConfiguration. * @return items **/ - @ApiModelProperty(required = true, value = "List of ValidatingWebhookConfiguration.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1ValidatingWebhookConfigurationList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1ValidatingWebhookConfigurationList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ValidatingWebhookConfigurationList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ValidatingWebhookConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingWebhookConfigurationList is not found in the empty JSON string", V1ValidatingWebhookConfigurationList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ValidatingWebhookConfigurationList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingWebhookConfigurationList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ValidatingWebhookConfigurationList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ValidatingWebhookConfiguration.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ValidatingWebhookConfigurationList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ValidatingWebhookConfigurationList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ValidatingWebhookConfigurationList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ValidatingWebhookConfigurationList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ValidatingWebhookConfigurationList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ValidatingWebhookConfigurationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidatingWebhookConfigurationList + * @throws IOException if the JSON string is invalid with respect to V1ValidatingWebhookConfigurationList + */ + public static V1ValidatingWebhookConfigurationList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ValidatingWebhookConfigurationList.class); + } + + /** + * Convert an instance of V1ValidatingWebhookConfigurationList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java index e059d0a96b..3d5eccf442 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidationRule describes a validation rule written in the CEL expression language. */ @@ -49,6 +72,29 @@ public class V1ValidationRule { @SerializedName(SERIALIZED_NAME_RULE) private String rule; + public V1ValidationRule() { + } + + public V1ValidationRule fieldPath(String fieldPath) { + + this.fieldPath = fieldPath; + return this; + } + + /** + * 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$']` + * @return fieldPath + **/ + @jakarta.annotation.Nullable + public String getFieldPath() { + return fieldPath; + } + + + public void setFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + } + public V1ValidationRule fieldPath(String fieldPath) { @@ -83,9 +129,7 @@ public V1ValidationRule message(String message) { * 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\" * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -106,9 +150,7 @@ public V1ValidationRule messageExpression(String messageExpression) { * 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)+\")\" * @return messageExpression **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)+\")\"") - + @jakarta.annotation.Nullable public String getMessageExpression() { return messageExpression; } @@ -152,8 +194,7 @@ public V1ValidationRule rule(String rule) { * 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. * @return rule **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getRule() { return rule; } @@ -164,8 +205,9 @@ public void setRule(String rule) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +227,6 @@ public int hashCode() { return Objects.hash(fieldPath, message, messageExpression, reason, rule); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +244,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fieldPath"); + openapiFields.add("message"); + openapiFields.add("messageExpression"); + openapiFields.add("reason"); + openapiFields.add("rule"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("rule"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1ValidationRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1ValidationRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidationRule is not found in the empty JSON string", V1ValidationRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1ValidationRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidationRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ValidationRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fieldPath") != null && !jsonObj.get("fieldPath").isJsonNull()) && !jsonObj.get("fieldPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fieldPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldPath").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("messageExpression") != null && !jsonObj.get("messageExpression").isJsonNull()) && !jsonObj.get("messageExpression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `messageExpression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("messageExpression").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("rule").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `rule` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rule").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ValidationRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ValidationRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ValidationRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ValidationRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ValidationRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ValidationRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ValidationRule + * @throws IOException if the JSON string is invalid with respect to V1ValidationRule + */ + public static V1ValidationRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ValidationRule.class); + } + + /** + * Convert an instance of V1ValidationRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java index 4f7f7f9210..57a7bbc40c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java @@ -48,10 +48,33 @@ import io.kubernetes.client.openapi.models.V1SecretVolumeSource; import io.kubernetes.client.openapi.models.V1StorageOSVolumeSource; import io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Volume represents a named volume in a pod that may be accessed by any container in the pod. */ @@ -178,6 +201,8 @@ public class V1Volume { @SerializedName(SERIALIZED_NAME_VSPHERE_VOLUME) private V1VsphereVirtualDiskVolumeSource vsphereVolume; + public V1Volume() { + } public V1Volume awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { @@ -189,9 +214,7 @@ public V1Volume awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElast * Get awsElasticBlockStore * @return awsElasticBlockStore **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore; } @@ -212,9 +235,7 @@ public V1Volume azureDisk(V1AzureDiskVolumeSource azureDisk) { * Get azureDisk * @return azureDisk **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1AzureDiskVolumeSource getAzureDisk() { return azureDisk; } @@ -235,9 +256,7 @@ public V1Volume azureFile(V1AzureFileVolumeSource azureFile) { * Get azureFile * @return azureFile **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1AzureFileVolumeSource getAzureFile() { return azureFile; } @@ -258,9 +277,7 @@ public V1Volume cephfs(V1CephFSVolumeSource cephfs) { * Get cephfs * @return cephfs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CephFSVolumeSource getCephfs() { return cephfs; } @@ -281,9 +298,7 @@ public V1Volume cinder(V1CinderVolumeSource cinder) { * Get cinder * @return cinder **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CinderVolumeSource getCinder() { return cinder; } @@ -304,9 +319,7 @@ public V1Volume configMap(V1ConfigMapVolumeSource configMap) { * Get configMap * @return configMap **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ConfigMapVolumeSource getConfigMap() { return configMap; } @@ -327,9 +340,7 @@ public V1Volume csi(V1CSIVolumeSource csi) { * Get csi * @return csi **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1CSIVolumeSource getCsi() { return csi; } @@ -350,9 +361,7 @@ public V1Volume downwardAPI(V1DownwardAPIVolumeSource downwardAPI) { * Get downwardAPI * @return downwardAPI **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DownwardAPIVolumeSource getDownwardAPI() { return downwardAPI; } @@ -373,9 +382,7 @@ public V1Volume emptyDir(V1EmptyDirVolumeSource emptyDir) { * Get emptyDir * @return emptyDir **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1EmptyDirVolumeSource getEmptyDir() { return emptyDir; } @@ -396,9 +403,7 @@ public V1Volume ephemeral(V1EphemeralVolumeSource ephemeral) { * Get ephemeral * @return ephemeral **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1EphemeralVolumeSource getEphemeral() { return ephemeral; } @@ -419,9 +424,7 @@ public V1Volume fc(V1FCVolumeSource fc) { * Get fc * @return fc **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1FCVolumeSource getFc() { return fc; } @@ -442,9 +445,7 @@ public V1Volume flexVolume(V1FlexVolumeSource flexVolume) { * Get flexVolume * @return flexVolume **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1FlexVolumeSource getFlexVolume() { return flexVolume; } @@ -465,9 +466,7 @@ public V1Volume flocker(V1FlockerVolumeSource flocker) { * Get flocker * @return flocker **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1FlockerVolumeSource getFlocker() { return flocker; } @@ -488,9 +487,7 @@ public V1Volume gcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentD * Get gcePersistentDisk * @return gcePersistentDisk **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk; } @@ -511,9 +508,7 @@ public V1Volume gitRepo(V1GitRepoVolumeSource gitRepo) { * Get gitRepo * @return gitRepo **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1GitRepoVolumeSource getGitRepo() { return gitRepo; } @@ -534,9 +529,7 @@ public V1Volume glusterfs(V1GlusterfsVolumeSource glusterfs) { * Get glusterfs * @return glusterfs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1GlusterfsVolumeSource getGlusterfs() { return glusterfs; } @@ -557,9 +550,7 @@ public V1Volume hostPath(V1HostPathVolumeSource hostPath) { * Get hostPath * @return hostPath **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1HostPathVolumeSource getHostPath() { return hostPath; } @@ -580,9 +571,7 @@ public V1Volume iscsi(V1ISCSIVolumeSource iscsi) { * Get iscsi * @return iscsi **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ISCSIVolumeSource getIscsi() { return iscsi; } @@ -603,8 +592,7 @@ public V1Volume name(String name) { * 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 * @return name **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -625,9 +613,7 @@ public V1Volume nfs(V1NFSVolumeSource nfs) { * Get nfs * @return nfs **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NFSVolumeSource getNfs() { return nfs; } @@ -648,9 +634,7 @@ public V1Volume persistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persis * Get persistentVolumeClaim * @return persistentVolumeClaim **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() { return persistentVolumeClaim; } @@ -671,9 +655,7 @@ public V1Volume photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPe * Get photonPersistentDisk * @return photonPersistentDisk **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk; } @@ -694,9 +676,7 @@ public V1Volume portworxVolume(V1PortworxVolumeSource portworxVolume) { * Get portworxVolume * @return portworxVolume **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PortworxVolumeSource getPortworxVolume() { return portworxVolume; } @@ -717,9 +697,7 @@ public V1Volume projected(V1ProjectedVolumeSource projected) { * Get projected * @return projected **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ProjectedVolumeSource getProjected() { return projected; } @@ -740,9 +718,7 @@ public V1Volume quobyte(V1QuobyteVolumeSource quobyte) { * Get quobyte * @return quobyte **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1QuobyteVolumeSource getQuobyte() { return quobyte; } @@ -763,9 +739,7 @@ public V1Volume rbd(V1RBDVolumeSource rbd) { * Get rbd * @return rbd **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1RBDVolumeSource getRbd() { return rbd; } @@ -786,9 +760,7 @@ public V1Volume scaleIO(V1ScaleIOVolumeSource scaleIO) { * Get scaleIO * @return scaleIO **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ScaleIOVolumeSource getScaleIO() { return scaleIO; } @@ -809,9 +781,7 @@ public V1Volume secret(V1SecretVolumeSource secret) { * Get secret * @return secret **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretVolumeSource getSecret() { return secret; } @@ -832,9 +802,7 @@ public V1Volume storageos(V1StorageOSVolumeSource storageos) { * Get storageos * @return storageos **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1StorageOSVolumeSource getStorageos() { return storageos; } @@ -855,9 +823,7 @@ public V1Volume vsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { * Get vsphereVolume * @return vsphereVolume **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume; } @@ -868,8 +834,9 @@ public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -914,7 +881,6 @@ public int hashCode() { return Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -957,11 +923,250 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("awsElasticBlockStore"); + openapiFields.add("azureDisk"); + openapiFields.add("azureFile"); + openapiFields.add("cephfs"); + openapiFields.add("cinder"); + openapiFields.add("configMap"); + openapiFields.add("csi"); + openapiFields.add("downwardAPI"); + openapiFields.add("emptyDir"); + openapiFields.add("ephemeral"); + openapiFields.add("fc"); + openapiFields.add("flexVolume"); + openapiFields.add("flocker"); + openapiFields.add("gcePersistentDisk"); + openapiFields.add("gitRepo"); + openapiFields.add("glusterfs"); + openapiFields.add("hostPath"); + openapiFields.add("iscsi"); + openapiFields.add("name"); + openapiFields.add("nfs"); + openapiFields.add("persistentVolumeClaim"); + openapiFields.add("photonPersistentDisk"); + openapiFields.add("portworxVolume"); + openapiFields.add("projected"); + openapiFields.add("quobyte"); + openapiFields.add("rbd"); + openapiFields.add("scaleIO"); + openapiFields.add("secret"); + openapiFields.add("storageos"); + openapiFields.add("vsphereVolume"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1Volume + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1Volume.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Volume is not found in the empty JSON string", V1Volume.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1Volume.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Volume` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Volume.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `awsElasticBlockStore` + if (jsonObj.get("awsElasticBlockStore") != null && !jsonObj.get("awsElasticBlockStore").isJsonNull()) { + V1AWSElasticBlockStoreVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("awsElasticBlockStore")); + } + // validate the optional field `azureDisk` + if (jsonObj.get("azureDisk") != null && !jsonObj.get("azureDisk").isJsonNull()) { + V1AzureDiskVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("azureDisk")); + } + // validate the optional field `azureFile` + if (jsonObj.get("azureFile") != null && !jsonObj.get("azureFile").isJsonNull()) { + V1AzureFileVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("azureFile")); + } + // validate the optional field `cephfs` + if (jsonObj.get("cephfs") != null && !jsonObj.get("cephfs").isJsonNull()) { + V1CephFSVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("cephfs")); + } + // validate the optional field `cinder` + if (jsonObj.get("cinder") != null && !jsonObj.get("cinder").isJsonNull()) { + V1CinderVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("cinder")); + } + // validate the optional field `configMap` + if (jsonObj.get("configMap") != null && !jsonObj.get("configMap").isJsonNull()) { + V1ConfigMapVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("configMap")); + } + // validate the optional field `csi` + if (jsonObj.get("csi") != null && !jsonObj.get("csi").isJsonNull()) { + V1CSIVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("csi")); + } + // validate the optional field `downwardAPI` + if (jsonObj.get("downwardAPI") != null && !jsonObj.get("downwardAPI").isJsonNull()) { + V1DownwardAPIVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("downwardAPI")); + } + // validate the optional field `emptyDir` + if (jsonObj.get("emptyDir") != null && !jsonObj.get("emptyDir").isJsonNull()) { + V1EmptyDirVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("emptyDir")); + } + // validate the optional field `ephemeral` + if (jsonObj.get("ephemeral") != null && !jsonObj.get("ephemeral").isJsonNull()) { + V1EphemeralVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("ephemeral")); + } + // validate the optional field `fc` + if (jsonObj.get("fc") != null && !jsonObj.get("fc").isJsonNull()) { + V1FCVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("fc")); + } + // validate the optional field `flexVolume` + if (jsonObj.get("flexVolume") != null && !jsonObj.get("flexVolume").isJsonNull()) { + V1FlexVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("flexVolume")); + } + // validate the optional field `flocker` + if (jsonObj.get("flocker") != null && !jsonObj.get("flocker").isJsonNull()) { + V1FlockerVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("flocker")); + } + // validate the optional field `gcePersistentDisk` + if (jsonObj.get("gcePersistentDisk") != null && !jsonObj.get("gcePersistentDisk").isJsonNull()) { + V1GCEPersistentDiskVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("gcePersistentDisk")); + } + // validate the optional field `gitRepo` + if (jsonObj.get("gitRepo") != null && !jsonObj.get("gitRepo").isJsonNull()) { + V1GitRepoVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("gitRepo")); + } + // validate the optional field `glusterfs` + if (jsonObj.get("glusterfs") != null && !jsonObj.get("glusterfs").isJsonNull()) { + V1GlusterfsVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("glusterfs")); + } + // validate the optional field `hostPath` + if (jsonObj.get("hostPath") != null && !jsonObj.get("hostPath").isJsonNull()) { + V1HostPathVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("hostPath")); + } + // validate the optional field `iscsi` + if (jsonObj.get("iscsi") != null && !jsonObj.get("iscsi").isJsonNull()) { + V1ISCSIVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("iscsi")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `nfs` + if (jsonObj.get("nfs") != null && !jsonObj.get("nfs").isJsonNull()) { + V1NFSVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("nfs")); + } + // validate the optional field `persistentVolumeClaim` + if (jsonObj.get("persistentVolumeClaim") != null && !jsonObj.get("persistentVolumeClaim").isJsonNull()) { + V1PersistentVolumeClaimVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("persistentVolumeClaim")); + } + // validate the optional field `photonPersistentDisk` + if (jsonObj.get("photonPersistentDisk") != null && !jsonObj.get("photonPersistentDisk").isJsonNull()) { + V1PhotonPersistentDiskVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("photonPersistentDisk")); + } + // validate the optional field `portworxVolume` + if (jsonObj.get("portworxVolume") != null && !jsonObj.get("portworxVolume").isJsonNull()) { + V1PortworxVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("portworxVolume")); + } + // validate the optional field `projected` + if (jsonObj.get("projected") != null && !jsonObj.get("projected").isJsonNull()) { + V1ProjectedVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("projected")); + } + // validate the optional field `quobyte` + if (jsonObj.get("quobyte") != null && !jsonObj.get("quobyte").isJsonNull()) { + V1QuobyteVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("quobyte")); + } + // validate the optional field `rbd` + if (jsonObj.get("rbd") != null && !jsonObj.get("rbd").isJsonNull()) { + V1RBDVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("rbd")); + } + // validate the optional field `scaleIO` + if (jsonObj.get("scaleIO") != null && !jsonObj.get("scaleIO").isJsonNull()) { + V1ScaleIOVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("scaleIO")); + } + // validate the optional field `secret` + if (jsonObj.get("secret") != null && !jsonObj.get("secret").isJsonNull()) { + V1SecretVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("secret")); + } + // validate the optional field `storageos` + if (jsonObj.get("storageos") != null && !jsonObj.get("storageos").isJsonNull()) { + V1StorageOSVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("storageos")); + } + // validate the optional field `vsphereVolume` + if (jsonObj.get("vsphereVolume") != null && !jsonObj.get("vsphereVolume").isJsonNull()) { + V1VsphereVirtualDiskVolumeSource.validateJsonObject(jsonObj.getAsJsonObject("vsphereVolume")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Volume.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Volume' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Volume.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Volume value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Volume read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Volume given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Volume + * @throws IOException if the JSON string is invalid with respect to V1Volume + */ + public static V1Volume fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Volume.class); + } + + /** + * Convert an instance of V1Volume to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java index 3a7d08c47f..897e7c2f8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec; import io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ @@ -52,6 +75,8 @@ public class V1VolumeAttachment implements io.kubernetes.client.common.Kubernete @SerializedName(SERIALIZED_NAME_STATUS) private V1VolumeAttachmentStatus status; + public V1VolumeAttachment() { + } public V1VolumeAttachment apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1VolumeAttachment apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1VolumeAttachment kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1VolumeAttachment metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1VolumeAttachment spec(V1VolumeAttachmentSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1VolumeAttachmentSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1VolumeAttachment status(V1VolumeAttachmentStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1VolumeAttachmentStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1VolumeAttachmentStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeAttachment + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeAttachment.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttachment is not found in the empty JSON string", V1VolumeAttachment.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeAttachment.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttachment` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeAttachment.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1VolumeAttachmentSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1VolumeAttachmentStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeAttachment.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeAttachment' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeAttachment.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeAttachment value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeAttachment read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeAttachment given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachment + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachment + */ + public static V1VolumeAttachment fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeAttachment.class); + } + + /** + * Convert an instance of V1VolumeAttachment to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java index eb3d89f31f..3a10c61302 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1VolumeAttachment; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @@ -49,6 +72,8 @@ public class V1VolumeAttachmentList implements io.kubernetes.client.common.Kuber @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1VolumeAttachmentList() { + } public V1VolumeAttachmentList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1VolumeAttachmentList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1VolumeAttachmentList items(List items) { } public V1VolumeAttachmentList addItemsItem(V1VolumeAttachment itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1VolumeAttachmentList addItemsItem(V1VolumeAttachment itemsItem) { * items is the list of VolumeAttachments * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of VolumeAttachments") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1VolumeAttachmentList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1VolumeAttachmentList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeAttachmentList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeAttachmentList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttachmentList is not found in the empty JSON string", V1VolumeAttachmentList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeAttachmentList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttachmentList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeAttachmentList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1VolumeAttachment.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeAttachmentList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeAttachmentList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeAttachmentList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeAttachmentList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeAttachmentList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeAttachmentList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachmentList + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentList + */ + public static V1VolumeAttachmentList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeAttachmentList.class); + } + + /** + * Convert an instance of V1VolumeAttachmentList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java index 98b7dfd021..7af338ed35 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PersistentVolumeSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,6 +61,8 @@ public class V1VolumeAttachmentSource { @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_NAME) private String persistentVolumeName; + public V1VolumeAttachmentSource() { + } public V1VolumeAttachmentSource inlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { @@ -49,9 +74,7 @@ public V1VolumeAttachmentSource inlineVolumeSpec(V1PersistentVolumeSpec inlineVo * Get inlineVolumeSpec * @return inlineVolumeSpec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1PersistentVolumeSpec getInlineVolumeSpec() { return inlineVolumeSpec; } @@ -72,9 +95,7 @@ public V1VolumeAttachmentSource persistentVolumeName(String persistentVolumeName * persistentVolumeName represents the name of the persistent volume to attach. * @return persistentVolumeName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "persistentVolumeName represents the name of the persistent volume to attach.") - + @jakarta.annotation.Nullable public String getPersistentVolumeName() { return persistentVolumeName; } @@ -85,8 +106,9 @@ public void setPersistentVolumeName(String persistentVolumeName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(inlineVolumeSpec, persistentVolumeName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("inlineVolumeSpec"); + openapiFields.add("persistentVolumeName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeAttachmentSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeAttachmentSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttachmentSource is not found in the empty JSON string", V1VolumeAttachmentSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeAttachmentSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttachmentSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `inlineVolumeSpec` + if (jsonObj.get("inlineVolumeSpec") != null && !jsonObj.get("inlineVolumeSpec").isJsonNull()) { + V1PersistentVolumeSpec.validateJsonObject(jsonObj.getAsJsonObject("inlineVolumeSpec")); + } + if ((jsonObj.get("persistentVolumeName") != null && !jsonObj.get("persistentVolumeName").isJsonNull()) && !jsonObj.get("persistentVolumeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `persistentVolumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("persistentVolumeName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeAttachmentSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeAttachmentSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeAttachmentSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeAttachmentSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeAttachmentSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeAttachmentSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachmentSource + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentSource + */ + public static V1VolumeAttachmentSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeAttachmentSource.class); + } + + /** + * Convert an instance of V1VolumeAttachmentSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java index 31a4da0554..d86ad277ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1VolumeAttachmentSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @@ -42,6 +65,8 @@ public class V1VolumeAttachmentSpec { @SerializedName(SERIALIZED_NAME_SOURCE) private V1VolumeAttachmentSource source; + public V1VolumeAttachmentSpec() { + } public V1VolumeAttachmentSpec attacher(String attacher) { @@ -53,8 +78,7 @@ public V1VolumeAttachmentSpec attacher(String attacher) { * attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). * @return attacher **/ - @ApiModelProperty(required = true, value = "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().") - + @jakarta.annotation.Nonnull public String getAttacher() { return attacher; } @@ -75,8 +99,7 @@ public V1VolumeAttachmentSpec nodeName(String nodeName) { * nodeName represents the node that the volume should be attached to. * @return nodeName **/ - @ApiModelProperty(required = true, value = "nodeName represents the node that the volume should be attached to.") - + @jakarta.annotation.Nonnull public String getNodeName() { return nodeName; } @@ -97,8 +120,7 @@ public V1VolumeAttachmentSpec source(V1VolumeAttachmentSource source) { * Get source * @return source **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1VolumeAttachmentSource getSource() { return source; } @@ -109,8 +131,9 @@ public void setSource(V1VolumeAttachmentSource source) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +151,6 @@ public int hashCode() { return Objects.hash(attacher, nodeName, source); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +166,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attacher"); + openapiFields.add("nodeName"); + openapiFields.add("source"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("attacher"); + openapiRequiredFields.add("nodeName"); + openapiRequiredFields.add("source"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeAttachmentSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeAttachmentSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttachmentSpec is not found in the empty JSON string", V1VolumeAttachmentSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeAttachmentSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttachmentSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeAttachmentSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("attacher").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `attacher` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attacher").toString())); + } + if (!jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + // validate the required field `source` + V1VolumeAttachmentSource.validateJsonObject(jsonObj.getAsJsonObject("source")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeAttachmentSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeAttachmentSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeAttachmentSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeAttachmentSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeAttachmentSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeAttachmentSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachmentSpec + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentSpec + */ + public static V1VolumeAttachmentSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeAttachmentSpec.class); + } + + /** + * Convert an instance of V1VolumeAttachmentSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java index 71d7343f9d..494cd114e7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java @@ -20,12 +20,34 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1VolumeError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; /** * VolumeAttachmentStatus is the status of a VolumeAttachment request. @@ -43,12 +65,14 @@ public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACHMENT_METADATA = "attachmentMetadata"; @SerializedName(SERIALIZED_NAME_ATTACHMENT_METADATA) - private Map attachmentMetadata = null; + private Map attachmentMetadata = new HashMap<>(); public static final String SERIALIZED_NAME_DETACH_ERROR = "detachError"; @SerializedName(SERIALIZED_NAME_DETACH_ERROR) private V1VolumeError detachError; + public V1VolumeAttachmentStatus() { + } public V1VolumeAttachmentStatus attachError(V1VolumeError attachError) { @@ -60,9 +84,7 @@ public V1VolumeAttachmentStatus attachError(V1VolumeError attachError) { * Get attachError * @return attachError **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1VolumeError getAttachError() { return attachError; } @@ -83,8 +105,7 @@ public V1VolumeAttachmentStatus attached(Boolean attached) { * 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. * @return attached **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public Boolean getAttached() { return attached; } @@ -113,9 +134,7 @@ public V1VolumeAttachmentStatus putAttachmentMetadataItem(String key, String att * 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. * @return attachmentMetadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Map getAttachmentMetadata() { return attachmentMetadata; } @@ -136,9 +155,7 @@ public V1VolumeAttachmentStatus detachError(V1VolumeError detachError) { * Get detachError * @return detachError **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1VolumeError getDetachError() { return detachError; } @@ -149,8 +166,9 @@ public void setDetachError(V1VolumeError detachError) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -169,7 +187,6 @@ public int hashCode() { return Objects.hash(attachError, attached, attachmentMetadata, detachError); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -186,11 +203,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attachError"); + openapiFields.add("attached"); + openapiFields.add("attachmentMetadata"); + openapiFields.add("detachError"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("attached"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeAttachmentStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeAttachmentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttachmentStatus is not found in the empty JSON string", V1VolumeAttachmentStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeAttachmentStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttachmentStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeAttachmentStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `attachError` + if (jsonObj.get("attachError") != null && !jsonObj.get("attachError").isJsonNull()) { + V1VolumeError.validateJsonObject(jsonObj.getAsJsonObject("attachError")); + } + // validate the optional field `detachError` + if (jsonObj.get("detachError") != null && !jsonObj.get("detachError").isJsonNull()) { + V1VolumeError.validateJsonObject(jsonObj.getAsJsonObject("detachError")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeAttachmentStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeAttachmentStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeAttachmentStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeAttachmentStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeAttachmentStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeAttachmentStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttachmentStatus + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttachmentStatus + */ + public static V1VolumeAttachmentStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeAttachmentStatus.class); + } + + /** + * Convert an instance of V1VolumeAttachmentStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java index 54df2108c7..6cc7ea66a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * volumeDevice describes a mapping of a raw block device within a container. */ @@ -37,6 +60,8 @@ public class V1VolumeDevice { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1VolumeDevice() { + } public V1VolumeDevice devicePath(String devicePath) { @@ -48,8 +73,7 @@ public V1VolumeDevice devicePath(String devicePath) { * devicePath is the path inside of the container that the device will be mapped to. * @return devicePath **/ - @ApiModelProperty(required = true, value = "devicePath is the path inside of the container that the device will be mapped to.") - + @jakarta.annotation.Nonnull public String getDevicePath() { return devicePath; } @@ -70,8 +94,7 @@ public V1VolumeDevice name(String name) { * name must match the name of a persistentVolumeClaim in the pod * @return name **/ - @ApiModelProperty(required = true, value = "name must match the name of a persistentVolumeClaim in the pod") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -82,8 +105,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(devicePath, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("devicePath"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("devicePath"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeDevice + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeDevice is not found in the empty JSON string", V1VolumeDevice.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeDevice.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeDevice` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeDevice.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("devicePath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `devicePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("devicePath").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeDevice.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeDevice' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeDevice.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeDevice value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeDevice read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeDevice given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeDevice + * @throws IOException if the JSON string is invalid with respect to V1VolumeDevice + */ + public static V1VolumeDevice fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeDevice.class); + } + + /** + * Convert an instance of V1VolumeDevice to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java index 03dc8c7527..468e786767 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * VolumeError captures an error encountered during a volume operation. */ @@ -38,6 +61,8 @@ public class V1VolumeError { @SerializedName(SERIALIZED_NAME_TIME) private OffsetDateTime time; + public V1VolumeError() { + } public V1VolumeError message(String message) { @@ -49,9 +74,7 @@ public V1VolumeError message(String message) { * message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -72,9 +95,7 @@ public V1VolumeError time(OffsetDateTime time) { * time represents the time the error was encountered. * @return time **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "time represents the time the error was encountered.") - + @jakarta.annotation.Nullable public OffsetDateTime getTime() { return time; } @@ -85,8 +106,9 @@ public void setTime(OffsetDateTime time) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(message, time); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("message"); + openapiFields.add("time"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeError + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeError.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeError is not found in the empty JSON string", V1VolumeError.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeError.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeError` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeError' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeError value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeError read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeError given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeError + * @throws IOException if the JSON string is invalid with respect to V1VolumeError + */ + public static V1VolumeError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeError.class); + } + + /** + * Convert an instance of V1VolumeError to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java index 035cc0df0b..d231ec4e4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * VolumeMount describes a mounting of a Volume within a container. */ @@ -53,6 +76,8 @@ public class V1VolumeMount { @SerializedName(SERIALIZED_NAME_SUB_PATH_EXPR) private String subPathExpr; + public V1VolumeMount() { + } public V1VolumeMount mountPath(String mountPath) { @@ -64,8 +89,7 @@ public V1VolumeMount mountPath(String mountPath) { * Path within the container at which the volume should be mounted. Must not contain ':'. * @return mountPath **/ - @ApiModelProperty(required = true, value = "Path within the container at which the volume should be mounted. Must not contain ':'.") - + @jakarta.annotation.Nonnull public String getMountPath() { return mountPath; } @@ -86,9 +110,7 @@ public V1VolumeMount mountPropagation(String mountPropagation) { * 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. * @return mountPropagation **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getMountPropagation() { return mountPropagation; } @@ -109,8 +131,7 @@ public V1VolumeMount name(String name) { * This must match the Name of a Volume. * @return name **/ - @ApiModelProperty(required = true, value = "This must match the Name of a Volume.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -131,9 +152,7 @@ public V1VolumeMount readOnly(Boolean readOnly) { * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. * @return readOnly **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.") - + @jakarta.annotation.Nullable public Boolean getReadOnly() { return readOnly; } @@ -154,9 +173,7 @@ public V1VolumeMount subPath(String subPath) { * Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). * @return subPath **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).") - + @jakarta.annotation.Nullable public String getSubPath() { return subPath; } @@ -177,9 +194,7 @@ public V1VolumeMount subPathExpr(String subPathExpr) { * 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. * @return subPathExpr **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getSubPathExpr() { return subPathExpr; } @@ -190,8 +205,9 @@ public void setSubPathExpr(String subPathExpr) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -212,7 +228,6 @@ public int hashCode() { return Objects.hash(mountPath, mountPropagation, name, readOnly, subPath, subPathExpr); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -231,11 +246,123 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("mountPath"); + openapiFields.add("mountPropagation"); + openapiFields.add("name"); + openapiFields.add("readOnly"); + openapiFields.add("subPath"); + openapiFields.add("subPathExpr"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("mountPath"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeMount + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeMount.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeMount is not found in the empty JSON string", V1VolumeMount.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeMount.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeMount` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeMount.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("mountPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `mountPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mountPath").toString())); + } + if ((jsonObj.get("mountPropagation") != null && !jsonObj.get("mountPropagation").isJsonNull()) && !jsonObj.get("mountPropagation").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `mountPropagation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mountPropagation").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("subPath") != null && !jsonObj.get("subPath").isJsonNull()) && !jsonObj.get("subPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subPath").toString())); + } + if ((jsonObj.get("subPathExpr") != null && !jsonObj.get("subPathExpr").isJsonNull()) && !jsonObj.get("subPathExpr").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subPathExpr` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subPathExpr").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeMount.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeMount' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeMount.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeMount value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeMount read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeMount given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeMount + * @throws IOException if the JSON string is invalid with respect to V1VolumeMount + */ + public static V1VolumeMount fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeMount.class); + } + + /** + * Convert an instance of V1VolumeMount to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java index 2bfc38e728..55a1e24771 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. */ @@ -34,6 +57,8 @@ public class V1VolumeNodeAffinity { @SerializedName(SERIALIZED_NAME_REQUIRED) private V1NodeSelector required; + public V1VolumeNodeAffinity() { + } public V1VolumeNodeAffinity required(V1NodeSelector required) { @@ -45,9 +70,7 @@ public V1VolumeNodeAffinity required(V1NodeSelector required) { * Get required * @return required **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeSelector getRequired() { return required; } @@ -58,8 +81,9 @@ public void setRequired(V1NodeSelector required) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(required); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("required"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeNodeAffinity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeNodeAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeNodeAffinity is not found in the empty JSON string", V1VolumeNodeAffinity.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeNodeAffinity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeNodeAffinity` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `required` + if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { + V1NodeSelector.validateJsonObject(jsonObj.getAsJsonObject("required")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeNodeAffinity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeNodeAffinity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeNodeAffinity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeNodeAffinity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeNodeAffinity read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeNodeAffinity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeNodeAffinity + * @throws IOException if the JSON string is invalid with respect to V1VolumeNodeAffinity + */ + public static V1VolumeNodeAffinity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeNodeAffinity.class); + } + + /** + * Convert an instance of V1VolumeNodeAffinity to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java index cb24dd798f..9bf377f4ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * VolumeNodeResources is a set of resource limits for scheduling of volumes. */ @@ -33,6 +56,8 @@ public class V1VolumeNodeResources { @SerializedName(SERIALIZED_NAME_COUNT) private Integer count; + public V1VolumeNodeResources() { + } public V1VolumeNodeResources count(Integer count) { @@ -44,9 +69,7 @@ public V1VolumeNodeResources count(Integer count) { * 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. * @return count **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getCount() { return count; } @@ -57,8 +80,9 @@ public void setCount(Integer count) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -74,7 +98,6 @@ public int hashCode() { return Objects.hash(count); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -88,11 +111,94 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("count"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeNodeResources + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeNodeResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeNodeResources is not found in the empty JSON string", V1VolumeNodeResources.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeNodeResources.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeNodeResources` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeNodeResources.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeNodeResources' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeNodeResources.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeNodeResources value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeNodeResources read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeNodeResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeNodeResources + * @throws IOException if the JSON string is invalid with respect to V1VolumeNodeResources + */ + public static V1VolumeNodeResources fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeNodeResources.class); + } + + /** + * Convert an instance of V1VolumeNodeResources to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java index 1e2162f710..5f96cc16be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java @@ -23,10 +23,33 @@ import io.kubernetes.client.openapi.models.V1DownwardAPIProjection; import io.kubernetes.client.openapi.models.V1SecretProjection; import io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Projection that may be projected along with other supported volume types */ @@ -49,6 +72,8 @@ public class V1VolumeProjection { @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_TOKEN) private V1ServiceAccountTokenProjection serviceAccountToken; + public V1VolumeProjection() { + } public V1VolumeProjection configMap(V1ConfigMapProjection configMap) { @@ -60,9 +85,7 @@ public V1VolumeProjection configMap(V1ConfigMapProjection configMap) { * Get configMap * @return configMap **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ConfigMapProjection getConfigMap() { return configMap; } @@ -83,9 +106,7 @@ public V1VolumeProjection downwardAPI(V1DownwardAPIProjection downwardAPI) { * Get downwardAPI * @return downwardAPI **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1DownwardAPIProjection getDownwardAPI() { return downwardAPI; } @@ -106,9 +127,7 @@ public V1VolumeProjection secret(V1SecretProjection secret) { * Get secret * @return secret **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1SecretProjection getSecret() { return secret; } @@ -129,9 +148,7 @@ public V1VolumeProjection serviceAccountToken(V1ServiceAccountTokenProjection se * Get serviceAccountToken * @return serviceAccountToken **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ServiceAccountTokenProjection getServiceAccountToken() { return serviceAccountToken; } @@ -142,8 +159,9 @@ public void setServiceAccountToken(V1ServiceAccountTokenProjection serviceAccoun } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -162,7 +180,6 @@ public int hashCode() { return Objects.hash(configMap, downwardAPI, secret, serviceAccountToken); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -179,11 +196,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("configMap"); + openapiFields.add("downwardAPI"); + openapiFields.add("secret"); + openapiFields.add("serviceAccountToken"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VolumeProjection + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VolumeProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeProjection is not found in the empty JSON string", V1VolumeProjection.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VolumeProjection.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeProjection` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `configMap` + if (jsonObj.get("configMap") != null && !jsonObj.get("configMap").isJsonNull()) { + V1ConfigMapProjection.validateJsonObject(jsonObj.getAsJsonObject("configMap")); + } + // validate the optional field `downwardAPI` + if (jsonObj.get("downwardAPI") != null && !jsonObj.get("downwardAPI").isJsonNull()) { + V1DownwardAPIProjection.validateJsonObject(jsonObj.getAsJsonObject("downwardAPI")); + } + // validate the optional field `secret` + if (jsonObj.get("secret") != null && !jsonObj.get("secret").isJsonNull()) { + V1SecretProjection.validateJsonObject(jsonObj.getAsJsonObject("secret")); + } + // validate the optional field `serviceAccountToken` + if (jsonObj.get("serviceAccountToken") != null && !jsonObj.get("serviceAccountToken").isJsonNull()) { + V1ServiceAccountTokenProjection.validateJsonObject(jsonObj.getAsJsonObject("serviceAccountToken")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeProjection.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeProjection' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeProjection.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeProjection value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeProjection read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeProjection + * @throws IOException if the JSON string is invalid with respect to V1VolumeProjection + */ + public static V1VolumeProjection fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeProjection.class); + } + + /** + * Convert an instance of V1VolumeProjection to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java index daaac3ea0c..2a284c70f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Represents a vSphere volume resource. */ @@ -45,6 +68,8 @@ public class V1VsphereVirtualDiskVolumeSource { @SerializedName(SERIALIZED_NAME_VOLUME_PATH) private String volumePath; + public V1VsphereVirtualDiskVolumeSource() { + } public V1VsphereVirtualDiskVolumeSource fsType(String fsType) { @@ -56,9 +81,7 @@ public V1VsphereVirtualDiskVolumeSource fsType(String fsType) { * fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getFsType() { return fsType; } @@ -79,9 +102,7 @@ public V1VsphereVirtualDiskVolumeSource storagePolicyID(String storagePolicyID) * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. * @return storagePolicyID **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.") - + @jakarta.annotation.Nullable public String getStoragePolicyID() { return storagePolicyID; } @@ -102,9 +123,7 @@ public V1VsphereVirtualDiskVolumeSource storagePolicyName(String storagePolicyNa * storagePolicyName is the storage Policy Based Management (SPBM) profile name. * @return storagePolicyName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "storagePolicyName is the storage Policy Based Management (SPBM) profile name.") - + @jakarta.annotation.Nullable public String getStoragePolicyName() { return storagePolicyName; } @@ -125,8 +144,7 @@ public V1VsphereVirtualDiskVolumeSource volumePath(String volumePath) { * volumePath is the path that identifies vSphere volume vmdk * @return volumePath **/ - @ApiModelProperty(required = true, value = "volumePath is the path that identifies vSphere volume vmdk") - + @jakarta.annotation.Nonnull public String getVolumePath() { return volumePath; } @@ -137,8 +155,9 @@ public void setVolumePath(String volumePath) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +176,6 @@ public int hashCode() { return Objects.hash(fsType, storagePolicyID, storagePolicyName, volumePath); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +192,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fsType"); + openapiFields.add("storagePolicyID"); + openapiFields.add("storagePolicyName"); + openapiFields.add("volumePath"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("volumePath"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1VsphereVirtualDiskVolumeSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1VsphereVirtualDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VsphereVirtualDiskVolumeSource is not found in the empty JSON string", V1VsphereVirtualDiskVolumeSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1VsphereVirtualDiskVolumeSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VsphereVirtualDiskVolumeSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VsphereVirtualDiskVolumeSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("fsType") != null && !jsonObj.get("fsType").isJsonNull()) && !jsonObj.get("fsType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fsType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsType").toString())); + } + if ((jsonObj.get("storagePolicyID") != null && !jsonObj.get("storagePolicyID").isJsonNull()) && !jsonObj.get("storagePolicyID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storagePolicyID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storagePolicyID").toString())); + } + if ((jsonObj.get("storagePolicyName") != null && !jsonObj.get("storagePolicyName").isJsonNull()) && !jsonObj.get("storagePolicyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storagePolicyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storagePolicyName").toString())); + } + if (!jsonObj.get("volumePath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumePath").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VsphereVirtualDiskVolumeSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VsphereVirtualDiskVolumeSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VsphereVirtualDiskVolumeSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VsphereVirtualDiskVolumeSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VsphereVirtualDiskVolumeSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VsphereVirtualDiskVolumeSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VsphereVirtualDiskVolumeSource + * @throws IOException if the JSON string is invalid with respect to V1VsphereVirtualDiskVolumeSource + */ + public static V1VsphereVirtualDiskVolumeSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VsphereVirtualDiskVolumeSource.class); + } + + /** + * Convert an instance of V1VsphereVirtualDiskVolumeSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java index 093254d4fd..62b37d01a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Event represents a single event to a watched resource. */ @@ -37,6 +60,8 @@ public class V1WatchEvent { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1WatchEvent() { + } public V1WatchEvent _object(Object _object) { @@ -48,8 +73,7 @@ public V1WatchEvent _object(Object _object) { * Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. * @return _object **/ - @ApiModelProperty(required = true, value = "Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.") - + @jakarta.annotation.Nonnull public Object getObject() { return _object; } @@ -70,8 +94,7 @@ public V1WatchEvent type(String type) { * Get type * @return type **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -82,8 +105,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(_object, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,107 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("object"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("object"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1WatchEvent + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1WatchEvent.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1WatchEvent is not found in the empty JSON string", V1WatchEvent.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1WatchEvent.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1WatchEvent` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1WatchEvent.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1WatchEvent.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1WatchEvent' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1WatchEvent.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1WatchEvent value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1WatchEvent read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1WatchEvent given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1WatchEvent + * @throws IOException if the JSON string is invalid with respect to V1WatchEvent + */ + public static V1WatchEvent fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1WatchEvent.class); + } + + /** + * Convert an instance of V1WatchEvent to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java index 78f0dad7ea..907cfda90c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * WebhookConversion describes how to call a conversion webhook */ @@ -40,6 +63,8 @@ public class V1WebhookConversion { @SerializedName(SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS) private List conversionReviewVersions = new ArrayList<>(); + public V1WebhookConversion() { + } public V1WebhookConversion clientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { @@ -51,9 +76,7 @@ public V1WebhookConversion clientConfig(ApiextensionsV1WebhookClientConfig clien * Get clientConfig * @return clientConfig **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public ApiextensionsV1WebhookClientConfig getClientConfig() { return clientConfig; } @@ -71,6 +94,9 @@ public V1WebhookConversion conversionReviewVersions(List conversionRevie } public V1WebhookConversion addConversionReviewVersionsItem(String conversionReviewVersionsItem) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList<>(); + } this.conversionReviewVersions.add(conversionReviewVersionsItem); return this; } @@ -79,8 +105,7 @@ public V1WebhookConversion addConversionReviewVersionsItem(String conversionRevi * 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. * @return conversionReviewVersions **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getConversionReviewVersions() { return conversionReviewVersions; } @@ -91,8 +116,9 @@ public void setConversionReviewVersions(List conversionReviewVersions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -109,7 +135,6 @@ public int hashCode() { return Objects.hash(clientConfig, conversionReviewVersions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -124,11 +149,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("clientConfig"); + openapiFields.add("conversionReviewVersions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("conversionReviewVersions"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1WebhookConversion + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1WebhookConversion.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1WebhookConversion is not found in the empty JSON string", V1WebhookConversion.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1WebhookConversion.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1WebhookConversion` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1WebhookConversion.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `clientConfig` + if (jsonObj.get("clientConfig") != null && !jsonObj.get("clientConfig").isJsonNull()) { + ApiextensionsV1WebhookClientConfig.validateJsonObject(jsonObj.getAsJsonObject("clientConfig")); + } + // ensure the required json array is present + if (jsonObj.get("conversionReviewVersions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("conversionReviewVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conversionReviewVersions` to be an array in the JSON string but got `%s`", jsonObj.get("conversionReviewVersions").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1WebhookConversion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1WebhookConversion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1WebhookConversion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1WebhookConversion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1WebhookConversion read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1WebhookConversion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1WebhookConversion + * @throws IOException if the JSON string is invalid with respect to V1WebhookConversion + */ + public static V1WebhookConversion fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1WebhookConversion.class); + } + + /** + * Convert an instance of V1WebhookConversion to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java index ea57333441..b87782e2a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodAffinityTerm; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) */ @@ -38,6 +61,8 @@ public class V1WeightedPodAffinityTerm { @SerializedName(SERIALIZED_NAME_WEIGHT) private Integer weight; + public V1WeightedPodAffinityTerm() { + } public V1WeightedPodAffinityTerm podAffinityTerm(V1PodAffinityTerm podAffinityTerm) { @@ -49,8 +74,7 @@ public V1WeightedPodAffinityTerm podAffinityTerm(V1PodAffinityTerm podAffinityTe * Get podAffinityTerm * @return podAffinityTerm **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1PodAffinityTerm getPodAffinityTerm() { return podAffinityTerm; } @@ -71,8 +95,7 @@ public V1WeightedPodAffinityTerm weight(Integer weight) { * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. * @return weight **/ - @ApiModelProperty(required = true, value = "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.") - + @jakarta.annotation.Nonnull public Integer getWeight() { return weight; } @@ -83,8 +106,9 @@ public void setWeight(Integer weight) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +125,6 @@ public int hashCode() { return Objects.hash(podAffinityTerm, weight); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +139,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("podAffinityTerm"); + openapiFields.add("weight"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("podAffinityTerm"); + openapiRequiredFields.add("weight"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1WeightedPodAffinityTerm + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1WeightedPodAffinityTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1WeightedPodAffinityTerm is not found in the empty JSON string", V1WeightedPodAffinityTerm.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1WeightedPodAffinityTerm.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1WeightedPodAffinityTerm` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1WeightedPodAffinityTerm.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `podAffinityTerm` + V1PodAffinityTerm.validateJsonObject(jsonObj.getAsJsonObject("podAffinityTerm")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1WeightedPodAffinityTerm.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1WeightedPodAffinityTerm' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1WeightedPodAffinityTerm.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1WeightedPodAffinityTerm value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1WeightedPodAffinityTerm read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1WeightedPodAffinityTerm given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1WeightedPodAffinityTerm + * @throws IOException if the JSON string is invalid with respect to V1WeightedPodAffinityTerm + */ + public static V1WeightedPodAffinityTerm fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1WeightedPodAffinityTerm.class); + } + + /** + * Convert an instance of V1WeightedPodAffinityTerm to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java index 66adaaac81..708f658022 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * WindowsSecurityContextOptions contain Windows-specific options and credentials. */ @@ -45,6 +68,8 @@ public class V1WindowsSecurityContextOptions { @SerializedName(SERIALIZED_NAME_RUN_AS_USER_NAME) private String runAsUserName; + public V1WindowsSecurityContextOptions() { + } public V1WindowsSecurityContextOptions gmsaCredentialSpec(String gmsaCredentialSpec) { @@ -56,9 +81,7 @@ public V1WindowsSecurityContextOptions gmsaCredentialSpec(String gmsaCredentialS * 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. * @return gmsaCredentialSpec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.") - + @jakarta.annotation.Nullable public String getGmsaCredentialSpec() { return gmsaCredentialSpec; } @@ -79,9 +102,7 @@ public V1WindowsSecurityContextOptions gmsaCredentialSpecName(String gmsaCredent * GMSACredentialSpecName is the name of the GMSA credential spec to use. * @return gmsaCredentialSpecName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "GMSACredentialSpecName is the name of the GMSA credential spec to use.") - + @jakarta.annotation.Nullable public String getGmsaCredentialSpecName() { return gmsaCredentialSpecName; } @@ -125,9 +146,7 @@ public V1WindowsSecurityContextOptions runAsUserName(String runAsUserName) { * The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. * @return runAsUserName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getRunAsUserName() { return runAsUserName; } @@ -138,8 +157,9 @@ public void setRunAsUserName(String runAsUserName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +178,6 @@ public int hashCode() { return Objects.hash(gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +194,106 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("gmsaCredentialSpec"); + openapiFields.add("gmsaCredentialSpecName"); + openapiFields.add("hostProcess"); + openapiFields.add("runAsUserName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1WindowsSecurityContextOptions + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1WindowsSecurityContextOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1WindowsSecurityContextOptions is not found in the empty JSON string", V1WindowsSecurityContextOptions.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1WindowsSecurityContextOptions.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1WindowsSecurityContextOptions` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("gmsaCredentialSpec") != null && !jsonObj.get("gmsaCredentialSpec").isJsonNull()) && !jsonObj.get("gmsaCredentialSpec").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `gmsaCredentialSpec` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gmsaCredentialSpec").toString())); + } + if ((jsonObj.get("gmsaCredentialSpecName") != null && !jsonObj.get("gmsaCredentialSpecName").isJsonNull()) && !jsonObj.get("gmsaCredentialSpecName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `gmsaCredentialSpecName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gmsaCredentialSpecName").toString())); + } + if ((jsonObj.get("runAsUserName") != null && !jsonObj.get("runAsUserName").isJsonNull()) && !jsonObj.get("runAsUserName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `runAsUserName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("runAsUserName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1WindowsSecurityContextOptions.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1WindowsSecurityContextOptions' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1WindowsSecurityContextOptions.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1WindowsSecurityContextOptions value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1WindowsSecurityContextOptions read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1WindowsSecurityContextOptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1WindowsSecurityContextOptions + * @throws IOException if the JSON string is invalid with respect to V1WindowsSecurityContextOptions + */ + public static V1WindowsSecurityContextOptions fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1WindowsSecurityContextOptions.class); + } + + /** + * Convert an instance of V1WindowsSecurityContextOptions to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java index a2671461bf..87397ac0d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * AuditAnnotation describes how to produce an audit annotation for an API request. */ @@ -37,6 +60,8 @@ public class V1alpha1AuditAnnotation { @SerializedName(SERIALIZED_NAME_VALUE_EXPRESSION) private String valueExpression; + public V1alpha1AuditAnnotation() { + } public V1alpha1AuditAnnotation key(String key) { @@ -48,8 +73,7 @@ public V1alpha1AuditAnnotation key(String key) { * 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. * @return key **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getKey() { return key; } @@ -70,8 +94,7 @@ public V1alpha1AuditAnnotation valueExpression(String valueExpression) { * valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. * @return valueExpression **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getValueExpression() { return valueExpression; } @@ -82,8 +105,9 @@ public void setValueExpression(String valueExpression) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(key, valueExpression); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("valueExpression"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + openapiRequiredFields.add("valueExpression"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1AuditAnnotation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1AuditAnnotation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1AuditAnnotation is not found in the empty JSON string", V1alpha1AuditAnnotation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1AuditAnnotation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1AuditAnnotation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1AuditAnnotation.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if (!jsonObj.get("valueExpression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `valueExpression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("valueExpression").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1AuditAnnotation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1AuditAnnotation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1AuditAnnotation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1AuditAnnotation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1AuditAnnotation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1AuditAnnotation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1AuditAnnotation + * @throws IOException if the JSON string is invalid with respect to V1alpha1AuditAnnotation + */ + public static V1alpha1AuditAnnotation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1AuditAnnotation.class); + } + + /** + * Convert an instance of V1alpha1AuditAnnotation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java index a9196cfa37..091161e5b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1ClusterCIDRSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. */ @@ -47,6 +70,8 @@ public class V1alpha1ClusterCIDR implements io.kubernetes.client.common.Kubernet @SerializedName(SERIALIZED_NAME_SPEC) private V1alpha1ClusterCIDRSpec spec; + public V1alpha1ClusterCIDR() { + } public V1alpha1ClusterCIDR apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1alpha1ClusterCIDR apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1alpha1ClusterCIDR kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1alpha1ClusterCIDR metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1alpha1ClusterCIDR spec(V1alpha1ClusterCIDRSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1ClusterCIDRSpec getSpec() { return spec; } @@ -140,8 +157,9 @@ public void setSpec(V1alpha1ClusterCIDRSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ClusterCIDR + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ClusterCIDR.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ClusterCIDR is not found in the empty JSON string", V1alpha1ClusterCIDR.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ClusterCIDR.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ClusterCIDR` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1alpha1ClusterCIDRSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ClusterCIDR.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ClusterCIDR' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterCIDR.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ClusterCIDR value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ClusterCIDR read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ClusterCIDR given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterCIDR + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterCIDR + */ + public static V1alpha1ClusterCIDR fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ClusterCIDR.class); + } + + /** + * Convert an instance of V1alpha1ClusterCIDR to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java index fe1cf3526d..666b1bde14 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterCIDRList contains a list of ClusterCIDR. */ @@ -49,6 +72,8 @@ public class V1alpha1ClusterCIDRList implements io.kubernetes.client.common.Kube @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha1ClusterCIDRList() { + } public V1alpha1ClusterCIDRList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha1ClusterCIDRList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1alpha1ClusterCIDRList items(List items) { } public V1alpha1ClusterCIDRList addItemsItem(V1alpha1ClusterCIDR itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1alpha1ClusterCIDRList addItemsItem(V1alpha1ClusterCIDR itemsItem) { * items is the list of ClusterCIDRs. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of ClusterCIDRs.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1alpha1ClusterCIDRList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1alpha1ClusterCIDRList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ClusterCIDRList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ClusterCIDRList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ClusterCIDRList is not found in the empty JSON string", V1alpha1ClusterCIDRList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ClusterCIDRList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ClusterCIDRList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1ClusterCIDRList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha1ClusterCIDR.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ClusterCIDRList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ClusterCIDRList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterCIDRList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ClusterCIDRList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ClusterCIDRList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ClusterCIDRList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterCIDRList + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterCIDRList + */ + public static V1alpha1ClusterCIDRList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ClusterCIDRList.class); + } + + /** + * Convert an instance of V1alpha1ClusterCIDRList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java index 8b06348da0..33a9928af3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterCIDRSpec defines the desired state of ClusterCIDR. */ @@ -46,6 +69,8 @@ public class V1alpha1ClusterCIDRSpec { @SerializedName(SERIALIZED_NAME_PER_NODE_HOST_BITS) private Integer perNodeHostBits; + public V1alpha1ClusterCIDRSpec() { + } public V1alpha1ClusterCIDRSpec ipv4(String ipv4) { @@ -57,9 +82,7 @@ public V1alpha1ClusterCIDRSpec ipv4(String ipv4) { * ipv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. * @return ipv4 **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ipv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of ipv4 and ipv6 must be specified. This field is immutable.") - + @jakarta.annotation.Nullable public String getIpv4() { return ipv4; } @@ -80,9 +103,7 @@ public V1alpha1ClusterCIDRSpec ipv6(String ipv6) { * ipv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. * @return ipv6 **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ipv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of ipv4 and ipv6 must be specified. This field is immutable.") - + @jakarta.annotation.Nullable public String getIpv6() { return ipv6; } @@ -103,9 +124,7 @@ public V1alpha1ClusterCIDRSpec nodeSelector(V1NodeSelector nodeSelector) { * Get nodeSelector * @return nodeSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeSelector getNodeSelector() { return nodeSelector; } @@ -126,8 +145,7 @@ public V1alpha1ClusterCIDRSpec perNodeHostBits(Integer perNodeHostBits) { * perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. * @return perNodeHostBits **/ - @ApiModelProperty(required = true, value = "perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable.") - + @jakarta.annotation.Nonnull public Integer getPerNodeHostBits() { return perNodeHostBits; } @@ -138,8 +156,9 @@ public void setPerNodeHostBits(Integer perNodeHostBits) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +177,6 @@ public int hashCode() { return Objects.hash(ipv4, ipv6, nodeSelector, perNodeHostBits); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +193,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ipv4"); + openapiFields.add("ipv6"); + openapiFields.add("nodeSelector"); + openapiFields.add("perNodeHostBits"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("perNodeHostBits"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ClusterCIDRSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ClusterCIDRSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ClusterCIDRSpec is not found in the empty JSON string", V1alpha1ClusterCIDRSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ClusterCIDRSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ClusterCIDRSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1ClusterCIDRSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("ipv4") != null && !jsonObj.get("ipv4").isJsonNull()) && !jsonObj.get("ipv4").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ipv4` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipv4").toString())); + } + if ((jsonObj.get("ipv6") != null && !jsonObj.get("ipv6").isJsonNull()) && !jsonObj.get("ipv6").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `ipv6` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipv6").toString())); + } + // validate the optional field `nodeSelector` + if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { + V1NodeSelector.validateJsonObject(jsonObj.getAsJsonObject("nodeSelector")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ClusterCIDRSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ClusterCIDRSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterCIDRSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ClusterCIDRSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ClusterCIDRSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ClusterCIDRSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterCIDRSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterCIDRSpec + */ + public static V1alpha1ClusterCIDRSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ClusterCIDRSpec.class); + } + + /** + * Convert an instance of V1alpha1ClusterCIDRSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java index 12e5b86239..99686f4ce6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -47,6 +70,8 @@ public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.K @SerializedName(SERIALIZED_NAME_SPEC) private V1alpha1ClusterTrustBundleSpec spec; + public V1alpha1ClusterTrustBundle() { + } public V1alpha1ClusterTrustBundle apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1alpha1ClusterTrustBundle apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1alpha1ClusterTrustBundle kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1alpha1ClusterTrustBundle metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,8 +146,7 @@ public V1alpha1ClusterTrustBundle spec(V1alpha1ClusterTrustBundleSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1alpha1ClusterTrustBundleSpec getSpec() { return spec; } @@ -139,8 +157,9 @@ public void setSpec(V1alpha1ClusterTrustBundleSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +194,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ClusterTrustBundle + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ClusterTrustBundle.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ClusterTrustBundle is not found in the empty JSON string", V1alpha1ClusterTrustBundle.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ClusterTrustBundle.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundle` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1ClusterTrustBundle.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1alpha1ClusterTrustBundleSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ClusterTrustBundle.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ClusterTrustBundle' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterTrustBundle.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ClusterTrustBundle value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ClusterTrustBundle read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ClusterTrustBundle given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterTrustBundle + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundle + */ + public static V1alpha1ClusterTrustBundle fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundle.class); + } + + /** + * Convert an instance of V1alpha1ClusterTrustBundle to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java index 6b8e39aae2..439244f1ed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @@ -49,6 +72,8 @@ public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.comm @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha1ClusterTrustBundleList() { + } public V1alpha1ClusterTrustBundleList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha1ClusterTrustBundleList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1alpha1ClusterTrustBundleList items(List ite } public V1alpha1ClusterTrustBundleList addItemsItem(V1alpha1ClusterTrustBundle itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1alpha1ClusterTrustBundleList addItemsItem(V1alpha1ClusterTrustBundle it * items is a collection of ClusterTrustBundle objects * @return items **/ - @ApiModelProperty(required = true, value = "items is a collection of ClusterTrustBundle objects") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1alpha1ClusterTrustBundleList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1alpha1ClusterTrustBundleList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ClusterTrustBundleList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ClusterTrustBundleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ClusterTrustBundleList is not found in the empty JSON string", V1alpha1ClusterTrustBundleList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ClusterTrustBundleList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundleList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1ClusterTrustBundleList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha1ClusterTrustBundle.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ClusterTrustBundleList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ClusterTrustBundleList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterTrustBundleList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ClusterTrustBundleList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ClusterTrustBundleList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ClusterTrustBundleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterTrustBundleList + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundleList + */ + public static V1alpha1ClusterTrustBundleList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundleList.class); + } + + /** + * Convert an instance of V1alpha1ClusterTrustBundleList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java index ac8752e622..d8acdff95d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ClusterTrustBundleSpec contains the signer and trust anchors. */ @@ -37,6 +60,8 @@ public class V1alpha1ClusterTrustBundleSpec { @SerializedName(SERIALIZED_NAME_TRUST_BUNDLE) private String trustBundle; + public V1alpha1ClusterTrustBundleSpec() { + } public V1alpha1ClusterTrustBundleSpec signerName(String signerName) { @@ -48,9 +73,7 @@ public V1alpha1ClusterTrustBundleSpec signerName(String signerName) { * 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=<the signer name> 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. * @return signerName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getSignerName() { return signerName; } @@ -71,8 +94,7 @@ public V1alpha1ClusterTrustBundleSpec trustBundle(String trustBundle) { * 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. * @return trustBundle **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getTrustBundle() { return trustBundle; } @@ -83,8 +105,9 @@ public void setTrustBundle(String trustBundle) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +124,6 @@ public int hashCode() { return Objects.hash(signerName, trustBundle); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +138,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("signerName"); + openapiFields.add("trustBundle"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("trustBundle"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ClusterTrustBundleSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ClusterTrustBundleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ClusterTrustBundleSpec is not found in the empty JSON string", V1alpha1ClusterTrustBundleSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ClusterTrustBundleSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundleSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1ClusterTrustBundleSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("signerName") != null && !jsonObj.get("signerName").isJsonNull()) && !jsonObj.get("signerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerName").toString())); + } + if (!jsonObj.get("trustBundle").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `trustBundle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trustBundle").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ClusterTrustBundleSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ClusterTrustBundleSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterTrustBundleSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ClusterTrustBundleSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ClusterTrustBundleSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ClusterTrustBundleSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ClusterTrustBundleSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1ClusterTrustBundleSpec + */ + public static V1alpha1ClusterTrustBundleSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundleSpec.class); + } + + /** + * Convert an instance of V1alpha1ClusterTrustBundleSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java index 5c2a3e042d..84cf3fa5f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ExpressionWarning is a warning information that targets a specific expression. */ @@ -37,6 +60,8 @@ public class V1alpha1ExpressionWarning { @SerializedName(SERIALIZED_NAME_WARNING) private String warning; + public V1alpha1ExpressionWarning() { + } public V1alpha1ExpressionWarning fieldRef(String fieldRef) { @@ -48,8 +73,7 @@ public V1alpha1ExpressionWarning fieldRef(String fieldRef) { * The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" * @return fieldRef **/ - @ApiModelProperty(required = true, value = "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") - + @jakarta.annotation.Nonnull public String getFieldRef() { return fieldRef; } @@ -70,8 +94,7 @@ public V1alpha1ExpressionWarning warning(String warning) { * The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. * @return warning **/ - @ApiModelProperty(required = true, value = "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") - + @jakarta.annotation.Nonnull public String getWarning() { return warning; } @@ -82,8 +105,9 @@ public void setWarning(String warning) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(fieldRef, warning); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fieldRef"); + openapiFields.add("warning"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("fieldRef"); + openapiRequiredFields.add("warning"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ExpressionWarning + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ExpressionWarning.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ExpressionWarning is not found in the empty JSON string", V1alpha1ExpressionWarning.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ExpressionWarning.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ExpressionWarning` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1ExpressionWarning.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("fieldRef").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `fieldRef` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldRef").toString())); + } + if (!jsonObj.get("warning").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `warning` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warning").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ExpressionWarning.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ExpressionWarning' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ExpressionWarning.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ExpressionWarning value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ExpressionWarning read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ExpressionWarning given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ExpressionWarning + * @throws IOException if the JSON string is invalid with respect to V1alpha1ExpressionWarning + */ + public static V1alpha1ExpressionWarning fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ExpressionWarning.class); + } + + /** + * Convert an instance of V1alpha1ExpressionWarning to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java index ebcb3653b0..468aef1bd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1IPAddressSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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 */ @@ -47,6 +70,8 @@ public class V1alpha1IPAddress implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_SPEC) private V1alpha1IPAddressSpec spec; + public V1alpha1IPAddress() { + } public V1alpha1IPAddress apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1alpha1IPAddress apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1alpha1IPAddress kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1alpha1IPAddress metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1alpha1IPAddress spec(V1alpha1IPAddressSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1IPAddressSpec getSpec() { return spec; } @@ -140,8 +157,9 @@ public void setSpec(V1alpha1IPAddressSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1IPAddress + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1IPAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1IPAddress is not found in the empty JSON string", V1alpha1IPAddress.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1IPAddress.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1IPAddress` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1alpha1IPAddressSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1IPAddress.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1IPAddress' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1IPAddress.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1IPAddress value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1IPAddress read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1IPAddress given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1IPAddress + * @throws IOException if the JSON string is invalid with respect to V1alpha1IPAddress + */ + public static V1alpha1IPAddress fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1IPAddress.class); + } + + /** + * Convert an instance of V1alpha1IPAddress to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java index ae90623a60..57b2a514bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1IPAddress; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IPAddressList contains a list of IPAddress. */ @@ -49,6 +72,8 @@ public class V1alpha1IPAddressList implements io.kubernetes.client.common.Kubern @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha1IPAddressList() { + } public V1alpha1IPAddressList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha1IPAddressList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1alpha1IPAddressList items(List items) { } public V1alpha1IPAddressList addItemsItem(V1alpha1IPAddress itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1alpha1IPAddressList addItemsItem(V1alpha1IPAddress itemsItem) { * items is the list of IPAddresses. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of IPAddresses.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1alpha1IPAddressList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1alpha1IPAddressList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1IPAddressList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1IPAddressList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1IPAddressList is not found in the empty JSON string", V1alpha1IPAddressList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1IPAddressList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1IPAddressList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1IPAddressList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha1IPAddress.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1IPAddressList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1IPAddressList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1IPAddressList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1IPAddressList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1IPAddressList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1IPAddressList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1IPAddressList + * @throws IOException if the JSON string is invalid with respect to V1alpha1IPAddressList + */ + public static V1alpha1IPAddressList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1IPAddressList.class); + } + + /** + * Convert an instance of V1alpha1IPAddressList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java index b0c422e273..3543257afc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1ParentReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * IPAddressSpec describe the attributes in an IP Address. */ @@ -34,6 +57,8 @@ public class V1alpha1IPAddressSpec { @SerializedName(SERIALIZED_NAME_PARENT_REF) private V1alpha1ParentReference parentRef; + public V1alpha1IPAddressSpec() { + } public V1alpha1IPAddressSpec parentRef(V1alpha1ParentReference parentRef) { @@ -45,9 +70,7 @@ public V1alpha1IPAddressSpec parentRef(V1alpha1ParentReference parentRef) { * Get parentRef * @return parentRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1ParentReference getParentRef() { return parentRef; } @@ -58,8 +81,9 @@ public void setParentRef(V1alpha1ParentReference parentRef) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(parentRef); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("parentRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1IPAddressSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1IPAddressSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1IPAddressSpec is not found in the empty JSON string", V1alpha1IPAddressSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1IPAddressSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1IPAddressSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `parentRef` + if (jsonObj.get("parentRef") != null && !jsonObj.get("parentRef").isJsonNull()) { + V1alpha1ParentReference.validateJsonObject(jsonObj.getAsJsonObject("parentRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1IPAddressSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1IPAddressSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1IPAddressSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1IPAddressSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1IPAddressSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1IPAddressSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1IPAddressSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1IPAddressSpec + */ + public static V1alpha1IPAddressSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1IPAddressSpec.class); + } + + /** + * Convert an instance of V1alpha1IPAddressSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java index c4cec9dc86..0eb3566177 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * V1alpha1MatchCondition */ @@ -36,6 +59,8 @@ public class V1alpha1MatchCondition { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1alpha1MatchCondition() { + } public V1alpha1MatchCondition expression(String expression) { @@ -47,8 +72,7 @@ public V1alpha1MatchCondition expression(String expression) { * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. * @return expression **/ - @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") - + @jakarta.annotation.Nonnull public String getExpression() { return expression; } @@ -69,8 +93,7 @@ public V1alpha1MatchCondition name(String name) { * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. * @return name **/ - @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -81,8 +104,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -99,7 +123,6 @@ public int hashCode() { return Objects.hash(expression, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -114,11 +137,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expression"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("expression"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1MatchCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1MatchCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MatchCondition is not found in the empty JSON string", V1alpha1MatchCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1MatchCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MatchCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1MatchCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1MatchCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1MatchCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1MatchCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1MatchCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1MatchCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1MatchCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MatchCondition + * @throws IOException if the JSON string is invalid with respect to V1alpha1MatchCondition + */ + public static V1alpha1MatchCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1MatchCondition.class); + } + + /** + * Convert an instance of V1alpha1MatchCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java index c986531bb1..3f3c2f581a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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) */ @@ -35,7 +58,7 @@ public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) - private List excludeResourceRules = null; + private List excludeResourceRules; public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; @SerializedName(SERIALIZED_NAME_MATCH_POLICY) @@ -51,8 +74,10 @@ public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) - private List resourceRules = null; + private List resourceRules; + public V1alpha1MatchResources() { + } public V1alpha1MatchResources excludeResourceRules(List excludeResourceRules) { @@ -72,9 +97,7 @@ public V1alpha1MatchResources addExcludeResourceRulesItem(V1alpha1NamedRuleWithO * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) * @return excludeResourceRules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") - + @jakarta.annotation.Nullable public List getExcludeResourceRules() { return excludeResourceRules; } @@ -95,9 +118,7 @@ public V1alpha1MatchResources matchPolicy(String matchPolicy) { * matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" * @return matchPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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\"") - + @jakarta.annotation.Nullable public String getMatchPolicy() { return matchPolicy; } @@ -118,9 +139,7 @@ public V1alpha1MatchResources namespaceSelector(V1LabelSelector namespaceSelecto * Get namespaceSelector * @return namespaceSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -141,9 +160,7 @@ public V1alpha1MatchResources objectSelector(V1LabelSelector objectSelector) { * Get objectSelector * @return objectSelector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getObjectSelector() { return objectSelector; } @@ -172,9 +189,7 @@ public V1alpha1MatchResources addResourceRulesItem(V1alpha1NamedRuleWithOperatio * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. * @return resourceRules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") - + @jakarta.annotation.Nullable public List getResourceRules() { return resourceRules; } @@ -185,8 +200,9 @@ public void setResourceRules(List resourceRules } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -206,7 +222,6 @@ public int hashCode() { return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -224,11 +239,137 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("excludeResourceRules"); + openapiFields.add("matchPolicy"); + openapiFields.add("namespaceSelector"); + openapiFields.add("objectSelector"); + openapiFields.add("resourceRules"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1MatchResources + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1MatchResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MatchResources is not found in the empty JSON string", V1alpha1MatchResources.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1MatchResources.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MatchResources` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("excludeResourceRules") != null && !jsonObj.get("excludeResourceRules").isJsonNull()) { + JsonArray jsonArrayexcludeResourceRules = jsonObj.getAsJsonArray("excludeResourceRules"); + if (jsonArrayexcludeResourceRules != null) { + // ensure the json data is an array + if (!jsonObj.get("excludeResourceRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `excludeResourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("excludeResourceRules").toString())); + } + + // validate the optional field `excludeResourceRules` (array) + for (int i = 0; i < jsonArrayexcludeResourceRules.size(); i++) { + V1alpha1NamedRuleWithOperations.validateJsonObject(jsonArrayexcludeResourceRules.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("matchPolicy") != null && !jsonObj.get("matchPolicy").isJsonNull()) && !jsonObj.get("matchPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `matchPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchPolicy").toString())); + } + // validate the optional field `namespaceSelector` + if (jsonObj.get("namespaceSelector") != null && !jsonObj.get("namespaceSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("namespaceSelector")); + } + // validate the optional field `objectSelector` + if (jsonObj.get("objectSelector") != null && !jsonObj.get("objectSelector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("objectSelector")); + } + if (jsonObj.get("resourceRules") != null && !jsonObj.get("resourceRules").isJsonNull()) { + JsonArray jsonArrayresourceRules = jsonObj.getAsJsonArray("resourceRules"); + if (jsonArrayresourceRules != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("resourceRules").toString())); + } + + // validate the optional field `resourceRules` (array) + for (int i = 0; i < jsonArrayresourceRules.size(); i++) { + V1alpha1NamedRuleWithOperations.validateJsonObject(jsonArrayresourceRules.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1MatchResources.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1MatchResources' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1MatchResources.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1MatchResources value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1MatchResources read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1MatchResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1MatchResources + * @throws IOException if the JSON string is invalid with respect to V1alpha1MatchResources + */ + public static V1alpha1MatchResources fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1MatchResources.class); + } + + /** + * Convert an instance of V1alpha1MatchResources to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java index 27d4f9bab7..67153ff29b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @@ -33,28 +56,30 @@ public class V1alpha1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) - private List apiGroups = null; + private List apiGroups; public static final String SERIALIZED_NAME_API_VERSIONS = "apiVersions"; @SerializedName(SERIALIZED_NAME_API_VERSIONS) - private List apiVersions = null; + private List apiVersions; public static final String SERIALIZED_NAME_OPERATIONS = "operations"; @SerializedName(SERIALIZED_NAME_OPERATIONS) - private List operations = null; + private List operations; public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) - private List resourceNames = null; + private List resourceNames; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) - private List resources = null; + private List resources; public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) private String scope; + public V1alpha1NamedRuleWithOperations() { + } public V1alpha1NamedRuleWithOperations apiGroups(List apiGroups) { @@ -74,9 +99,7 @@ public V1alpha1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") - + @jakarta.annotation.Nullable public List getApiGroups() { return apiGroups; } @@ -105,9 +128,7 @@ public V1alpha1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") - + @jakarta.annotation.Nullable public List getApiVersions() { return apiVersions; } @@ -136,9 +157,7 @@ public V1alpha1NamedRuleWithOperations addOperationsItem(String operationsItem) * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") - + @jakarta.annotation.Nullable public List getOperations() { return operations; } @@ -167,9 +186,7 @@ public V1alpha1NamedRuleWithOperations addResourceNamesItem(String resourceNames * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") - + @jakarta.annotation.Nullable public List getResourceNames() { return resourceNames; } @@ -198,9 +215,7 @@ public V1alpha1NamedRuleWithOperations addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") - + @jakarta.annotation.Nullable public List getResources() { return resources; } @@ -221,9 +236,7 @@ public V1alpha1NamedRuleWithOperations scope(String scope) { * 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 \"*\". * @return scope **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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 \"*\".") - + @jakarta.annotation.Nullable public String getScope() { return scope; } @@ -234,8 +247,9 @@ public void setScope(String scope) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -256,7 +270,6 @@ public int hashCode() { return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -275,11 +288,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroups"); + openapiFields.add("apiVersions"); + openapiFields.add("operations"); + openapiFields.add("resourceNames"); + openapiFields.add("resources"); + openapiFields.add("scope"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1NamedRuleWithOperations + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1NamedRuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1NamedRuleWithOperations is not found in the empty JSON string", V1alpha1NamedRuleWithOperations.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1NamedRuleWithOperations.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1NamedRuleWithOperations` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroups` to be an array in the JSON string but got `%s`", jsonObj.get("apiGroups").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("apiVersions") != null && !jsonObj.get("apiVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersions` to be an array in the JSON string but got `%s`", jsonObj.get("apiVersions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("operations") != null && !jsonObj.get("operations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `operations` to be an array in the JSON string but got `%s`", jsonObj.get("operations").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("resourceNames") != null && !jsonObj.get("resourceNames").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceNames` to be an array in the JSON string but got `%s`", jsonObj.get("resourceNames").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + if ((jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) && !jsonObj.get("scope").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1NamedRuleWithOperations.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1NamedRuleWithOperations' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1NamedRuleWithOperations.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1NamedRuleWithOperations value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1NamedRuleWithOperations read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1NamedRuleWithOperations given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1NamedRuleWithOperations + * @throws IOException if the JSON string is invalid with respect to V1alpha1NamedRuleWithOperations + */ + public static V1alpha1NamedRuleWithOperations fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1NamedRuleWithOperations.class); + } + + /** + * Convert an instance of V1alpha1NamedRuleWithOperations to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java index 3aaa3d9f4e..0af74f100a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ParamKind is a tuple of Group Kind and Version. */ @@ -37,6 +60,8 @@ public class V1alpha1ParamKind { @SerializedName(SERIALIZED_NAME_KIND) private String kind; + public V1alpha1ParamKind() { + } public V1alpha1ParamKind apiVersion(String apiVersion) { @@ -48,9 +73,7 @@ public V1alpha1ParamKind apiVersion(String apiVersion) { * APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -71,9 +94,7 @@ public V1alpha1ParamKind kind(String kind) { * Kind is the API kind the resources belong to. Required. * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -84,8 +105,9 @@ public void setKind(String kind) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ParamKind + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ParamKind.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ParamKind is not found in the empty JSON string", V1alpha1ParamKind.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ParamKind.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ParamKind` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ParamKind.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ParamKind' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ParamKind.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ParamKind value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ParamKind read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ParamKind given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ParamKind + * @throws IOException if the JSON string is invalid with respect to V1alpha1ParamKind + */ + public static V1alpha1ParamKind fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ParamKind.class); + } + + /** + * Convert an instance of V1alpha1ParamKind to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java index c3b7dd84f2..15c5106ae1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java @@ -24,6 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @@ -140,7 +165,7 @@ public void setSelector(V1LabelSelector selector) { @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +184,6 @@ public int hashCode() { return Objects.hash(name, namespace, parameterNotFoundAction, selector); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +200,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("parameterNotFoundAction"); + openapiFields.add("selector"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ParamRef + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ParamRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ParamRef is not found in the empty JSON string", V1alpha1ParamRef.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ParamRef.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ParamRef` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if ((jsonObj.get("parameterNotFoundAction") != null && !jsonObj.get("parameterNotFoundAction").isJsonNull()) && !jsonObj.get("parameterNotFoundAction").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `parameterNotFoundAction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parameterNotFoundAction").toString())); + } + // validate the optional field `selector` + if (jsonObj.get("selector") != null && !jsonObj.get("selector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ParamRef.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ParamRef' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ParamRef.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ParamRef value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ParamRef read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ParamRef given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ParamRef + * @throws IOException if the JSON string is invalid with respect to V1alpha1ParamRef + */ + public static V1alpha1ParamRef fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ParamRef.class); + } + + /** + * Convert an instance of V1alpha1ParamRef to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java index a42624cb73..44065a26d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ParentReference describes a reference to a parent object. */ @@ -49,6 +72,8 @@ public class V1alpha1ParentReference { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1alpha1ParentReference() { + } public V1alpha1ParentReference group(String group) { @@ -60,9 +85,7 @@ public V1alpha1ParentReference group(String group) { * Group is the group of the object being referenced. * @return group **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Group is the group of the object being referenced.") - + @jakarta.annotation.Nullable public String getGroup() { return group; } @@ -83,9 +106,7 @@ public V1alpha1ParentReference name(String name) { * Name is the name of the object being referenced. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name is the name of the object being referenced.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -106,9 +127,7 @@ public V1alpha1ParentReference namespace(String namespace) { * Namespace is the namespace of the object being referenced. * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Namespace is the namespace of the object being referenced.") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -129,9 +148,7 @@ public V1alpha1ParentReference resource(String resource) { * Resource is the resource of the object being referenced. * @return resource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resource is the resource of the object being referenced.") - + @jakarta.annotation.Nullable public String getResource() { return resource; } @@ -152,9 +169,7 @@ public V1alpha1ParentReference uid(String uid) { * UID is the uid of the object being referenced. * @return uid **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "UID is the uid of the object being referenced.") - + @jakarta.annotation.Nullable public String getUid() { return uid; } @@ -165,8 +180,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -186,7 +202,6 @@ public int hashCode() { return Objects.hash(group, name, namespace, resource, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -204,11 +219,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("group"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("resource"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ParentReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ParentReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ParentReference is not found in the empty JSON string", V1alpha1ParentReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ParentReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ParentReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + if ((jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) && !jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); + } + if ((jsonObj.get("uid") != null && !jsonObj.get("uid").isJsonNull()) && !jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ParentReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ParentReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ParentReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ParentReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ParentReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ParentReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ParentReference + * @throws IOException if the JSON string is invalid with respect to V1alpha1ParentReference + */ + public static V1alpha1ParentReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ParentReference.class); + } + + /** + * Convert an instance of V1alpha1ParentReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java index 90b96f92fc..9f5fd790b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1SelfSubjectReviewStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -47,6 +70,8 @@ public class V1alpha1SelfSubjectReview implements io.kubernetes.client.common.Ku @SerializedName(SERIALIZED_NAME_STATUS) private V1alpha1SelfSubjectReviewStatus status; + public V1alpha1SelfSubjectReview() { + } public V1alpha1SelfSubjectReview apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1alpha1SelfSubjectReview apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1alpha1SelfSubjectReview kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1alpha1SelfSubjectReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1alpha1SelfSubjectReview status(V1alpha1SelfSubjectReviewStatus status) * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1SelfSubjectReviewStatus getStatus() { return status; } @@ -140,8 +157,9 @@ public void setStatus(V1alpha1SelfSubjectReviewStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1SelfSubjectReview + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1SelfSubjectReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1SelfSubjectReview is not found in the empty JSON string", V1alpha1SelfSubjectReview.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1SelfSubjectReview.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1SelfSubjectReview` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha1SelfSubjectReviewStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1SelfSubjectReview.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1SelfSubjectReview' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1SelfSubjectReview.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1SelfSubjectReview value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1SelfSubjectReview read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1SelfSubjectReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1SelfSubjectReview + * @throws IOException if the JSON string is invalid with respect to V1alpha1SelfSubjectReview + */ + public static V1alpha1SelfSubjectReview fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1SelfSubjectReview.class); + } + + /** + * Convert an instance of V1alpha1SelfSubjectReview to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java index 11405dc17c..29783e7ecb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1UserInfo; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ @@ -34,6 +57,8 @@ public class V1alpha1SelfSubjectReviewStatus { @SerializedName(SERIALIZED_NAME_USER_INFO) private V1UserInfo userInfo; + public V1alpha1SelfSubjectReviewStatus() { + } public V1alpha1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { @@ -45,9 +70,7 @@ public V1alpha1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { * Get userInfo * @return userInfo **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1UserInfo getUserInfo() { return userInfo; } @@ -58,8 +81,9 @@ public void setUserInfo(V1UserInfo userInfo) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(userInfo); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("userInfo"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1SelfSubjectReviewStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1SelfSubjectReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1SelfSubjectReviewStatus is not found in the empty JSON string", V1alpha1SelfSubjectReviewStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1SelfSubjectReviewStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1SelfSubjectReviewStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `userInfo` + if (jsonObj.get("userInfo") != null && !jsonObj.get("userInfo").isJsonNull()) { + V1UserInfo.validateJsonObject(jsonObj.getAsJsonObject("userInfo")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1SelfSubjectReviewStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1SelfSubjectReviewStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1SelfSubjectReviewStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1SelfSubjectReviewStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1SelfSubjectReviewStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1SelfSubjectReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1SelfSubjectReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1SelfSubjectReviewStatus + */ + public static V1alpha1SelfSubjectReviewStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1SelfSubjectReviewStatus.class); + } + + /** + * Convert an instance of V1alpha1SelfSubjectReviewStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java index d1c19c18a6..fc5a069c9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. */ @@ -37,7 +60,7 @@ public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_DECODABLE_VERSIONS = "decodableVersions"; @SerializedName(SERIALIZED_NAME_DECODABLE_VERSIONS) - private List decodableVersions = null; + private List decodableVersions; public static final String SERIALIZED_NAME_ENCODING_VERSION = "encodingVersion"; @SerializedName(SERIALIZED_NAME_ENCODING_VERSION) @@ -58,9 +81,7 @@ public V1alpha1ServerStorageVersion apiServerID(String apiServerID) { * The ID of the reporting API server. * @return apiServerID **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The ID of the reporting API server.") - + @jakarta.annotation.Nullable public String getApiServerID() { return apiServerID; } @@ -89,9 +110,7 @@ public V1alpha1ServerStorageVersion addDecodableVersionsItem(String decodableVer * The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. * @return decodableVersions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.") - + @jakarta.annotation.Nullable public List getDecodableVersions() { return decodableVersions; } @@ -112,9 +131,7 @@ public V1alpha1ServerStorageVersion encodingVersion(String encodingVersion) { * The API server encodes the object to this version when persisting it in the backend (e.g., etcd). * @return encodingVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).") - + @jakarta.annotation.Nullable public String getEncodingVersion() { return encodingVersion; } @@ -157,7 +174,7 @@ public void setServedVersions(List servedVersions) { @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -176,7 +193,6 @@ public int hashCode() { return Objects.hash(apiServerID, decodableVersions, encodingVersion, servedVersions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -193,11 +209,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiServerID"); + openapiFields.add("decodableVersions"); + openapiFields.add("encodingVersion"); + openapiFields.add("servedVersions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ServerStorageVersion + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ServerStorageVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ServerStorageVersion is not found in the empty JSON string", V1alpha1ServerStorageVersion.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ServerStorageVersion.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ServerStorageVersion` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiServerID") != null && !jsonObj.get("apiServerID").isJsonNull()) && !jsonObj.get("apiServerID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiServerID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiServerID").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("decodableVersions") != null && !jsonObj.get("decodableVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `decodableVersions` to be an array in the JSON string but got `%s`", jsonObj.get("decodableVersions").toString())); + } + if ((jsonObj.get("encodingVersion") != null && !jsonObj.get("encodingVersion").isJsonNull()) && !jsonObj.get("encodingVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `encodingVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("encodingVersion").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("servedVersions") != null && !jsonObj.get("servedVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `servedVersions` to be an array in the JSON string but got `%s`", jsonObj.get("servedVersions").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ServerStorageVersion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ServerStorageVersion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ServerStorageVersion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ServerStorageVersion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ServerStorageVersion read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ServerStorageVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ServerStorageVersion + * @throws IOException if the JSON string is invalid with respect to V1alpha1ServerStorageVersion + */ + public static V1alpha1ServerStorageVersion fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ServerStorageVersion.class); + } + + /** + * Convert an instance of V1alpha1ServerStorageVersion to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java index 149ac41278..f345d31209 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Storage version of a specific resource. */ @@ -51,6 +74,8 @@ public class V1alpha1StorageVersion implements io.kubernetes.client.common.Kuber @SerializedName(SERIALIZED_NAME_STATUS) private V1alpha1StorageVersionStatus status; + public V1alpha1StorageVersion() { + } public V1alpha1StorageVersion apiVersion(String apiVersion) { @@ -62,9 +87,7 @@ public V1alpha1StorageVersion apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -85,9 +108,7 @@ public V1alpha1StorageVersion kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -108,9 +129,7 @@ public V1alpha1StorageVersion metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -131,8 +150,7 @@ public V1alpha1StorageVersion spec(Object spec) { * Spec is an empty spec. It is here to comply with Kubernetes API style. * @return spec **/ - @ApiModelProperty(required = true, value = "Spec is an empty spec. It is here to comply with Kubernetes API style.") - + @jakarta.annotation.Nonnull public Object getSpec() { return spec; } @@ -153,8 +171,7 @@ public V1alpha1StorageVersion status(V1alpha1StorageVersionStatus status) { * Get status * @return status **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1alpha1StorageVersionStatus getStatus() { return status; } @@ -165,8 +182,9 @@ public void setStatus(V1alpha1StorageVersionStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -186,7 +204,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -204,11 +221,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + openapiRequiredFields.add("status"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1StorageVersion + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1StorageVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1StorageVersion is not found in the empty JSON string", V1alpha1StorageVersion.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1StorageVersion.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersion` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1StorageVersion.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `status` + V1alpha1StorageVersionStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1StorageVersion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1StorageVersion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1StorageVersion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1StorageVersion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1StorageVersion read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1StorageVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersion + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersion + */ + public static V1alpha1StorageVersion fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersion.class); + } + + /** + * Convert an instance of V1alpha1StorageVersion to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java index b2aa4e9bd9..c8aa8c8581 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Describes the state of the storageVersion at a certain point. */ @@ -54,6 +77,8 @@ public class V1alpha1StorageVersionCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1alpha1StorageVersionCondition() { + } public V1alpha1StorageVersionCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -65,9 +90,7 @@ public V1alpha1StorageVersionCondition lastTransitionTime(OffsetDateTime lastTra * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -88,9 +111,7 @@ public V1alpha1StorageVersionCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable message indicating details about the transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -111,9 +132,7 @@ public V1alpha1StorageVersionCondition observedGeneration(Long observedGeneratio * If set, this represents the .metadata.generation that the condition was set based upon. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If set, this represents the .metadata.generation that the condition was set based upon.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -134,8 +153,7 @@ public V1alpha1StorageVersionCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ - @ApiModelProperty(required = true, value = "The reason for the condition's last transition.") - + @jakarta.annotation.Nonnull public String getReason() { return reason; } @@ -156,8 +174,7 @@ public V1alpha1StorageVersionCondition status(String status) { * Status of the condition, one of True, False, Unknown. * @return status **/ - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -178,8 +195,7 @@ public V1alpha1StorageVersionCondition type(String type) { * Type of the condition. * @return type **/ - @ApiModelProperty(required = true, value = "Type of the condition.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -190,8 +206,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -212,7 +229,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -231,11 +247,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("observedGeneration"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("reason"); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1StorageVersionCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1StorageVersionCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1StorageVersionCondition is not found in the empty JSON string", V1alpha1StorageVersionCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1StorageVersionCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1StorageVersionCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if (!jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1StorageVersionCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1StorageVersionCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1StorageVersionCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1StorageVersionCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1StorageVersionCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1StorageVersionCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionCondition + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionCondition + */ + public static V1alpha1StorageVersionCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionCondition.class); + } + + /** + * Convert an instance of V1alpha1StorageVersionCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java index 5647908426..beab032821 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1StorageVersion; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * A list of StorageVersions. */ @@ -49,6 +72,8 @@ public class V1alpha1StorageVersionList implements io.kubernetes.client.common.K @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha1StorageVersionList() { + } public V1alpha1StorageVersionList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha1StorageVersionList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1alpha1StorageVersionList items(List items) { } public V1alpha1StorageVersionList addItemsItem(V1alpha1StorageVersion itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1alpha1StorageVersionList addItemsItem(V1alpha1StorageVersion itemsItem) * Items holds a list of StorageVersion * @return items **/ - @ApiModelProperty(required = true, value = "Items holds a list of StorageVersion") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1alpha1StorageVersionList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1alpha1StorageVersionList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1StorageVersionList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1StorageVersionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1StorageVersionList is not found in the empty JSON string", V1alpha1StorageVersionList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1StorageVersionList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1StorageVersionList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha1StorageVersion.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1StorageVersionList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1StorageVersionList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1StorageVersionList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1StorageVersionList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1StorageVersionList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1StorageVersionList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionList + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionList + */ + public static V1alpha1StorageVersionList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionList.class); + } + + /** + * Convert an instance of V1alpha1StorageVersionList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java index d214843d16..92b5496050 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion; import io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. */ @@ -39,12 +62,14 @@ public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_STORAGE_VERSIONS = "storageVersions"; @SerializedName(SERIALIZED_NAME_STORAGE_VERSIONS) - private List storageVersions = null; + private List storageVersions; + public V1alpha1StorageVersionStatus() { + } public V1alpha1StorageVersionStatus commonEncodingVersion(String commonEncodingVersion) { @@ -56,9 +81,7 @@ public V1alpha1StorageVersionStatus commonEncodingVersion(String commonEncodingV * 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. * @return commonEncodingVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.") - + @jakarta.annotation.Nullable public String getCommonEncodingVersion() { return commonEncodingVersion; } @@ -87,9 +110,7 @@ public V1alpha1StorageVersionStatus addConditionsItem(V1alpha1StorageVersionCond * The latest available observations of the storageVersion's state. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The latest available observations of the storageVersion's state.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -118,9 +139,7 @@ public V1alpha1StorageVersionStatus addStorageVersionsItem(V1alpha1ServerStorage * The reported versions per API server instance. * @return storageVersions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The reported versions per API server instance.") - + @jakarta.annotation.Nullable public List getStorageVersions() { return storageVersions; } @@ -131,8 +150,9 @@ public void setStorageVersions(List storageVersion } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -150,7 +170,6 @@ public int hashCode() { return Objects.hash(commonEncodingVersion, conditions, storageVersions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -166,11 +185,127 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("commonEncodingVersion"); + openapiFields.add("conditions"); + openapiFields.add("storageVersions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1StorageVersionStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1StorageVersionStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1StorageVersionStatus is not found in the empty JSON string", V1alpha1StorageVersionStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1StorageVersionStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("commonEncodingVersion") != null && !jsonObj.get("commonEncodingVersion").isJsonNull()) && !jsonObj.get("commonEncodingVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `commonEncodingVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commonEncodingVersion").toString())); + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1alpha1StorageVersionCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("storageVersions") != null && !jsonObj.get("storageVersions").isJsonNull()) { + JsonArray jsonArraystorageVersions = jsonObj.getAsJsonArray("storageVersions"); + if (jsonArraystorageVersions != null) { + // ensure the json data is an array + if (!jsonObj.get("storageVersions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `storageVersions` to be an array in the JSON string but got `%s`", jsonObj.get("storageVersions").toString())); + } + + // validate the optional field `storageVersions` (array) + for (int i = 0; i < jsonArraystorageVersions.size(); i++) { + V1alpha1ServerStorageVersion.validateJsonObject(jsonArraystorageVersions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1StorageVersionStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1StorageVersionStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1StorageVersionStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1StorageVersionStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1StorageVersionStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1StorageVersionStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1StorageVersionStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1StorageVersionStatus + */ + public static V1alpha1StorageVersionStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1StorageVersionStatus.class); + } + + /** + * Convert an instance of V1alpha1StorageVersionStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java index 456ea6a0bb..d0fd4d2d96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1ExpressionWarning; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy */ @@ -34,8 +57,10 @@ public class V1alpha1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) - private List expressionWarnings = null; + private List expressionWarnings; + public V1alpha1TypeChecking() { + } public V1alpha1TypeChecking expressionWarnings(List expressionWarnings) { @@ -55,9 +80,7 @@ public V1alpha1TypeChecking addExpressionWarningsItem(V1alpha1ExpressionWarning * The type checking warnings for each expression. * @return expressionWarnings **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The type checking warnings for each expression.") - + @jakarta.annotation.Nullable public List getExpressionWarnings() { return expressionWarnings; } @@ -68,8 +91,9 @@ public void setExpressionWarnings(List expressionWarn } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(expressionWarnings); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expressionWarnings"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1TypeChecking + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1TypeChecking.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1TypeChecking is not found in the empty JSON string", V1alpha1TypeChecking.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1TypeChecking.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1TypeChecking` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("expressionWarnings") != null && !jsonObj.get("expressionWarnings").isJsonNull()) { + JsonArray jsonArrayexpressionWarnings = jsonObj.getAsJsonArray("expressionWarnings"); + if (jsonArrayexpressionWarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("expressionWarnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `expressionWarnings` to be an array in the JSON string but got `%s`", jsonObj.get("expressionWarnings").toString())); + } + + // validate the optional field `expressionWarnings` (array) + for (int i = 0; i < jsonArrayexpressionWarnings.size(); i++) { + V1alpha1ExpressionWarning.validateJsonObject(jsonArrayexpressionWarnings.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1TypeChecking.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1TypeChecking' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1TypeChecking.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1TypeChecking value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1TypeChecking read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1TypeChecking given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1TypeChecking + * @throws IOException if the JSON string is invalid with respect to V1alpha1TypeChecking + */ + public static V1alpha1TypeChecking fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1TypeChecking.class); + } + + /** + * Convert an instance of V1alpha1TypeChecking to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java index ec186cea0b..e6d8f68f8c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicySpec; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. */ @@ -52,6 +75,8 @@ public class V1alpha1ValidatingAdmissionPolicy implements io.kubernetes.client.c @SerializedName(SERIALIZED_NAME_STATUS) private V1alpha1ValidatingAdmissionPolicyStatus status; + public V1alpha1ValidatingAdmissionPolicy() { + } public V1alpha1ValidatingAdmissionPolicy apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1alpha1ValidatingAdmissionPolicy apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1alpha1ValidatingAdmissionPolicy kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1alpha1ValidatingAdmissionPolicy metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1alpha1ValidatingAdmissionPolicy spec(V1alpha1ValidatingAdmissionPolicyS * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1ValidatingAdmissionPolicySpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1alpha1ValidatingAdmissionPolicy status(V1alpha1ValidatingAdmissionPolic * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1ValidatingAdmissionPolicyStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1alpha1ValidatingAdmissionPolicyStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ValidatingAdmissionPolicy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ValidatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ValidatingAdmissionPolicy is not found in the empty JSON string", V1alpha1ValidatingAdmissionPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ValidatingAdmissionPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ValidatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1alpha1ValidatingAdmissionPolicySpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha1ValidatingAdmissionPolicyStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ValidatingAdmissionPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ValidatingAdmissionPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ValidatingAdmissionPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ValidatingAdmissionPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ValidatingAdmissionPolicy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ValidatingAdmissionPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ValidatingAdmissionPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha1ValidatingAdmissionPolicy + */ + public static V1alpha1ValidatingAdmissionPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ValidatingAdmissionPolicy.class); + } + + /** + * Convert an instance of V1alpha1ValidatingAdmissionPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java index ae05d3102a..f9e086cc75 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBindingSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -47,6 +70,8 @@ public class V1alpha1ValidatingAdmissionPolicyBinding implements io.kubernetes.c @SerializedName(SERIALIZED_NAME_SPEC) private V1alpha1ValidatingAdmissionPolicyBindingSpec spec; + public V1alpha1ValidatingAdmissionPolicyBinding() { + } public V1alpha1ValidatingAdmissionPolicyBinding apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1alpha1ValidatingAdmissionPolicyBinding apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1alpha1ValidatingAdmissionPolicyBinding kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1alpha1ValidatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1alpha1ValidatingAdmissionPolicyBinding spec(V1alpha1ValidatingAdmission * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1ValidatingAdmissionPolicyBindingSpec getSpec() { return spec; } @@ -140,8 +157,9 @@ public void setSpec(V1alpha1ValidatingAdmissionPolicyBindingSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ValidatingAdmissionPolicyBinding + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ValidatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ValidatingAdmissionPolicyBinding is not found in the empty JSON string", V1alpha1ValidatingAdmissionPolicyBinding.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ValidatingAdmissionPolicyBinding.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ValidatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1alpha1ValidatingAdmissionPolicyBindingSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ValidatingAdmissionPolicyBinding.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ValidatingAdmissionPolicyBinding' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ValidatingAdmissionPolicyBinding.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ValidatingAdmissionPolicyBinding value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ValidatingAdmissionPolicyBinding read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ValidatingAdmissionPolicyBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ValidatingAdmissionPolicyBinding + * @throws IOException if the JSON string is invalid with respect to V1alpha1ValidatingAdmissionPolicyBinding + */ + public static V1alpha1ValidatingAdmissionPolicyBinding fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ValidatingAdmissionPolicyBinding.class); + } + + /** + * Convert an instance of V1alpha1ValidatingAdmissionPolicyBinding to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java index 84075b7ff2..33da0506cd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBinding; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ @@ -39,7 +62,7 @@ public class V1alpha1ValidatingAdmissionPolicyBindingList implements io.kubernet public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; + private List items; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -49,6 +72,8 @@ public class V1alpha1ValidatingAdmissionPolicyBindingList implements io.kubernet @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha1ValidatingAdmissionPolicyBindingList() { + } public V1alpha1ValidatingAdmissionPolicyBindingList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -91,9 +114,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList addItemsItem(V1alpha1Validat * List of PolicyBinding. * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of PolicyBinding.") - + @jakarta.annotation.Nullable public List getItems() { return items; } @@ -114,9 +135,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -137,9 +156,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList metadata(V1ListMeta metadata * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -150,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ValidatingAdmissionPolicyBindingList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ValidatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ValidatingAdmissionPolicyBindingList is not found in the empty JSON string", V1alpha1ValidatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ValidatingAdmissionPolicyBindingList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ValidatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + if (jsonArrayitems != null) { + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + // validate the optional field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha1ValidatingAdmissionPolicyBinding.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ValidatingAdmissionPolicyBindingList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ValidatingAdmissionPolicyBindingList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ValidatingAdmissionPolicyBindingList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ValidatingAdmissionPolicyBindingList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ValidatingAdmissionPolicyBindingList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ValidatingAdmissionPolicyBindingList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ValidatingAdmissionPolicyBindingList + * @throws IOException if the JSON string is invalid with respect to V1alpha1ValidatingAdmissionPolicyBindingList + */ + public static V1alpha1ValidatingAdmissionPolicyBindingList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ValidatingAdmissionPolicyBindingList.class); + } + + /** + * Convert an instance of V1alpha1ValidatingAdmissionPolicyBindingList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java index a47ca1f6c5..195455561b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1MatchResources; import io.kubernetes.client.openapi.models.V1alpha1ParamRef; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. */ @@ -47,8 +70,10 @@ public class V1alpha1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_VALIDATION_ACTIONS = "validationActions"; @SerializedName(SERIALIZED_NAME_VALIDATION_ACTIONS) - private List validationActions = null; + private List validationActions; + public V1alpha1ValidatingAdmissionPolicyBindingSpec() { + } public V1alpha1ValidatingAdmissionPolicyBindingSpec matchResources(V1alpha1MatchResources matchResources) { @@ -60,9 +85,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingSpec matchResources(V1alpha1Match * Get matchResources * @return matchResources **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1MatchResources getMatchResources() { return matchResources; } @@ -83,9 +106,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingSpec paramRef(V1alpha1ParamRef pa * Get paramRef * @return paramRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1ParamRef getParamRef() { return paramRef; } @@ -106,9 +127,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingSpec policyName(String policyName * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. * @return policyName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") - + @jakarta.annotation.Nullable public String getPolicyName() { return policyName; } @@ -137,9 +156,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(Str * validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. * @return validationActions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") - + @jakarta.annotation.Nullable public List getValidationActions() { return validationActions; } @@ -150,8 +167,9 @@ public void setValidationActions(List validationActions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(matchResources, paramRef, policyName, validationActions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("matchResources"); + openapiFields.add("paramRef"); + openapiFields.add("policyName"); + openapiFields.add("validationActions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ValidatingAdmissionPolicyBindingSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ValidatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1alpha1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ValidatingAdmissionPolicyBindingSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ValidatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `matchResources` + if (jsonObj.get("matchResources") != null && !jsonObj.get("matchResources").isJsonNull()) { + V1alpha1MatchResources.validateJsonObject(jsonObj.getAsJsonObject("matchResources")); + } + // validate the optional field `paramRef` + if (jsonObj.get("paramRef") != null && !jsonObj.get("paramRef").isJsonNull()) { + V1alpha1ParamRef.validateJsonObject(jsonObj.getAsJsonObject("paramRef")); + } + if ((jsonObj.get("policyName") != null && !jsonObj.get("policyName").isJsonNull()) && !jsonObj.get("policyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `policyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policyName").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("validationActions") != null && !jsonObj.get("validationActions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `validationActions` to be an array in the JSON string but got `%s`", jsonObj.get("validationActions").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ValidatingAdmissionPolicyBindingSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ValidatingAdmissionPolicyBindingSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ValidatingAdmissionPolicyBindingSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ValidatingAdmissionPolicyBindingSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ValidatingAdmissionPolicyBindingSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ValidatingAdmissionPolicyBindingSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ValidatingAdmissionPolicyBindingSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1ValidatingAdmissionPolicyBindingSpec + */ + public static V1alpha1ValidatingAdmissionPolicyBindingSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ValidatingAdmissionPolicyBindingSpec.class); + } + + /** + * Convert an instance of V1alpha1ValidatingAdmissionPolicyBindingSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java index 67b4ccf040..16a81ab8c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicy; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ @@ -39,7 +62,7 @@ public class V1alpha1ValidatingAdmissionPolicyList implements io.kubernetes.clie public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; + private List items; public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -49,6 +72,8 @@ public class V1alpha1ValidatingAdmissionPolicyList implements io.kubernetes.clie @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha1ValidatingAdmissionPolicyList() { + } public V1alpha1ValidatingAdmissionPolicyList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha1ValidatingAdmissionPolicyList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -91,9 +114,7 @@ public V1alpha1ValidatingAdmissionPolicyList addItemsItem(V1alpha1ValidatingAdmi * List of ValidatingAdmissionPolicy. * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of ValidatingAdmissionPolicy.") - + @jakarta.annotation.Nullable public List getItems() { return items; } @@ -114,9 +135,7 @@ public V1alpha1ValidatingAdmissionPolicyList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -137,9 +156,7 @@ public V1alpha1ValidatingAdmissionPolicyList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -150,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,121 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ValidatingAdmissionPolicyList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ValidatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ValidatingAdmissionPolicyList is not found in the empty JSON string", V1alpha1ValidatingAdmissionPolicyList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ValidatingAdmissionPolicyList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ValidatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + if (jsonArrayitems != null) { + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + // validate the optional field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha1ValidatingAdmissionPolicy.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ValidatingAdmissionPolicyList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ValidatingAdmissionPolicyList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ValidatingAdmissionPolicyList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ValidatingAdmissionPolicyList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ValidatingAdmissionPolicyList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ValidatingAdmissionPolicyList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ValidatingAdmissionPolicyList + * @throws IOException if the JSON string is invalid with respect to V1alpha1ValidatingAdmissionPolicyList + */ + public static V1alpha1ValidatingAdmissionPolicyList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ValidatingAdmissionPolicyList.class); + } + + /** + * Convert an instance of V1alpha1ValidatingAdmissionPolicyList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java index 62fc2aab0b..28820d128b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java @@ -31,6 +31,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. */ @@ -39,7 +64,7 @@ public class V1alpha1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) - private List auditAnnotations = null; + private List auditAnnotations; public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) @@ -47,7 +72,7 @@ public class V1alpha1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) - private List matchConditions = null; + private List matchConditions; public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) @@ -59,7 +84,7 @@ public class V1alpha1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_VALIDATIONS = "validations"; @SerializedName(SERIALIZED_NAME_VALIDATIONS) - private List validations = null; + private List validations; public static final String SERIALIZED_NAME_VARIABLES = "variables"; @SerializedName(SERIALIZED_NAME_VARIABLES) @@ -84,9 +109,7 @@ public V1alpha1ValidatingAdmissionPolicySpec addAuditAnnotationsItem(V1alpha1Aud * 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. * @return auditAnnotations **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getAuditAnnotations() { return auditAnnotations; } @@ -107,9 +130,7 @@ public V1alpha1ValidatingAdmissionPolicySpec failurePolicy(String failurePolicy) * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if 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. * @return failurePolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if 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.") - + @jakarta.annotation.Nullable public String getFailurePolicy() { return failurePolicy; } @@ -138,9 +159,7 @@ public V1alpha1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1alpha1Matc * MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped * @return matchConditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") - + @jakarta.annotation.Nullable public List getMatchConditions() { return matchConditions; } @@ -161,9 +180,7 @@ public V1alpha1ValidatingAdmissionPolicySpec matchConstraints(V1alpha1MatchResou * Get matchConstraints * @return matchConstraints **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1MatchResources getMatchConstraints() { return matchConstraints; } @@ -184,9 +201,7 @@ public V1alpha1ValidatingAdmissionPolicySpec paramKind(V1alpha1ParamKind paramKi * Get paramKind * @return paramKind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1ParamKind getParamKind() { return paramKind; } @@ -215,9 +230,7 @@ public V1alpha1ValidatingAdmissionPolicySpec addValidationsItem(V1alpha1Validati * Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. * @return validations **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") - + @jakarta.annotation.Nullable public List getValidations() { return validations; } @@ -260,7 +273,7 @@ public void setVariables(List variables) { @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -282,7 +295,6 @@ public int hashCode() { return Objects.hash(auditAnnotations, failurePolicy, matchConditions, matchConstraints, paramKind, validations, variables); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -302,11 +314,167 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("auditAnnotations"); + openapiFields.add("failurePolicy"); + openapiFields.add("matchConditions"); + openapiFields.add("matchConstraints"); + openapiFields.add("paramKind"); + openapiFields.add("validations"); + openapiFields.add("variables"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ValidatingAdmissionPolicySpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ValidatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ValidatingAdmissionPolicySpec is not found in the empty JSON string", V1alpha1ValidatingAdmissionPolicySpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ValidatingAdmissionPolicySpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ValidatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("auditAnnotations") != null && !jsonObj.get("auditAnnotations").isJsonNull()) { + JsonArray jsonArrayauditAnnotations = jsonObj.getAsJsonArray("auditAnnotations"); + if (jsonArrayauditAnnotations != null) { + // ensure the json data is an array + if (!jsonObj.get("auditAnnotations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `auditAnnotations` to be an array in the JSON string but got `%s`", jsonObj.get("auditAnnotations").toString())); + } + + // validate the optional field `auditAnnotations` (array) + for (int i = 0; i < jsonArrayauditAnnotations.size(); i++) { + V1alpha1AuditAnnotation.validateJsonObject(jsonArrayauditAnnotations.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("failurePolicy") != null && !jsonObj.get("failurePolicy").isJsonNull()) && !jsonObj.get("failurePolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `failurePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("failurePolicy").toString())); + } + if (jsonObj.get("matchConditions") != null && !jsonObj.get("matchConditions").isJsonNull()) { + JsonArray jsonArraymatchConditions = jsonObj.getAsJsonArray("matchConditions"); + if (jsonArraymatchConditions != null) { + // ensure the json data is an array + if (!jsonObj.get("matchConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `matchConditions` to be an array in the JSON string but got `%s`", jsonObj.get("matchConditions").toString())); + } + + // validate the optional field `matchConditions` (array) + for (int i = 0; i < jsonArraymatchConditions.size(); i++) { + V1alpha1MatchCondition.validateJsonObject(jsonArraymatchConditions.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `matchConstraints` + if (jsonObj.get("matchConstraints") != null && !jsonObj.get("matchConstraints").isJsonNull()) { + V1alpha1MatchResources.validateJsonObject(jsonObj.getAsJsonObject("matchConstraints")); + } + // validate the optional field `paramKind` + if (jsonObj.get("paramKind") != null && !jsonObj.get("paramKind").isJsonNull()) { + V1alpha1ParamKind.validateJsonObject(jsonObj.getAsJsonObject("paramKind")); + } + if (jsonObj.get("validations") != null && !jsonObj.get("validations").isJsonNull()) { + JsonArray jsonArrayvalidations = jsonObj.getAsJsonArray("validations"); + if (jsonArrayvalidations != null) { + // ensure the json data is an array + if (!jsonObj.get("validations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `validations` to be an array in the JSON string but got `%s`", jsonObj.get("validations").toString())); + } + + // validate the optional field `validations` (array) + for (int i = 0; i < jsonArrayvalidations.size(); i++) { + V1alpha1Validation.validateJsonObject(jsonArrayvalidations.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("variables") != null && !jsonObj.get("variables").isJsonNull()) { + JsonArray jsonArrayvariables = jsonObj.getAsJsonArray("variables"); + if (jsonArrayvariables != null) { + // ensure the json data is an array + if (!jsonObj.get("variables").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `variables` to be an array in the JSON string but got `%s`", jsonObj.get("variables").toString())); + } + + // validate the optional field `variables` (array) + for (int i = 0; i < jsonArrayvariables.size(); i++) { + V1alpha1Variable.validateJsonObject(jsonArrayvariables.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ValidatingAdmissionPolicySpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ValidatingAdmissionPolicySpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ValidatingAdmissionPolicySpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ValidatingAdmissionPolicySpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ValidatingAdmissionPolicySpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ValidatingAdmissionPolicySpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ValidatingAdmissionPolicySpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1ValidatingAdmissionPolicySpec + */ + public static V1alpha1ValidatingAdmissionPolicySpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ValidatingAdmissionPolicySpec.class); + } + + /** + * Convert an instance of V1alpha1ValidatingAdmissionPolicySpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java index fad0aa0f78..4684a80046 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; import io.kubernetes.client.openapi.models.V1alpha1TypeChecking; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. */ @@ -35,7 +58,7 @@ public class V1alpha1ValidatingAdmissionPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) @@ -45,6 +68,8 @@ public class V1alpha1ValidatingAdmissionPolicyStatus { @SerializedName(SERIALIZED_NAME_TYPE_CHECKING) private V1alpha1TypeChecking typeChecking; + public V1alpha1ValidatingAdmissionPolicyStatus() { + } public V1alpha1ValidatingAdmissionPolicyStatus conditions(List conditions) { @@ -64,9 +89,7 @@ public V1alpha1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition con * The conditions represent the latest available observations of a policy's current state. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -87,9 +110,7 @@ public V1alpha1ValidatingAdmissionPolicyStatus observedGeneration(Long observedG * The generation observed by the controller. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The generation observed by the controller.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -110,9 +131,7 @@ public V1alpha1ValidatingAdmissionPolicyStatus typeChecking(V1alpha1TypeChecking * Get typeChecking * @return typeChecking **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha1TypeChecking getTypeChecking() { return typeChecking; } @@ -123,8 +142,9 @@ public void setTypeChecking(V1alpha1TypeChecking typeChecking) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -142,7 +162,6 @@ public int hashCode() { return Objects.hash(conditions, observedGeneration, typeChecking); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -158,11 +177,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + openapiFields.add("observedGeneration"); + openapiFields.add("typeChecking"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1ValidatingAdmissionPolicyStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1ValidatingAdmissionPolicyStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ValidatingAdmissionPolicyStatus is not found in the empty JSON string", V1alpha1ValidatingAdmissionPolicyStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1ValidatingAdmissionPolicyStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ValidatingAdmissionPolicyStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1Condition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `typeChecking` + if (jsonObj.get("typeChecking") != null && !jsonObj.get("typeChecking").isJsonNull()) { + V1alpha1TypeChecking.validateJsonObject(jsonObj.getAsJsonObject("typeChecking")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1ValidatingAdmissionPolicyStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ValidatingAdmissionPolicyStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ValidatingAdmissionPolicyStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ValidatingAdmissionPolicyStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ValidatingAdmissionPolicyStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ValidatingAdmissionPolicyStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ValidatingAdmissionPolicyStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1ValidatingAdmissionPolicyStatus + */ + public static V1alpha1ValidatingAdmissionPolicyStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ValidatingAdmissionPolicyStatus.class); + } + + /** + * Convert an instance of V1alpha1ValidatingAdmissionPolicyStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java index 41d0c8cea6..8e20fb65b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Validation specifies the CEL expression which is used to apply the validation. */ @@ -45,6 +68,8 @@ public class V1alpha1Validation { @SerializedName(SERIALIZED_NAME_REASON) private String reason; + public V1alpha1Validation() { + } public V1alpha1Validation expression(String expression) { @@ -78,9 +103,7 @@ public V1alpha1Validation message(String message) { * Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -101,9 +124,7 @@ public V1alpha1Validation messageExpression(String messageExpression) { * 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)+\")\" * @return messageExpression **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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)+\")\"") - + @jakarta.annotation.Nullable public String getMessageExpression() { return messageExpression; } @@ -124,9 +145,7 @@ public V1alpha1Validation reason(String reason) { * Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -137,8 +156,9 @@ public void setReason(String reason) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -157,7 +177,6 @@ public int hashCode() { return Objects.hash(expression, message, messageExpression, reason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -174,11 +193,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expression"); + openapiFields.add("message"); + openapiFields.add("messageExpression"); + openapiFields.add("reason"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("expression"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha1Validation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha1Validation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1Validation is not found in the empty JSON string", V1alpha1Validation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha1Validation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1Validation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1Validation.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("messageExpression") != null && !jsonObj.get("messageExpression").isJsonNull()) && !jsonObj.get("messageExpression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `messageExpression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("messageExpression").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1Validation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1Validation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1Validation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1Validation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1Validation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1Validation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1Validation + * @throws IOException if the JSON string is invalid with respect to V1alpha1Validation + */ + public static V1alpha1Validation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1Validation.class); + } + + /** + * Convert an instance of V1alpha1Validation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java index 3f54f9ce50..ca91232ac2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelector; import io.kubernetes.client.openapi.models.V1alpha2ResourceHandle; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * AllocationResult contains attributes of an allocated resource. */ @@ -39,12 +62,14 @@ public class V1alpha2AllocationResult { public static final String SERIALIZED_NAME_RESOURCE_HANDLES = "resourceHandles"; @SerializedName(SERIALIZED_NAME_RESOURCE_HANDLES) - private List resourceHandles = null; + private List resourceHandles; public static final String SERIALIZED_NAME_SHAREABLE = "shareable"; @SerializedName(SERIALIZED_NAME_SHAREABLE) private Boolean shareable; + public V1alpha2AllocationResult() { + } public V1alpha2AllocationResult availableOnNodes(V1NodeSelector availableOnNodes) { @@ -56,9 +81,7 @@ public V1alpha2AllocationResult availableOnNodes(V1NodeSelector availableOnNodes * Get availableOnNodes * @return availableOnNodes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeSelector getAvailableOnNodes() { return availableOnNodes; } @@ -87,9 +110,7 @@ public V1alpha2AllocationResult addResourceHandlesItem(V1alpha2ResourceHandle re * 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. * @return resourceHandles **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getResourceHandles() { return resourceHandles; } @@ -110,9 +131,7 @@ public V1alpha2AllocationResult shareable(Boolean shareable) { * Shareable determines whether the resource supports more than one consumer at a time. * @return shareable **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Shareable determines whether the resource supports more than one consumer at a time.") - + @jakarta.annotation.Nullable public Boolean getShareable() { return shareable; } @@ -123,8 +142,9 @@ public void setShareable(Boolean shareable) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -142,7 +162,6 @@ public int hashCode() { return Objects.hash(availableOnNodes, resourceHandles, shareable); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -158,11 +177,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("availableOnNodes"); + openapiFields.add("resourceHandles"); + openapiFields.add("shareable"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2AllocationResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2AllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2AllocationResult is not found in the empty JSON string", V1alpha2AllocationResult.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2AllocationResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2AllocationResult` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `availableOnNodes` + if (jsonObj.get("availableOnNodes") != null && !jsonObj.get("availableOnNodes").isJsonNull()) { + V1NodeSelector.validateJsonObject(jsonObj.getAsJsonObject("availableOnNodes")); + } + if (jsonObj.get("resourceHandles") != null && !jsonObj.get("resourceHandles").isJsonNull()) { + JsonArray jsonArrayresourceHandles = jsonObj.getAsJsonArray("resourceHandles"); + if (jsonArrayresourceHandles != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceHandles").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceHandles` to be an array in the JSON string but got `%s`", jsonObj.get("resourceHandles").toString())); + } + + // validate the optional field `resourceHandles` (array) + for (int i = 0; i < jsonArrayresourceHandles.size(); i++) { + V1alpha2ResourceHandle.validateJsonObject(jsonArrayresourceHandles.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2AllocationResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2AllocationResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2AllocationResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2AllocationResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2AllocationResult read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2AllocationResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2AllocationResult + * @throws IOException if the JSON string is invalid with respect to V1alpha2AllocationResult + */ + public static V1alpha2AllocationResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2AllocationResult.class); + } + + /** + * Convert an instance of V1alpha2AllocationResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java index cb92e38f38..21d7896410 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContextSpec; import io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContextStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1alpha2PodSchedulingContext implements io.kubernetes.client.common @SerializedName(SERIALIZED_NAME_STATUS) private V1alpha2PodSchedulingContextStatus status; + public V1alpha2PodSchedulingContext() { + } public V1alpha2PodSchedulingContext apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1alpha2PodSchedulingContext apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1alpha2PodSchedulingContext kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1alpha2PodSchedulingContext metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1alpha2PodSchedulingContext spec(V1alpha2PodSchedulingContextSpec spec) * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1alpha2PodSchedulingContextSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1alpha2PodSchedulingContext status(V1alpha2PodSchedulingContextStatus st * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha2PodSchedulingContextStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1alpha2PodSchedulingContextStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2PodSchedulingContext + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2PodSchedulingContext.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2PodSchedulingContext is not found in the empty JSON string", V1alpha2PodSchedulingContext.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2PodSchedulingContext.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2PodSchedulingContext` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2PodSchedulingContext.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1alpha2PodSchedulingContextSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha2PodSchedulingContextStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodSchedulingContext.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodSchedulingContext' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodSchedulingContext.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodSchedulingContext value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodSchedulingContext read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodSchedulingContext given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodSchedulingContext + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodSchedulingContext + */ + public static V1alpha2PodSchedulingContext fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodSchedulingContext.class); + } + + /** + * Convert an instance of V1alpha2PodSchedulingContext to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java index abb8aaa93e..1110e22fc3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContext; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodSchedulingContextList is a collection of Pod scheduling objects. */ @@ -49,6 +72,8 @@ public class V1alpha2PodSchedulingContextList implements io.kubernetes.client.co @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha2PodSchedulingContextList() { + } public V1alpha2PodSchedulingContextList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha2PodSchedulingContextList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1alpha2PodSchedulingContextList items(List } public V1alpha2PodSchedulingContextList addItemsItem(V1alpha2PodSchedulingContext itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1alpha2PodSchedulingContextList addItemsItem(V1alpha2PodSchedulingContex * Items is the list of PodSchedulingContext objects. * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of PodSchedulingContext objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1alpha2PodSchedulingContextList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1alpha2PodSchedulingContextList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2PodSchedulingContextList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2PodSchedulingContextList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2PodSchedulingContextList is not found in the empty JSON string", V1alpha2PodSchedulingContextList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2PodSchedulingContextList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2PodSchedulingContextList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2PodSchedulingContextList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha2PodSchedulingContext.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodSchedulingContextList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodSchedulingContextList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodSchedulingContextList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodSchedulingContextList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodSchedulingContextList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodSchedulingContextList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodSchedulingContextList + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodSchedulingContextList + */ + public static V1alpha2PodSchedulingContextList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodSchedulingContextList.class); + } + + /** + * Convert an instance of V1alpha2PodSchedulingContextList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java index 01d2ec60cc..b6644b2633 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodSchedulingContextSpec describes where resources for the Pod are needed. */ @@ -33,12 +56,14 @@ public class V1alpha2PodSchedulingContextSpec { public static final String SERIALIZED_NAME_POTENTIAL_NODES = "potentialNodes"; @SerializedName(SERIALIZED_NAME_POTENTIAL_NODES) - private List potentialNodes = null; + private List potentialNodes; public static final String SERIALIZED_NAME_SELECTED_NODE = "selectedNode"; @SerializedName(SERIALIZED_NAME_SELECTED_NODE) private String selectedNode; + public V1alpha2PodSchedulingContextSpec() { + } public V1alpha2PodSchedulingContextSpec potentialNodes(List potentialNodes) { @@ -58,9 +83,7 @@ public V1alpha2PodSchedulingContextSpec addPotentialNodesItem(String potentialNo * 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. * @return potentialNodes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getPotentialNodes() { return potentialNodes; } @@ -81,9 +104,7 @@ public V1alpha2PodSchedulingContextSpec selectedNode(String selectedNode) { * SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted. * @return selectedNode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.") - + @jakarta.annotation.Nullable public String getSelectedNode() { return selectedNode; } @@ -94,8 +115,9 @@ public void setSelectedNode(String selectedNode) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -112,7 +134,6 @@ public int hashCode() { return Objects.hash(potentialNodes, selectedNode); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,11 +148,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("potentialNodes"); + openapiFields.add("selectedNode"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2PodSchedulingContextSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2PodSchedulingContextSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2PodSchedulingContextSpec is not found in the empty JSON string", V1alpha2PodSchedulingContextSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2PodSchedulingContextSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2PodSchedulingContextSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("potentialNodes") != null && !jsonObj.get("potentialNodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `potentialNodes` to be an array in the JSON string but got `%s`", jsonObj.get("potentialNodes").toString())); + } + if ((jsonObj.get("selectedNode") != null && !jsonObj.get("selectedNode").isJsonNull()) && !jsonObj.get("selectedNode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `selectedNode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selectedNode").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodSchedulingContextSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodSchedulingContextSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodSchedulingContextSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodSchedulingContextSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodSchedulingContextSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodSchedulingContextSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodSchedulingContextSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodSchedulingContextSpec + */ + public static V1alpha2PodSchedulingContextSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodSchedulingContextSpec.class); + } + + /** + * Convert an instance of V1alpha2PodSchedulingContextSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java index d9b1a6cb9f..c0d222e9ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSchedulingStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodSchedulingContextStatus describes where resources for the Pod can be allocated. */ @@ -34,8 +57,10 @@ public class V1alpha2PodSchedulingContextStatus { public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) - private List resourceClaims = null; + private List resourceClaims; + public V1alpha2PodSchedulingContextStatus() { + } public V1alpha2PodSchedulingContextStatus resourceClaims(List resourceClaims) { @@ -55,9 +80,7 @@ public V1alpha2PodSchedulingContextStatus addResourceClaimsItem(V1alpha2Resource * ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode. * @return resourceClaims **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.") - + @jakarta.annotation.Nullable public List getResourceClaims() { return resourceClaims; } @@ -68,8 +91,9 @@ public void setResourceClaims(List resour } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(resourceClaims); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("resourceClaims"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2PodSchedulingContextStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2PodSchedulingContextStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2PodSchedulingContextStatus is not found in the empty JSON string", V1alpha2PodSchedulingContextStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2PodSchedulingContextStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2PodSchedulingContextStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("resourceClaims") != null && !jsonObj.get("resourceClaims").isJsonNull()) { + JsonArray jsonArrayresourceClaims = jsonObj.getAsJsonArray("resourceClaims"); + if (jsonArrayresourceClaims != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaims").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceClaims` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaims").toString())); + } + + // validate the optional field `resourceClaims` (array) + for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { + V1alpha2ResourceClaimSchedulingStatus.validateJsonObject(jsonArrayresourceClaims.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodSchedulingContextStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodSchedulingContextStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodSchedulingContextStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodSchedulingContextStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodSchedulingContextStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodSchedulingContextStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodSchedulingContextStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodSchedulingContextStatus + */ + public static V1alpha2PodSchedulingContextStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodSchedulingContextStatus.class); + } + + /** + * Convert an instance of V1alpha2PodSchedulingContextStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java index d5cf530b70..43a32d3438 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSpec; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V1alpha2ResourceClaim implements io.kubernetes.client.common.Kubern @SerializedName(SERIALIZED_NAME_STATUS) private V1alpha2ResourceClaimStatus status; + public V1alpha2ResourceClaim() { + } public V1alpha2ResourceClaim apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1alpha2ResourceClaim apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1alpha2ResourceClaim kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1alpha2ResourceClaim metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,8 +151,7 @@ public V1alpha2ResourceClaim spec(V1alpha2ResourceClaimSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1alpha2ResourceClaimSpec getSpec() { return spec; } @@ -154,9 +172,7 @@ public V1alpha2ResourceClaim status(V1alpha2ResourceClaimStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha2ResourceClaimStatus getStatus() { return status; } @@ -167,8 +183,9 @@ public void setStatus(V1alpha2ResourceClaimStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -188,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -206,11 +222,122 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaim + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaim is not found in the empty JSON string", V1alpha2ResourceClaim.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaim` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClaim.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1alpha2ResourceClaimSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha2ResourceClaimStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaim' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaim.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaim value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaim read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaim + */ + public static V1alpha2ResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaim.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaim to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java index 03b0d1a037..46beb4cce9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -45,6 +68,8 @@ public class V1alpha2ResourceClaimConsumerReference { @SerializedName(SERIALIZED_NAME_UID) private String uid; + public V1alpha2ResourceClaimConsumerReference() { + } public V1alpha2ResourceClaimConsumerReference apiGroup(String apiGroup) { @@ -56,9 +81,7 @@ public V1alpha2ResourceClaimConsumerReference apiGroup(String apiGroup) { * APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. * @return apiGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getApiGroup() { return apiGroup; } @@ -79,8 +102,7 @@ public V1alpha2ResourceClaimConsumerReference name(String name) { * Name is the name of resource being referenced. * @return name **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -101,8 +123,7 @@ public V1alpha2ResourceClaimConsumerReference resource(String resource) { * Resource is the type of resource being referenced, for example \"pods\". * @return resource **/ - @ApiModelProperty(required = true, value = "Resource is the type of resource being referenced, for example \"pods\".") - + @jakarta.annotation.Nonnull public String getResource() { return resource; } @@ -123,8 +144,7 @@ public V1alpha2ResourceClaimConsumerReference uid(String uid) { * UID identifies exactly one incarnation of the resource. * @return uid **/ - @ApiModelProperty(required = true, value = "UID identifies exactly one incarnation of the resource.") - + @jakarta.annotation.Nonnull public String getUid() { return uid; } @@ -135,8 +155,9 @@ public void setUid(String uid) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -155,7 +176,6 @@ public int hashCode() { return Objects.hash(apiGroup, name, resource, uid); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -172,11 +192,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroup"); + openapiFields.add("name"); + openapiFields.add("resource"); + openapiFields.add("uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("resource"); + openapiRequiredFields.add("uid"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimConsumerReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimConsumerReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimConsumerReference is not found in the empty JSON string", V1alpha2ResourceClaimConsumerReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimConsumerReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClaimConsumerReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); + } + if (!jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimConsumerReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimConsumerReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimConsumerReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimConsumerReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimConsumerReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimConsumerReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimConsumerReference + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimConsumerReference + */ + public static V1alpha2ResourceClaimConsumerReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimConsumerReference.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimConsumerReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java index b7ecd11192..7c29092d9c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaim; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaimList is a collection of claims. */ @@ -49,6 +72,8 @@ public class V1alpha2ResourceClaimList implements io.kubernetes.client.common.Ku @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha2ResourceClaimList() { + } public V1alpha2ResourceClaimList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha2ResourceClaimList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1alpha2ResourceClaimList items(List items) { } public V1alpha2ResourceClaimList addItemsItem(V1alpha2ResourceClaim itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1alpha2ResourceClaimList addItemsItem(V1alpha2ResourceClaim itemsItem) { * Items is the list of resource claims. * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of resource claims.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1alpha2ResourceClaimList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1alpha2ResourceClaimList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimList is not found in the empty JSON string", V1alpha2ResourceClaimList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClaimList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha2ResourceClaim.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimList + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimList + */ + public static V1alpha2ResourceClaimList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimList.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java index 556086472c..8148113efb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim. */ @@ -41,6 +64,8 @@ public class V1alpha2ResourceClaimParametersReference { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1alpha2ResourceClaimParametersReference() { + } public V1alpha2ResourceClaimParametersReference apiGroup(String apiGroup) { @@ -52,9 +77,7 @@ public V1alpha2ResourceClaimParametersReference apiGroup(String apiGroup) { * APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. * @return apiGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getApiGroup() { return apiGroup; } @@ -75,8 +98,7 @@ public V1alpha2ResourceClaimParametersReference kind(String kind) { * Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\". * @return kind **/ - @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -97,8 +119,7 @@ public V1alpha2ResourceClaimParametersReference name(String name) { * Name is the name of resource being referenced. * @return name **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -109,8 +130,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(apiGroup, kind, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroup"); + openapiFields.add("kind"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimParametersReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimParametersReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimParametersReference is not found in the empty JSON string", V1alpha2ResourceClaimParametersReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimParametersReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimParametersReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClaimParametersReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimParametersReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimParametersReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimParametersReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimParametersReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimParametersReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimParametersReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimParametersReference + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimParametersReference + */ + public static V1alpha2ResourceClaimParametersReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimParametersReference.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimParametersReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java index 323683b369..6036508a7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode. */ @@ -37,8 +60,10 @@ public class V1alpha2ResourceClaimSchedulingStatus { public static final String SERIALIZED_NAME_UNSUITABLE_NODES = "unsuitableNodes"; @SerializedName(SERIALIZED_NAME_UNSUITABLE_NODES) - private List unsuitableNodes = null; + private List unsuitableNodes; + public V1alpha2ResourceClaimSchedulingStatus() { + } public V1alpha2ResourceClaimSchedulingStatus name(String name) { @@ -50,9 +75,7 @@ public V1alpha2ResourceClaimSchedulingStatus name(String name) { * Name matches the pod.spec.resourceClaims[*].Name field. * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name matches the pod.spec.resourceClaims[*].Name field.") - + @jakarta.annotation.Nullable public String getName() { return name; } @@ -81,9 +104,7 @@ public V1alpha2ResourceClaimSchedulingStatus addUnsuitableNodesItem(String unsui * 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. * @return unsuitableNodes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getUnsuitableNodes() { return unsuitableNodes; } @@ -94,8 +115,9 @@ public void setUnsuitableNodes(List unsuitableNodes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -112,7 +134,6 @@ public int hashCode() { return Objects.hash(name, unsuitableNodes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,11 +148,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("unsuitableNodes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimSchedulingStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimSchedulingStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimSchedulingStatus is not found in the empty JSON string", V1alpha2ResourceClaimSchedulingStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimSchedulingStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimSchedulingStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("unsuitableNodes") != null && !jsonObj.get("unsuitableNodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `unsuitableNodes` to be an array in the JSON string but got `%s`", jsonObj.get("unsuitableNodes").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimSchedulingStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimSchedulingStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimSchedulingStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimSchedulingStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimSchedulingStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimSchedulingStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimSchedulingStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimSchedulingStatus + */ + public static V1alpha2ResourceClaimSchedulingStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimSchedulingStatus.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimSchedulingStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java index d9d44c26bb..6ad2a82161 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimParametersReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaimSpec defines how a resource is to be allocated. */ @@ -42,6 +65,8 @@ public class V1alpha2ResourceClaimSpec { @SerializedName(SERIALIZED_NAME_RESOURCE_CLASS_NAME) private String resourceClassName; + public V1alpha2ResourceClaimSpec() { + } public V1alpha2ResourceClaimSpec allocationMode(String allocationMode) { @@ -53,9 +78,7 @@ public V1alpha2ResourceClaimSpec allocationMode(String allocationMode) { * Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default. * @return allocationMode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.") - + @jakarta.annotation.Nullable public String getAllocationMode() { return allocationMode; } @@ -76,9 +99,7 @@ public V1alpha2ResourceClaimSpec parametersRef(V1alpha2ResourceClaimParametersRe * Get parametersRef * @return parametersRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha2ResourceClaimParametersReference getParametersRef() { return parametersRef; } @@ -99,8 +120,7 @@ public V1alpha2ResourceClaimSpec resourceClassName(String resourceClassName) { * ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. * @return resourceClassName **/ - @ApiModelProperty(required = true, value = "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.") - + @jakarta.annotation.Nonnull public String getResourceClassName() { return resourceClassName; } @@ -111,8 +131,9 @@ public void setResourceClassName(String resourceClassName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +151,6 @@ public int hashCode() { return Objects.hash(allocationMode, parametersRef, resourceClassName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +166,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allocationMode"); + openapiFields.add("parametersRef"); + openapiFields.add("resourceClassName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("resourceClassName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimSpec is not found in the empty JSON string", V1alpha2ResourceClaimSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClaimSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); + } + // validate the optional field `parametersRef` + if (jsonObj.get("parametersRef") != null && !jsonObj.get("parametersRef").isJsonNull()) { + V1alpha2ResourceClaimParametersReference.validateJsonObject(jsonObj.getAsJsonObject("parametersRef")); + } + if (!jsonObj.get("resourceClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClassName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimSpec + */ + public static V1alpha2ResourceClaimSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimSpec.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java index cc6db3b203..380439d1ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha2AllocationResult; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimConsumerReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are. */ @@ -47,8 +70,10 @@ public class V1alpha2ResourceClaimStatus { public static final String SERIALIZED_NAME_RESERVED_FOR = "reservedFor"; @SerializedName(SERIALIZED_NAME_RESERVED_FOR) - private List reservedFor = null; + private List reservedFor; + public V1alpha2ResourceClaimStatus() { + } public V1alpha2ResourceClaimStatus allocation(V1alpha2AllocationResult allocation) { @@ -60,9 +85,7 @@ public V1alpha2ResourceClaimStatus allocation(V1alpha2AllocationResult allocatio * Get allocation * @return allocation **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha2AllocationResult getAllocation() { return allocation; } @@ -83,9 +106,7 @@ public V1alpha2ResourceClaimStatus deallocationRequested(Boolean deallocationReq * 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. * @return deallocationRequested **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Boolean getDeallocationRequested() { return deallocationRequested; } @@ -106,9 +127,7 @@ public V1alpha2ResourceClaimStatus driverName(String driverName) { * DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. * @return driverName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.") - + @jakarta.annotation.Nullable public String getDriverName() { return driverName; } @@ -137,9 +156,7 @@ public V1alpha2ResourceClaimStatus addReservedForItem(V1alpha2ResourceClaimConsu * 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. * @return reservedFor **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getReservedFor() { return reservedFor; } @@ -150,8 +167,9 @@ public void setReservedFor(List reserved } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +188,6 @@ public int hashCode() { return Objects.hash(allocation, deallocationRequested, driverName, reservedFor); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +204,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allocation"); + openapiFields.add("deallocationRequested"); + openapiFields.add("driverName"); + openapiFields.add("reservedFor"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimStatus is not found in the empty JSON string", V1alpha2ResourceClaimStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `allocation` + if (jsonObj.get("allocation") != null && !jsonObj.get("allocation").isJsonNull()) { + V1alpha2AllocationResult.validateJsonObject(jsonObj.getAsJsonObject("allocation")); + } + if ((jsonObj.get("driverName") != null && !jsonObj.get("driverName").isJsonNull()) && !jsonObj.get("driverName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `driverName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driverName").toString())); + } + if (jsonObj.get("reservedFor") != null && !jsonObj.get("reservedFor").isJsonNull()) { + JsonArray jsonArrayreservedFor = jsonObj.getAsJsonArray("reservedFor"); + if (jsonArrayreservedFor != null) { + // ensure the json data is an array + if (!jsonObj.get("reservedFor").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `reservedFor` to be an array in the JSON string but got `%s`", jsonObj.get("reservedFor").toString())); + } + + // validate the optional field `reservedFor` (array) + for (int i = 0; i < jsonArrayreservedFor.size(); i++) { + V1alpha2ResourceClaimConsumerReference.validateJsonObject(jsonArrayreservedFor.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimStatus + */ + public static V1alpha2ResourceClaimStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimStatus.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java index 4cddc66c03..37fa25026f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaimTemplate is used to produce ResourceClaim objects. */ @@ -47,6 +70,8 @@ public class V1alpha2ResourceClaimTemplate implements io.kubernetes.client.commo @SerializedName(SERIALIZED_NAME_SPEC) private V1alpha2ResourceClaimTemplateSpec spec; + public V1alpha2ResourceClaimTemplate() { + } public V1alpha2ResourceClaimTemplate apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1alpha2ResourceClaimTemplate apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1alpha2ResourceClaimTemplate kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1alpha2ResourceClaimTemplate metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,8 +146,7 @@ public V1alpha2ResourceClaimTemplate spec(V1alpha2ResourceClaimTemplateSpec spec * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1alpha2ResourceClaimTemplateSpec getSpec() { return spec; } @@ -139,8 +157,9 @@ public void setSpec(V1alpha2ResourceClaimTemplateSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +194,117 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimTemplate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimTemplate is not found in the empty JSON string", V1alpha2ResourceClaimTemplate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClaimTemplate.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1alpha2ResourceClaimTemplateSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimTemplate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimTemplate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimTemplate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimTemplate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimTemplate + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimTemplate + */ + public static V1alpha2ResourceClaimTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimTemplate.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimTemplate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java index 01a7fd5410..24b74cf909 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplate; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaimTemplateList is a collection of claim templates. */ @@ -49,6 +72,8 @@ public class V1alpha2ResourceClaimTemplateList implements io.kubernetes.client.c @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha2ResourceClaimTemplateList() { + } public V1alpha2ResourceClaimTemplateList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha2ResourceClaimTemplateList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1alpha2ResourceClaimTemplateList items(List(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1alpha2ResourceClaimTemplateList addItemsItem(V1alpha2ResourceClaimTempl * Items is the list of resource claim templates. * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of resource claim templates.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1alpha2ResourceClaimTemplateList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1alpha2ResourceClaimTemplateList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimTemplateList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimTemplateList is not found in the empty JSON string", V1alpha2ResourceClaimTemplateList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimTemplateList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClaimTemplateList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha2ResourceClaimTemplate.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimTemplateList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimTemplateList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimTemplateList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimTemplateList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimTemplateList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimTemplateList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimTemplateList + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimTemplateList + */ + public static V1alpha2ResourceClaimTemplateList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimTemplateList.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimTemplateList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java index 677288e111..d0f08b4c32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @@ -39,6 +62,8 @@ public class V1alpha2ResourceClaimTemplateSpec { @SerializedName(SERIALIZED_NAME_SPEC) private V1alpha2ResourceClaimSpec spec; + public V1alpha2ResourceClaimTemplateSpec() { + } public V1alpha2ResourceClaimTemplateSpec metadata(V1ObjectMeta metadata) { @@ -50,9 +75,7 @@ public V1alpha2ResourceClaimTemplateSpec metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -73,8 +96,7 @@ public V1alpha2ResourceClaimTemplateSpec spec(V1alpha2ResourceClaimSpec spec) { * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1alpha2ResourceClaimSpec getSpec() { return spec; } @@ -85,8 +107,9 @@ public void setSpec(V1alpha2ResourceClaimSpec spec) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +126,6 @@ public int hashCode() { return Objects.hash(metadata, spec); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +140,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClaimTemplateSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClaimTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClaimTemplateSpec is not found in the empty JSON string", V1alpha2ResourceClaimTemplateSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClaimTemplateSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClaimTemplateSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the required field `spec` + V1alpha2ResourceClaimSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClaimTemplateSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClaimTemplateSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClaimTemplateSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClaimTemplateSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClaimTemplateSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClaimTemplateSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClaimTemplateSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClaimTemplateSpec + */ + public static V1alpha2ResourceClaimTemplateSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClaimTemplateSpec.class); + } + + /** + * Convert an instance of V1alpha2ResourceClaimTemplateSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java index 3a218c0e9a..7577bb33ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1NodeSelector; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha2ResourceClassParametersReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClass is used by administrators to influence how resources are allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @@ -56,6 +79,8 @@ public class V1alpha2ResourceClass implements io.kubernetes.client.common.Kubern @SerializedName(SERIALIZED_NAME_SUITABLE_NODES) private V1NodeSelector suitableNodes; + public V1alpha2ResourceClass() { + } public V1alpha2ResourceClass apiVersion(String apiVersion) { @@ -67,9 +92,7 @@ public V1alpha2ResourceClass apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -90,8 +113,7 @@ public V1alpha2ResourceClass driverName(String driverName) { * 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). * @return driverName **/ - @ApiModelProperty(required = true, value = "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).") - + @jakarta.annotation.Nonnull public String getDriverName() { return driverName; } @@ -112,9 +134,7 @@ public V1alpha2ResourceClass kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -135,9 +155,7 @@ public V1alpha2ResourceClass metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -158,9 +176,7 @@ public V1alpha2ResourceClass parametersRef(V1alpha2ResourceClassParametersRefere * Get parametersRef * @return parametersRef **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1alpha2ResourceClassParametersReference getParametersRef() { return parametersRef; } @@ -181,9 +197,7 @@ public V1alpha2ResourceClass suitableNodes(V1NodeSelector suitableNodes) { * Get suitableNodes * @return suitableNodes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1NodeSelector getSuitableNodes() { return suitableNodes; } @@ -194,8 +208,9 @@ public void setSuitableNodes(V1NodeSelector suitableNodes) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -216,7 +231,6 @@ public int hashCode() { return Objects.hash(apiVersion, driverName, kind, metadata, parametersRef, suitableNodes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -235,11 +249,128 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("driverName"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("parametersRef"); + openapiFields.add("suitableNodes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("driverName"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClass + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClass is not found in the empty JSON string", V1alpha2ResourceClass.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClass.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClass` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClass.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (!jsonObj.get("driverName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `driverName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driverName").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `parametersRef` + if (jsonObj.get("parametersRef") != null && !jsonObj.get("parametersRef").isJsonNull()) { + V1alpha2ResourceClassParametersReference.validateJsonObject(jsonObj.getAsJsonObject("parametersRef")); + } + // validate the optional field `suitableNodes` + if (jsonObj.get("suitableNodes") != null && !jsonObj.get("suitableNodes").isJsonNull()) { + V1NodeSelector.validateJsonObject(jsonObj.getAsJsonObject("suitableNodes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClass.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClass' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClass.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClass value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClass read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClass + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClass + */ + public static V1alpha2ResourceClass fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClass.class); + } + + /** + * Convert an instance of V1alpha2ResourceClass to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java index 4bae57e6a7..42a11e5978 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha2ResourceClass; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClassList is a collection of classes. */ @@ -49,6 +72,8 @@ public class V1alpha2ResourceClassList implements io.kubernetes.client.common.Ku @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1alpha2ResourceClassList() { + } public V1alpha2ResourceClassList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1alpha2ResourceClassList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1alpha2ResourceClassList items(List items) { } public V1alpha2ResourceClassList addItemsItem(V1alpha2ResourceClass itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1alpha2ResourceClassList addItemsItem(V1alpha2ResourceClass itemsItem) { * Items is the list of resource classes. * @return items **/ - @ApiModelProperty(required = true, value = "Items is the list of resource classes.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1alpha2ResourceClassList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1alpha2ResourceClassList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClassList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClassList is not found in the empty JSON string", V1alpha2ResourceClassList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClassList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClassList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClassList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha2ResourceClass.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClassList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClassList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClassList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClassList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClassList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClassList + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClassList + */ + public static V1alpha2ResourceClassList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClassList.class); + } + + /** + * Convert an instance of V1alpha2ResourceClassList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java index 52b324c6c3..d35918e069 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. */ @@ -45,6 +68,8 @@ public class V1alpha2ResourceClassParametersReference { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; + public V1alpha2ResourceClassParametersReference() { + } public V1alpha2ResourceClassParametersReference apiGroup(String apiGroup) { @@ -56,9 +81,7 @@ public V1alpha2ResourceClassParametersReference apiGroup(String apiGroup) { * APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. * @return apiGroup **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getApiGroup() { return apiGroup; } @@ -79,8 +102,7 @@ public V1alpha2ResourceClassParametersReference kind(String kind) { * Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. * @return kind **/ - @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -101,8 +123,7 @@ public V1alpha2ResourceClassParametersReference name(String name) { * Name is the name of resource being referenced. * @return name **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -123,9 +144,7 @@ public V1alpha2ResourceClassParametersReference namespace(String namespace) { * Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. * @return namespace **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.") - + @jakarta.annotation.Nullable public String getNamespace() { return namespace; } @@ -136,8 +155,9 @@ public void setNamespace(String namespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -156,7 +176,6 @@ public int hashCode() { return Objects.hash(apiGroup, kind, name, namespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,11 +192,118 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroup"); + openapiFields.add("kind"); + openapiFields.add("name"); + openapiFields.add("namespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceClassParametersReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceClassParametersReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceClassParametersReference is not found in the empty JSON string", V1alpha2ResourceClassParametersReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceClassParametersReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceClassParametersReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2ResourceClassParametersReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceClassParametersReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceClassParametersReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceClassParametersReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceClassParametersReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceClassParametersReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceClassParametersReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceClassParametersReference + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceClassParametersReference + */ + public static V1alpha2ResourceClassParametersReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceClassParametersReference.class); + } + + /** + * Convert an instance of V1alpha2ResourceClassParametersReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java index e4c68808c5..809b8cdddf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. */ @@ -37,6 +60,8 @@ public class V1alpha2ResourceHandle { @SerializedName(SERIALIZED_NAME_DRIVER_NAME) private String driverName; + public V1alpha2ResourceHandle() { + } public V1alpha2ResourceHandle data(String data) { @@ -48,9 +73,7 @@ public V1alpha2ResourceHandle data(String data) { * 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. * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getData() { return data; } @@ -71,9 +94,7 @@ public V1alpha2ResourceHandle driverName(String driverName) { * 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. * @return driverName **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public String getDriverName() { return driverName; } @@ -84,8 +105,9 @@ public void setDriverName(String driverName) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +124,6 @@ public int hashCode() { return Objects.hash(data, driverName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +138,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("driverName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1alpha2ResourceHandle + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1alpha2ResourceHandle.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2ResourceHandle is not found in the empty JSON string", V1alpha2ResourceHandle.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1alpha2ResourceHandle.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2ResourceHandle` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) && !jsonObj.get("data").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be a primitive type in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + if ((jsonObj.get("driverName") != null && !jsonObj.get("driverName").isJsonNull()) && !jsonObj.get("driverName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `driverName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driverName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2ResourceHandle.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2ResourceHandle' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2ResourceHandle.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2ResourceHandle value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2ResourceHandle read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2ResourceHandle given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2ResourceHandle + * @throws IOException if the JSON string is invalid with respect to V1alpha2ResourceHandle + */ + public static V1alpha2ResourceHandle fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2ResourceHandle.class); + } + + /** + * Convert an instance of V1alpha2ResourceHandle to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java index 9f3e22f40f..48a502968f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta1SelfSubjectReviewStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -47,6 +70,8 @@ public class V1beta1SelfSubjectReview implements io.kubernetes.client.common.Kub @SerializedName(SERIALIZED_NAME_STATUS) private V1beta1SelfSubjectReviewStatus status; + public V1beta1SelfSubjectReview() { + } public V1beta1SelfSubjectReview apiVersion(String apiVersion) { @@ -58,9 +83,7 @@ public V1beta1SelfSubjectReview apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -81,9 +104,7 @@ public V1beta1SelfSubjectReview kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -104,9 +125,7 @@ public V1beta1SelfSubjectReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -127,9 +146,7 @@ public V1beta1SelfSubjectReview status(V1beta1SelfSubjectReviewStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta1SelfSubjectReviewStatus getStatus() { return status; } @@ -140,8 +157,9 @@ public void setStatus(V1beta1SelfSubjectReviewStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +178,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +194,111 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta1SelfSubjectReview + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta1SelfSubjectReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1SelfSubjectReview is not found in the empty JSON string", V1beta1SelfSubjectReview.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta1SelfSubjectReview.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1SelfSubjectReview` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1beta1SelfSubjectReviewStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1SelfSubjectReview.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1SelfSubjectReview' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1SelfSubjectReview.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1SelfSubjectReview value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1SelfSubjectReview read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1SelfSubjectReview given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1SelfSubjectReview + * @throws IOException if the JSON string is invalid with respect to V1beta1SelfSubjectReview + */ + public static V1beta1SelfSubjectReview fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1SelfSubjectReview.class); + } + + /** + * Convert an instance of V1beta1SelfSubjectReview to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java index f711bb9d11..86aee14dd5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1UserInfo; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ @@ -34,6 +57,8 @@ public class V1beta1SelfSubjectReviewStatus { @SerializedName(SERIALIZED_NAME_USER_INFO) private V1UserInfo userInfo; + public V1beta1SelfSubjectReviewStatus() { + } public V1beta1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { @@ -45,9 +70,7 @@ public V1beta1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { * Get userInfo * @return userInfo **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1UserInfo getUserInfo() { return userInfo; } @@ -58,8 +81,9 @@ public void setUserInfo(V1UserInfo userInfo) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -75,7 +99,6 @@ public int hashCode() { return Objects.hash(userInfo); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -89,11 +112,98 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("userInfo"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta1SelfSubjectReviewStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta1SelfSubjectReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1SelfSubjectReviewStatus is not found in the empty JSON string", V1beta1SelfSubjectReviewStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta1SelfSubjectReviewStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1SelfSubjectReviewStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `userInfo` + if (jsonObj.get("userInfo") != null && !jsonObj.get("userInfo").isJsonNull()) { + V1UserInfo.validateJsonObject(jsonObj.getAsJsonObject("userInfo")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1SelfSubjectReviewStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1SelfSubjectReviewStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1SelfSubjectReviewStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1SelfSubjectReviewStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1SelfSubjectReviewStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1SelfSubjectReviewStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1SelfSubjectReviewStatus + * @throws IOException if the JSON string is invalid with respect to V1beta1SelfSubjectReviewStatus + */ + public static V1beta1SelfSubjectReviewStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1SelfSubjectReviewStatus.class); + } + + /** + * Convert an instance of V1beta1SelfSubjectReviewStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java index 5779d74c24..583e8da9a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowDistinguisherMethod specifies the method of a flow distinguisher. */ @@ -33,6 +56,8 @@ public class V1beta2FlowDistinguisherMethod { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta2FlowDistinguisherMethod() { + } public V1beta2FlowDistinguisherMethod type(String type) { @@ -44,8 +69,7 @@ public V1beta2FlowDistinguisherMethod type(String type) { * `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. * @return type **/ - @ApiModelProperty(required = true, value = "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -56,8 +80,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2FlowDistinguisherMethod + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2FlowDistinguisherMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2FlowDistinguisherMethod is not found in the empty JSON string", V1beta2FlowDistinguisherMethod.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2FlowDistinguisherMethod.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2FlowDistinguisherMethod` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2FlowDistinguisherMethod.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2FlowDistinguisherMethod.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2FlowDistinguisherMethod' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2FlowDistinguisherMethod.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2FlowDistinguisherMethod value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2FlowDistinguisherMethod read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2FlowDistinguisherMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2FlowDistinguisherMethod + * @throws IOException if the JSON string is invalid with respect to V1beta2FlowDistinguisherMethod + */ + public static V1beta2FlowDistinguisherMethod fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2FlowDistinguisherMethod.class); + } + + /** + * Convert an instance of V1beta2FlowDistinguisherMethod to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java index ef4c3a1c41..438f4b2716 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec; import io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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\". */ @@ -52,6 +75,8 @@ public class V1beta2FlowSchema implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_STATUS) private V1beta2FlowSchemaStatus status; + public V1beta2FlowSchema() { + } public V1beta2FlowSchema apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1beta2FlowSchema apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1beta2FlowSchema kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1beta2FlowSchema metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1beta2FlowSchema spec(V1beta2FlowSchemaSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2FlowSchemaSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1beta2FlowSchema status(V1beta2FlowSchemaStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2FlowSchemaStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1beta2FlowSchemaStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2FlowSchema + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2FlowSchema.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2FlowSchema is not found in the empty JSON string", V1beta2FlowSchema.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2FlowSchema.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2FlowSchema` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta2FlowSchemaSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1beta2FlowSchemaStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2FlowSchema.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2FlowSchema' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2FlowSchema.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2FlowSchema value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2FlowSchema read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2FlowSchema given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2FlowSchema + * @throws IOException if the JSON string is invalid with respect to V1beta2FlowSchema + */ + public static V1beta2FlowSchema fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2FlowSchema.class); + } + + /** + * Convert an instance of V1beta2FlowSchema to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java index ebfe0544c2..cd9d8cab45 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowSchemaCondition describes conditions for a FlowSchema. */ @@ -50,6 +73,8 @@ public class V1beta2FlowSchemaCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta2FlowSchemaCondition() { + } public V1beta2FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1beta2FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransiti * `lastTransitionTime` is the last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1beta2FlowSchemaCondition message(String message) { * `message` is a human-readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1beta2FlowSchemaCondition reason(String reason) { * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,9 +149,7 @@ public V1beta2FlowSchemaCondition status(String status) { * `status` is the status of the condition. Can be True, False, Unknown. Required. * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") - + @jakarta.annotation.Nullable public String getStatus() { return status; } @@ -153,9 +170,7 @@ public V1beta2FlowSchemaCondition type(String type) { * `type` is the type of the condition. Required. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`type` is the type of the condition. Required.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -166,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -187,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +220,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2FlowSchemaCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2FlowSchemaCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2FlowSchemaCondition is not found in the empty JSON string", V1beta2FlowSchemaCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2FlowSchemaCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2FlowSchemaCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2FlowSchemaCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2FlowSchemaCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2FlowSchemaCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2FlowSchemaCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2FlowSchemaCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2FlowSchemaCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2FlowSchemaCondition + * @throws IOException if the JSON string is invalid with respect to V1beta2FlowSchemaCondition + */ + public static V1beta2FlowSchemaCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2FlowSchemaCondition.class); + } + + /** + * Convert an instance of V1beta2FlowSchemaCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java index b0240d8503..c6b335d584 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta2FlowSchema; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowSchemaList is a list of FlowSchema objects. */ @@ -49,6 +72,8 @@ public class V1beta2FlowSchemaList implements io.kubernetes.client.common.Kubern @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1beta2FlowSchemaList() { + } public V1beta2FlowSchemaList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1beta2FlowSchemaList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1beta2FlowSchemaList items(List items) { } public V1beta2FlowSchemaList addItemsItem(V1beta2FlowSchema itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1beta2FlowSchemaList addItemsItem(V1beta2FlowSchema itemsItem) { * `items` is a list of FlowSchemas. * @return items **/ - @ApiModelProperty(required = true, value = "`items` is a list of FlowSchemas.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1beta2FlowSchemaList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1beta2FlowSchemaList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2FlowSchemaList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2FlowSchemaList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2FlowSchemaList is not found in the empty JSON string", V1beta2FlowSchemaList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2FlowSchemaList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2FlowSchemaList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2FlowSchemaList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1beta2FlowSchema.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2FlowSchemaList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2FlowSchemaList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2FlowSchemaList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2FlowSchemaList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2FlowSchemaList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2FlowSchemaList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2FlowSchemaList + * @throws IOException if the JSON string is invalid with respect to V1beta2FlowSchemaList + */ + public static V1beta2FlowSchemaList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2FlowSchemaList.class); + } + + /** + * Convert an instance of V1beta2FlowSchemaList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java index 70404e63cd..5ff19f6218 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod; import io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects; import io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowSchemaSpec describes how the FlowSchema's specification looks like. */ @@ -48,8 +71,10 @@ public class V1beta2FlowSchemaSpec { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) - private List rules = null; + private List rules; + public V1beta2FlowSchemaSpec() { + } public V1beta2FlowSchemaSpec distinguisherMethod(V1beta2FlowDistinguisherMethod distinguisherMethod) { @@ -61,9 +86,7 @@ public V1beta2FlowSchemaSpec distinguisherMethod(V1beta2FlowDistinguisherMethod * Get distinguisherMethod * @return distinguisherMethod **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2FlowDistinguisherMethod getDistinguisherMethod() { return distinguisherMethod; } @@ -84,9 +107,7 @@ public V1beta2FlowSchemaSpec matchingPrecedence(Integer matchingPrecedence) { * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. * @return matchingPrecedence **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getMatchingPrecedence() { return matchingPrecedence; } @@ -107,8 +128,7 @@ public V1beta2FlowSchemaSpec priorityLevelConfiguration(V1beta2PriorityLevelConf * Get priorityLevelConfiguration * @return priorityLevelConfiguration **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1beta2PriorityLevelConfigurationReference getPriorityLevelConfiguration() { return priorityLevelConfiguration; } @@ -137,9 +157,7 @@ public V1beta2FlowSchemaSpec addRulesItem(V1beta2PolicyRulesWithSubjects rulesIt * `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. * @return rules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public List getRules() { return rules; } @@ -150,8 +168,9 @@ public void setRules(List rules) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +189,6 @@ public int hashCode() { return Objects.hash(distinguisherMethod, matchingPrecedence, priorityLevelConfiguration, rules); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +205,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("distinguisherMethod"); + openapiFields.add("matchingPrecedence"); + openapiFields.add("priorityLevelConfiguration"); + openapiFields.add("rules"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("priorityLevelConfiguration"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2FlowSchemaSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2FlowSchemaSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2FlowSchemaSpec is not found in the empty JSON string", V1beta2FlowSchemaSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2FlowSchemaSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2FlowSchemaSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2FlowSchemaSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `distinguisherMethod` + if (jsonObj.get("distinguisherMethod") != null && !jsonObj.get("distinguisherMethod").isJsonNull()) { + V1beta2FlowDistinguisherMethod.validateJsonObject(jsonObj.getAsJsonObject("distinguisherMethod")); + } + // validate the required field `priorityLevelConfiguration` + V1beta2PriorityLevelConfigurationReference.validateJsonObject(jsonObj.getAsJsonObject("priorityLevelConfiguration")); + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + V1beta2PolicyRulesWithSubjects.validateJsonObject(jsonArrayrules.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2FlowSchemaSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2FlowSchemaSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2FlowSchemaSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2FlowSchemaSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2FlowSchemaSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2FlowSchemaSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2FlowSchemaSpec + * @throws IOException if the JSON string is invalid with respect to V1beta2FlowSchemaSpec + */ + public static V1beta2FlowSchemaSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2FlowSchemaSpec.class); + } + + /** + * Convert an instance of V1beta2FlowSchemaSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java index da497f6ea3..1e20b48fca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowSchemaStatus represents the current state of a FlowSchema. */ @@ -34,8 +57,10 @@ public class V1beta2FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; + public V1beta2FlowSchemaStatus() { + } public V1beta2FlowSchemaStatus conditions(List conditions) { @@ -55,9 +80,7 @@ public V1beta2FlowSchemaStatus addConditionsItem(V1beta2FlowSchemaCondition cond * `conditions` is a list of the current states of FlowSchema. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`conditions` is a list of the current states of FlowSchema.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -68,8 +91,9 @@ public void setConditions(List conditions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(conditions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2FlowSchemaStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2FlowSchemaStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2FlowSchemaStatus is not found in the empty JSON string", V1beta2FlowSchemaStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2FlowSchemaStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2FlowSchemaStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1beta2FlowSchemaCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2FlowSchemaStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2FlowSchemaStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2FlowSchemaStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2FlowSchemaStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2FlowSchemaStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2FlowSchemaStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2FlowSchemaStatus + * @throws IOException if the JSON string is invalid with respect to V1beta2FlowSchemaStatus + */ + public static V1beta2FlowSchemaStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2FlowSchemaStatus.class); + } + + /** + * Convert an instance of V1beta2FlowSchemaStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java index b135ed46bc..87446129a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * GroupSubject holds detailed information for group-kind subject. */ @@ -33,6 +56,8 @@ public class V1beta2GroupSubject { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1beta2GroupSubject() { + } public V1beta2GroupSubject name(String name) { @@ -44,8 +69,7 @@ public V1beta2GroupSubject name(String name) { * name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. * @return name **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2GroupSubject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2GroupSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2GroupSubject is not found in the empty JSON string", V1beta2GroupSubject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2GroupSubject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2GroupSubject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2GroupSubject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2GroupSubject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2GroupSubject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2GroupSubject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2GroupSubject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2GroupSubject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2GroupSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2GroupSubject + * @throws IOException if the JSON string is invalid with respect to V1beta2GroupSubject + */ + public static V1beta2GroupSubject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2GroupSubject.class); + } + + /** + * Convert an instance of V1beta2GroupSubject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java index 1bfebee556..0de3e037d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LimitResponse defines how to handle requests that can not be executed right now. */ @@ -38,6 +61,8 @@ public class V1beta2LimitResponse { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta2LimitResponse() { + } public V1beta2LimitResponse queuing(V1beta2QueuingConfiguration queuing) { @@ -49,9 +74,7 @@ public V1beta2LimitResponse queuing(V1beta2QueuingConfiguration queuing) { * Get queuing * @return queuing **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2QueuingConfiguration getQueuing() { return queuing; } @@ -72,8 +95,7 @@ public V1beta2LimitResponse type(String type) { * `type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required. * @return type **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -84,8 +106,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +125,6 @@ public int hashCode() { return Objects.hash(queuing, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +139,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("queuing"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2LimitResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2LimitResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2LimitResponse is not found in the empty JSON string", V1beta2LimitResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2LimitResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2LimitResponse` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2LimitResponse.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `queuing` + if (jsonObj.get("queuing") != null && !jsonObj.get("queuing").isJsonNull()) { + V1beta2QueuingConfiguration.validateJsonObject(jsonObj.getAsJsonObject("queuing")); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2LimitResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2LimitResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2LimitResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2LimitResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2LimitResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2LimitResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2LimitResponse + * @throws IOException if the JSON string is invalid with respect to V1beta2LimitResponse + */ + public static V1beta2LimitResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2LimitResponse.class); + } + + /** + * Convert an instance of V1beta2LimitResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java index b3ba083c44..3bbc58744b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta2LimitResponse; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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? */ @@ -46,6 +69,8 @@ public class V1beta2LimitedPriorityLevelConfiguration { @SerializedName(SERIALIZED_NAME_LIMIT_RESPONSE) private V1beta2LimitResponse limitResponse; + public V1beta2LimitedPriorityLevelConfiguration() { + } public V1beta2LimitedPriorityLevelConfiguration assuredConcurrencyShares(Integer assuredConcurrencyShares) { @@ -57,9 +82,7 @@ public V1beta2LimitedPriorityLevelConfiguration assuredConcurrencyShares(Integer * `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. * @return assuredConcurrencyShares **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.") - + @jakarta.annotation.Nullable public Integer getAssuredConcurrencyShares() { return assuredConcurrencyShares; } @@ -80,9 +103,7 @@ public V1beta2LimitedPriorityLevelConfiguration borrowingLimitPercent(Integer bo * `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. * @return borrowingLimitPercent **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getBorrowingLimitPercent() { return borrowingLimitPercent; } @@ -103,9 +124,7 @@ public V1beta2LimitedPriorityLevelConfiguration lendablePercent(Integer lendable * `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 ) * @return lendablePercent **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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 )") - + @jakarta.annotation.Nullable public Integer getLendablePercent() { return lendablePercent; } @@ -126,9 +145,7 @@ public V1beta2LimitedPriorityLevelConfiguration limitResponse(V1beta2LimitRespon * Get limitResponse * @return limitResponse **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2LimitResponse getLimitResponse() { return limitResponse; } @@ -139,8 +156,9 @@ public void setLimitResponse(V1beta2LimitResponse limitResponse) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +177,6 @@ public int hashCode() { return Objects.hash(assuredConcurrencyShares, borrowingLimitPercent, lendablePercent, limitResponse); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +193,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("assuredConcurrencyShares"); + openapiFields.add("borrowingLimitPercent"); + openapiFields.add("lendablePercent"); + openapiFields.add("limitResponse"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2LimitedPriorityLevelConfiguration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2LimitedPriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2LimitedPriorityLevelConfiguration is not found in the empty JSON string", V1beta2LimitedPriorityLevelConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2LimitedPriorityLevelConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2LimitedPriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `limitResponse` + if (jsonObj.get("limitResponse") != null && !jsonObj.get("limitResponse").isJsonNull()) { + V1beta2LimitResponse.validateJsonObject(jsonObj.getAsJsonObject("limitResponse")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2LimitedPriorityLevelConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2LimitedPriorityLevelConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2LimitedPriorityLevelConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2LimitedPriorityLevelConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2LimitedPriorityLevelConfiguration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2LimitedPriorityLevelConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2LimitedPriorityLevelConfiguration + * @throws IOException if the JSON string is invalid with respect to V1beta2LimitedPriorityLevelConfiguration + */ + public static V1beta2LimitedPriorityLevelConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2LimitedPriorityLevelConfiguration.class); + } + + /** + * Convert an instance of V1beta2LimitedPriorityLevelConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java index 2788db752b..958b17c3d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -39,6 +62,8 @@ public class V1beta2NonResourcePolicyRule { @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList<>(); + public V1beta2NonResourcePolicyRule() { + } public V1beta2NonResourcePolicyRule nonResourceURLs(List nonResourceURLs) { @@ -47,6 +72,9 @@ public V1beta2NonResourcePolicyRule nonResourceURLs(List nonResourceURLs } public V1beta2NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList<>(); + } this.nonResourceURLs.add(nonResourceURLsItem); return this; } @@ -55,8 +83,7 @@ public V1beta2NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURL * `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. * @return nonResourceURLs **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public List getNonResourceURLs() { return nonResourceURLs; } @@ -74,6 +101,9 @@ public V1beta2NonResourcePolicyRule verbs(List verbs) { } public V1beta2NonResourcePolicyRule addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } this.verbs.add(verbsItem); return this; } @@ -82,8 +112,7 @@ public V1beta2NonResourcePolicyRule addVerbsItem(String verbsItem) { * `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. * @return verbs **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public List getVerbs() { return verbs; } @@ -94,8 +123,9 @@ public void setVerbs(List verbs) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -112,7 +142,6 @@ public int hashCode() { return Objects.hash(nonResourceURLs, verbs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,11 +156,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nonResourceURLs"); + openapiFields.add("verbs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("nonResourceURLs"); + openapiRequiredFields.add("verbs"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2NonResourcePolicyRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2NonResourcePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2NonResourcePolicyRule is not found in the empty JSON string", V1beta2NonResourcePolicyRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2NonResourcePolicyRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2NonResourcePolicyRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2NonResourcePolicyRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("nonResourceURLs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("nonResourceURLs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nonResourceURLs` to be an array in the JSON string but got `%s`", jsonObj.get("nonResourceURLs").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2NonResourcePolicyRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2NonResourcePolicyRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2NonResourcePolicyRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2NonResourcePolicyRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2NonResourcePolicyRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2NonResourcePolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2NonResourcePolicyRule + * @throws IOException if the JSON string is invalid with respect to V1beta2NonResourcePolicyRule + */ + public static V1beta2NonResourcePolicyRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2NonResourcePolicyRule.class); + } + + /** + * Convert an instance of V1beta2NonResourcePolicyRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java index cf3ccfbb0c..03c76291c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule; import io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule; import io.kubernetes.client.openapi.models.V1beta2Subject; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -36,16 +59,18 @@ public class V1beta2PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) - private List nonResourceRules = null; + private List nonResourceRules; public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) - private List resourceRules = null; + private List resourceRules; public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) private List subjects = new ArrayList<>(); + public V1beta2PolicyRulesWithSubjects() { + } public V1beta2PolicyRulesWithSubjects nonResourceRules(List nonResourceRules) { @@ -65,9 +90,7 @@ public V1beta2PolicyRulesWithSubjects addNonResourceRulesItem(V1beta2NonResource * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. * @return nonResourceRules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.") - + @jakarta.annotation.Nullable public List getNonResourceRules() { return nonResourceRules; } @@ -96,9 +119,7 @@ public V1beta2PolicyRulesWithSubjects addResourceRulesItem(V1beta2ResourcePolicy * `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. * @return resourceRules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public List getResourceRules() { return resourceRules; } @@ -116,6 +137,9 @@ public V1beta2PolicyRulesWithSubjects subjects(List subjects) { } public V1beta2PolicyRulesWithSubjects addSubjectsItem(V1beta2Subject subjectsItem) { + if (this.subjects == null) { + this.subjects = new ArrayList<>(); + } this.subjects.add(subjectsItem); return this; } @@ -124,8 +148,7 @@ public V1beta2PolicyRulesWithSubjects addSubjectsItem(V1beta2Subject subjectsIte * 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. * @return subjects **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getSubjects() { return subjects; } @@ -136,8 +159,9 @@ public void setSubjects(List subjects) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -155,7 +179,6 @@ public int hashCode() { return Objects.hash(nonResourceRules, resourceRules, subjects); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -171,11 +194,142 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nonResourceRules"); + openapiFields.add("resourceRules"); + openapiFields.add("subjects"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("subjects"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2PolicyRulesWithSubjects + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2PolicyRulesWithSubjects.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2PolicyRulesWithSubjects is not found in the empty JSON string", V1beta2PolicyRulesWithSubjects.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2PolicyRulesWithSubjects.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2PolicyRulesWithSubjects` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2PolicyRulesWithSubjects.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("nonResourceRules") != null && !jsonObj.get("nonResourceRules").isJsonNull()) { + JsonArray jsonArraynonResourceRules = jsonObj.getAsJsonArray("nonResourceRules"); + if (jsonArraynonResourceRules != null) { + // ensure the json data is an array + if (!jsonObj.get("nonResourceRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nonResourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("nonResourceRules").toString())); + } + + // validate the optional field `nonResourceRules` (array) + for (int i = 0; i < jsonArraynonResourceRules.size(); i++) { + V1beta2NonResourcePolicyRule.validateJsonObject(jsonArraynonResourceRules.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("resourceRules") != null && !jsonObj.get("resourceRules").isJsonNull()) { + JsonArray jsonArrayresourceRules = jsonObj.getAsJsonArray("resourceRules"); + if (jsonArrayresourceRules != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("resourceRules").toString())); + } + + // validate the optional field `resourceRules` (array) + for (int i = 0; i < jsonArrayresourceRules.size(); i++) { + V1beta2ResourcePolicyRule.validateJsonObject(jsonArrayresourceRules.get(i).getAsJsonObject()); + }; + } + } + // ensure the json data is an array + if (!jsonObj.get("subjects").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `subjects` to be an array in the JSON string but got `%s`", jsonObj.get("subjects").toString())); + } + + JsonArray jsonArraysubjects = jsonObj.getAsJsonArray("subjects"); + // validate the required field `subjects` (array) + for (int i = 0; i < jsonArraysubjects.size(); i++) { + V1beta2Subject.validateJsonObject(jsonArraysubjects.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2PolicyRulesWithSubjects.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2PolicyRulesWithSubjects' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2PolicyRulesWithSubjects.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2PolicyRulesWithSubjects value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2PolicyRulesWithSubjects read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2PolicyRulesWithSubjects given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2PolicyRulesWithSubjects + * @throws IOException if the JSON string is invalid with respect to V1beta2PolicyRulesWithSubjects + */ + public static V1beta2PolicyRulesWithSubjects fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2PolicyRulesWithSubjects.class); + } + + /** + * Convert an instance of V1beta2PolicyRulesWithSubjects to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java index 4965c007ef..6caceff867 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec; import io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfiguration represents the configuration of a priority level. */ @@ -52,6 +75,8 @@ public class V1beta2PriorityLevelConfiguration implements io.kubernetes.client.c @SerializedName(SERIALIZED_NAME_STATUS) private V1beta2PriorityLevelConfigurationStatus status; + public V1beta2PriorityLevelConfiguration() { + } public V1beta2PriorityLevelConfiguration apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1beta2PriorityLevelConfiguration apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1beta2PriorityLevelConfiguration kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1beta2PriorityLevelConfiguration metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1beta2PriorityLevelConfiguration spec(V1beta2PriorityLevelConfigurationS * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2PriorityLevelConfigurationSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1beta2PriorityLevelConfiguration status(V1beta2PriorityLevelConfiguratio * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2PriorityLevelConfigurationStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1beta2PriorityLevelConfigurationStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2PriorityLevelConfiguration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2PriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2PriorityLevelConfiguration is not found in the empty JSON string", V1beta2PriorityLevelConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2PriorityLevelConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2PriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta2PriorityLevelConfigurationSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1beta2PriorityLevelConfigurationStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2PriorityLevelConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2PriorityLevelConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2PriorityLevelConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2PriorityLevelConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2PriorityLevelConfiguration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2PriorityLevelConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2PriorityLevelConfiguration + * @throws IOException if the JSON string is invalid with respect to V1beta2PriorityLevelConfiguration + */ + public static V1beta2PriorityLevelConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2PriorityLevelConfiguration.class); + } + + /** + * Convert an instance of V1beta2PriorityLevelConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java index aaab344768..7e85af7c90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationCondition defines the condition of priority level. */ @@ -50,6 +73,8 @@ public class V1beta2PriorityLevelConfigurationCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta2PriorityLevelConfigurationCondition() { + } public V1beta2PriorityLevelConfigurationCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1beta2PriorityLevelConfigurationCondition lastTransitionTime(OffsetDateT * `lastTransitionTime` is the last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1beta2PriorityLevelConfigurationCondition message(String message) { * `message` is a human-readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1beta2PriorityLevelConfigurationCondition reason(String reason) { * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,9 +149,7 @@ public V1beta2PriorityLevelConfigurationCondition status(String status) { * `status` is the status of the condition. Can be True, False, Unknown. Required. * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") - + @jakarta.annotation.Nullable public String getStatus() { return status; } @@ -153,9 +170,7 @@ public V1beta2PriorityLevelConfigurationCondition type(String type) { * `type` is the type of the condition. Required. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`type` is the type of the condition. Required.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -166,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -187,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +220,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2PriorityLevelConfigurationCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2PriorityLevelConfigurationCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2PriorityLevelConfigurationCondition is not found in the empty JSON string", V1beta2PriorityLevelConfigurationCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2PriorityLevelConfigurationCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2PriorityLevelConfigurationCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2PriorityLevelConfigurationCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2PriorityLevelConfigurationCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2PriorityLevelConfigurationCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2PriorityLevelConfigurationCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2PriorityLevelConfigurationCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2PriorityLevelConfigurationCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2PriorityLevelConfigurationCondition + * @throws IOException if the JSON string is invalid with respect to V1beta2PriorityLevelConfigurationCondition + */ + public static V1beta2PriorityLevelConfigurationCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2PriorityLevelConfigurationCondition.class); + } + + /** + * Convert an instance of V1beta2PriorityLevelConfigurationCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java index 13c2f0205f..93057f115d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. */ @@ -49,6 +72,8 @@ public class V1beta2PriorityLevelConfigurationList implements io.kubernetes.clie @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1beta2PriorityLevelConfigurationList() { + } public V1beta2PriorityLevelConfigurationList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1beta2PriorityLevelConfigurationList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1beta2PriorityLevelConfigurationList items(List(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1beta2PriorityLevelConfigurationList addItemsItem(V1beta2PriorityLevelCo * `items` is a list of request-priorities. * @return items **/ - @ApiModelProperty(required = true, value = "`items` is a list of request-priorities.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1beta2PriorityLevelConfigurationList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1beta2PriorityLevelConfigurationList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2PriorityLevelConfigurationList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2PriorityLevelConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2PriorityLevelConfigurationList is not found in the empty JSON string", V1beta2PriorityLevelConfigurationList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2PriorityLevelConfigurationList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2PriorityLevelConfigurationList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2PriorityLevelConfigurationList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1beta2PriorityLevelConfiguration.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2PriorityLevelConfigurationList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2PriorityLevelConfigurationList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2PriorityLevelConfigurationList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2PriorityLevelConfigurationList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2PriorityLevelConfigurationList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2PriorityLevelConfigurationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2PriorityLevelConfigurationList + * @throws IOException if the JSON string is invalid with respect to V1beta2PriorityLevelConfigurationList + */ + public static V1beta2PriorityLevelConfigurationList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2PriorityLevelConfigurationList.class); + } + + /** + * Convert an instance of V1beta2PriorityLevelConfigurationList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java index 0d8b7bf6e9..0dec647978 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. */ @@ -33,6 +56,8 @@ public class V1beta2PriorityLevelConfigurationReference { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1beta2PriorityLevelConfigurationReference() { + } public V1beta2PriorityLevelConfigurationReference name(String name) { @@ -44,8 +69,7 @@ public V1beta2PriorityLevelConfigurationReference name(String name) { * `name` is the name of the priority level configuration being referenced Required. * @return name **/ - @ApiModelProperty(required = true, value = "`name` is the name of the priority level configuration being referenced Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2PriorityLevelConfigurationReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2PriorityLevelConfigurationReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2PriorityLevelConfigurationReference is not found in the empty JSON string", V1beta2PriorityLevelConfigurationReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2PriorityLevelConfigurationReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2PriorityLevelConfigurationReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2PriorityLevelConfigurationReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2PriorityLevelConfigurationReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2PriorityLevelConfigurationReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2PriorityLevelConfigurationReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2PriorityLevelConfigurationReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2PriorityLevelConfigurationReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2PriorityLevelConfigurationReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2PriorityLevelConfigurationReference + * @throws IOException if the JSON string is invalid with respect to V1beta2PriorityLevelConfigurationReference + */ + public static V1beta2PriorityLevelConfigurationReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2PriorityLevelConfigurationReference.class); + } + + /** + * Convert an instance of V1beta2PriorityLevelConfigurationReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java index b407e4b327..692cf7c089 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta2ExemptPriorityLevelConfiguration; import io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationSpec specifies the configuration of a priority level. */ @@ -43,6 +66,29 @@ public class V1beta2PriorityLevelConfigurationSpec { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta2PriorityLevelConfigurationSpec() { + } + + public V1beta2PriorityLevelConfigurationSpec exempt(V1beta2ExemptPriorityLevelConfiguration exempt) { + + this.exempt = exempt; + return this; + } + + /** + * Get exempt + * @return exempt + **/ + @jakarta.annotation.Nullable + public V1beta2ExemptPriorityLevelConfiguration getExempt() { + return exempt; + } + + + public void setExempt(V1beta2ExemptPriorityLevelConfiguration exempt) { + this.exempt = exempt; + } + public V1beta2PriorityLevelConfigurationSpec exempt(V1beta2ExemptPriorityLevelConfiguration exempt) { @@ -77,9 +123,7 @@ public V1beta2PriorityLevelConfigurationSpec limited(V1beta2LimitedPriorityLevel * Get limited * @return limited **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2LimitedPriorityLevelConfiguration getLimited() { return limited; } @@ -100,8 +144,7 @@ public V1beta2PriorityLevelConfigurationSpec type(String type) { * `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. * @return type **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -112,8 +155,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -131,7 +175,6 @@ public int hashCode() { return Objects.hash(exempt, limited, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -147,11 +190,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("exempt"); + openapiFields.add("limited"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2PriorityLevelConfigurationSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2PriorityLevelConfigurationSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2PriorityLevelConfigurationSpec is not found in the empty JSON string", V1beta2PriorityLevelConfigurationSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2PriorityLevelConfigurationSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2PriorityLevelConfigurationSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2PriorityLevelConfigurationSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `exempt` + if (jsonObj.get("exempt") != null && !jsonObj.get("exempt").isJsonNull()) { + V1beta2ExemptPriorityLevelConfiguration.validateJsonObject(jsonObj.getAsJsonObject("exempt")); + } + // validate the optional field `limited` + if (jsonObj.get("limited") != null && !jsonObj.get("limited").isJsonNull()) { + V1beta2LimitedPriorityLevelConfiguration.validateJsonObject(jsonObj.getAsJsonObject("limited")); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2PriorityLevelConfigurationSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2PriorityLevelConfigurationSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2PriorityLevelConfigurationSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2PriorityLevelConfigurationSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2PriorityLevelConfigurationSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2PriorityLevelConfigurationSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2PriorityLevelConfigurationSpec + * @throws IOException if the JSON string is invalid with respect to V1beta2PriorityLevelConfigurationSpec + */ + public static V1beta2PriorityLevelConfigurationSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2PriorityLevelConfigurationSpec.class); + } + + /** + * Convert an instance of V1beta2PriorityLevelConfigurationSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java index 8368454a98..7a725bf9a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". */ @@ -34,8 +57,10 @@ public class V1beta2PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; + public V1beta2PriorityLevelConfigurationStatus() { + } public V1beta2PriorityLevelConfigurationStatus conditions(List conditions) { @@ -55,9 +80,7 @@ public V1beta2PriorityLevelConfigurationStatus addConditionsItem(V1beta2Priority * `conditions` is the current state of \"request-priority\". * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`conditions` is the current state of \"request-priority\".") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -68,8 +91,9 @@ public void setConditions(List condi } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(conditions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2PriorityLevelConfigurationStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2PriorityLevelConfigurationStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2PriorityLevelConfigurationStatus is not found in the empty JSON string", V1beta2PriorityLevelConfigurationStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2PriorityLevelConfigurationStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2PriorityLevelConfigurationStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1beta2PriorityLevelConfigurationCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2PriorityLevelConfigurationStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2PriorityLevelConfigurationStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2PriorityLevelConfigurationStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2PriorityLevelConfigurationStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2PriorityLevelConfigurationStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2PriorityLevelConfigurationStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2PriorityLevelConfigurationStatus + * @throws IOException if the JSON string is invalid with respect to V1beta2PriorityLevelConfigurationStatus + */ + public static V1beta2PriorityLevelConfigurationStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2PriorityLevelConfigurationStatus.class); + } + + /** + * Convert an instance of V1beta2PriorityLevelConfigurationStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java index ae016cd74a..2461493c0c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * QueuingConfiguration holds the configuration parameters for queuing */ @@ -41,6 +64,8 @@ public class V1beta2QueuingConfiguration { @SerializedName(SERIALIZED_NAME_QUEUES) private Integer queues; + public V1beta2QueuingConfiguration() { + } public V1beta2QueuingConfiguration handSize(Integer handSize) { @@ -52,9 +77,7 @@ public V1beta2QueuingConfiguration handSize(Integer handSize) { * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. * @return handSize **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getHandSize() { return handSize; } @@ -75,9 +98,7 @@ public V1beta2QueuingConfiguration queueLengthLimit(Integer queueLengthLimit) { * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. * @return queueLengthLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getQueueLengthLimit() { return queueLengthLimit; } @@ -98,9 +119,7 @@ public V1beta2QueuingConfiguration queues(Integer queues) { * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. * @return queues **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getQueues() { return queues; } @@ -111,8 +130,9 @@ public void setQueues(Integer queues) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +150,6 @@ public int hashCode() { return Objects.hash(handSize, queueLengthLimit, queues); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +165,96 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("handSize"); + openapiFields.add("queueLengthLimit"); + openapiFields.add("queues"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2QueuingConfiguration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2QueuingConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2QueuingConfiguration is not found in the empty JSON string", V1beta2QueuingConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2QueuingConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2QueuingConfiguration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2QueuingConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2QueuingConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2QueuingConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2QueuingConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2QueuingConfiguration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2QueuingConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2QueuingConfiguration + * @throws IOException if the JSON string is invalid with respect to V1beta2QueuingConfiguration + */ + public static V1beta2QueuingConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2QueuingConfiguration.class); + } + + /** + * Convert an instance of V1beta2QueuingConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java index 106e1a707e..8ba91382ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -41,7 +64,7 @@ public class V1beta2ResourcePolicyRule { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = null; + private List namespaces; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) @@ -51,6 +74,8 @@ public class V1beta2ResourcePolicyRule { @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList<>(); + public V1beta2ResourcePolicyRule() { + } public V1beta2ResourcePolicyRule apiGroups(List apiGroups) { @@ -59,6 +84,9 @@ public V1beta2ResourcePolicyRule apiGroups(List apiGroups) { } public V1beta2ResourcePolicyRule addApiGroupsItem(String apiGroupsItem) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList<>(); + } this.apiGroups.add(apiGroupsItem); return this; } @@ -67,8 +95,7 @@ public V1beta2ResourcePolicyRule addApiGroupsItem(String apiGroupsItem) { * `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. * @return apiGroups **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public List getApiGroups() { return apiGroups; } @@ -89,9 +116,7 @@ public V1beta2ResourcePolicyRule clusterScope(Boolean clusterScope) { * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. * @return clusterScope **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Boolean getClusterScope() { return clusterScope; } @@ -120,9 +145,7 @@ public V1beta2ResourcePolicyRule addNamespacesItem(String namespacesItem) { * `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. * @return namespaces **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public List getNamespaces() { return namespaces; } @@ -140,6 +163,9 @@ public V1beta2ResourcePolicyRule resources(List resources) { } public V1beta2ResourcePolicyRule addResourcesItem(String resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } this.resources.add(resourcesItem); return this; } @@ -148,8 +174,7 @@ public V1beta2ResourcePolicyRule addResourcesItem(String resourcesItem) { * `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. * @return resources **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public List getResources() { return resources; } @@ -167,6 +192,9 @@ public V1beta2ResourcePolicyRule verbs(List verbs) { } public V1beta2ResourcePolicyRule addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } this.verbs.add(verbsItem); return this; } @@ -175,8 +203,7 @@ public V1beta2ResourcePolicyRule addVerbsItem(String verbsItem) { * `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. * @return verbs **/ - @ApiModelProperty(required = true, value = "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.") - + @jakarta.annotation.Nonnull public List getVerbs() { return verbs; } @@ -187,8 +214,9 @@ public void setVerbs(List verbs) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -208,7 +236,6 @@ public int hashCode() { return Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -226,11 +253,130 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroups"); + openapiFields.add("clusterScope"); + openapiFields.add("namespaces"); + openapiFields.add("resources"); + openapiFields.add("verbs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("apiGroups"); + openapiRequiredFields.add("resources"); + openapiRequiredFields.add("verbs"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2ResourcePolicyRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2ResourcePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourcePolicyRule is not found in the empty JSON string", V1beta2ResourcePolicyRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2ResourcePolicyRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourcePolicyRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2ResourcePolicyRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("apiGroups") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("apiGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroups` to be an array in the JSON string but got `%s`", jsonObj.get("apiGroups").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); + } + // ensure the required json array is present + if (jsonObj.get("resources") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2ResourcePolicyRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2ResourcePolicyRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2ResourcePolicyRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2ResourcePolicyRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2ResourcePolicyRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2ResourcePolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2ResourcePolicyRule + * @throws IOException if the JSON string is invalid with respect to V1beta2ResourcePolicyRule + */ + public static V1beta2ResourcePolicyRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2ResourcePolicyRule.class); + } + + /** + * Convert an instance of V1beta2ResourcePolicyRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java index f2f1d28cf7..2f6a6718cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceAccountSubject holds detailed information for service-account-kind subject. */ @@ -37,6 +60,8 @@ public class V1beta2ServiceAccountSubject { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; + public V1beta2ServiceAccountSubject() { + } public V1beta2ServiceAccountSubject name(String name) { @@ -48,8 +73,7 @@ public V1beta2ServiceAccountSubject name(String name) { * `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. * @return name **/ - @ApiModelProperty(required = true, value = "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -70,8 +94,7 @@ public V1beta2ServiceAccountSubject namespace(String namespace) { * `namespace` is the namespace of matching ServiceAccount objects. Required. * @return namespace **/ - @ApiModelProperty(required = true, value = "`namespace` is the namespace of matching ServiceAccount objects. Required.") - + @jakarta.annotation.Nonnull public String getNamespace() { return namespace; } @@ -82,8 +105,9 @@ public void setNamespace(String namespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(name, namespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("namespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("namespace"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2ServiceAccountSubject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2ServiceAccountSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ServiceAccountSubject is not found in the empty JSON string", V1beta2ServiceAccountSubject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2ServiceAccountSubject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ServiceAccountSubject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2ServiceAccountSubject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2ServiceAccountSubject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2ServiceAccountSubject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2ServiceAccountSubject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2ServiceAccountSubject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2ServiceAccountSubject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2ServiceAccountSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2ServiceAccountSubject + * @throws IOException if the JSON string is invalid with respect to V1beta2ServiceAccountSubject + */ + public static V1beta2ServiceAccountSubject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2ServiceAccountSubject.class); + } + + /** + * Convert an instance of V1beta2ServiceAccountSubject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java index 76b714b070..82486e74b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1beta2GroupSubject; import io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject; import io.kubernetes.client.openapi.models.V1beta2UserSubject; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -48,6 +71,8 @@ public class V1beta2Subject { @SerializedName(SERIALIZED_NAME_USER) private V1beta2UserSubject user; + public V1beta2Subject() { + } public V1beta2Subject group(V1beta2GroupSubject group) { @@ -59,9 +84,7 @@ public V1beta2Subject group(V1beta2GroupSubject group) { * Get group * @return group **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2GroupSubject getGroup() { return group; } @@ -82,8 +105,7 @@ public V1beta2Subject kind(String kind) { * `kind` indicates which one of the other fields is non-empty. Required * @return kind **/ - @ApiModelProperty(required = true, value = "`kind` indicates which one of the other fields is non-empty. Required") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -104,9 +126,7 @@ public V1beta2Subject serviceAccount(V1beta2ServiceAccountSubject serviceAccount * Get serviceAccount * @return serviceAccount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2ServiceAccountSubject getServiceAccount() { return serviceAccount; } @@ -127,9 +147,7 @@ public V1beta2Subject user(V1beta2UserSubject user) { * Get user * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta2UserSubject getUser() { return user; } @@ -140,8 +158,9 @@ public void setUser(V1beta2UserSubject user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +179,6 @@ public int hashCode() { return Objects.hash(group, kind, serviceAccount, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +195,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("group"); + openapiFields.add("kind"); + openapiFields.add("serviceAccount"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2Subject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2Subject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2Subject is not found in the empty JSON string", V1beta2Subject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2Subject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2Subject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2Subject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `group` + if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { + V1beta2GroupSubject.validateJsonObject(jsonObj.getAsJsonObject("group")); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `serviceAccount` + if (jsonObj.get("serviceAccount") != null && !jsonObj.get("serviceAccount").isJsonNull()) { + V1beta2ServiceAccountSubject.validateJsonObject(jsonObj.getAsJsonObject("serviceAccount")); + } + // validate the optional field `user` + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { + V1beta2UserSubject.validateJsonObject(jsonObj.getAsJsonObject("user")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2Subject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2Subject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2Subject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2Subject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2Subject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2Subject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2Subject + * @throws IOException if the JSON string is invalid with respect to V1beta2Subject + */ + public static V1beta2Subject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2Subject.class); + } + + /** + * Convert an instance of V1beta2Subject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java index 1a7180056c..abe26acf1f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * UserSubject holds detailed information for user-kind subject. */ @@ -33,6 +56,8 @@ public class V1beta2UserSubject { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1beta2UserSubject() { + } public V1beta2UserSubject name(String name) { @@ -44,8 +69,7 @@ public V1beta2UserSubject name(String name) { * `name` is the username that matches, or \"*\" to match all usernames. Required. * @return name **/ - @ApiModelProperty(required = true, value = "`name` is the username that matches, or \"*\" to match all usernames. Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta2UserSubject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta2UserSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2UserSubject is not found in the empty JSON string", V1beta2UserSubject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta2UserSubject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2UserSubject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2UserSubject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2UserSubject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2UserSubject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2UserSubject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2UserSubject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2UserSubject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2UserSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2UserSubject + * @throws IOException if the JSON string is invalid with respect to V1beta2UserSubject + */ + public static V1beta2UserSubject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2UserSubject.class); + } + + /** + * Convert an instance of V1beta2UserSubject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java index a2d8f8dfe7..b3aea8cea1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowDistinguisherMethod specifies the method of a flow distinguisher. */ @@ -33,6 +56,8 @@ public class V1beta3FlowDistinguisherMethod { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta3FlowDistinguisherMethod() { + } public V1beta3FlowDistinguisherMethod type(String type) { @@ -44,8 +69,7 @@ public V1beta3FlowDistinguisherMethod type(String type) { * `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. * @return type **/ - @ApiModelProperty(required = true, value = "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -56,8 +80,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3FlowDistinguisherMethod + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3FlowDistinguisherMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3FlowDistinguisherMethod is not found in the empty JSON string", V1beta3FlowDistinguisherMethod.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3FlowDistinguisherMethod.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3FlowDistinguisherMethod` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3FlowDistinguisherMethod.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3FlowDistinguisherMethod.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3FlowDistinguisherMethod' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3FlowDistinguisherMethod.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3FlowDistinguisherMethod value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3FlowDistinguisherMethod read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3FlowDistinguisherMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3FlowDistinguisherMethod + * @throws IOException if the JSON string is invalid with respect to V1beta3FlowDistinguisherMethod + */ + public static V1beta3FlowDistinguisherMethod fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3FlowDistinguisherMethod.class); + } + + /** + * Convert an instance of V1beta3FlowDistinguisherMethod to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java index 5166f9cf1d..366c04f0b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta3FlowSchemaSpec; import io.kubernetes.client.openapi.models.V1beta3FlowSchemaStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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\". */ @@ -52,6 +75,8 @@ public class V1beta3FlowSchema implements io.kubernetes.client.common.Kubernetes @SerializedName(SERIALIZED_NAME_STATUS) private V1beta3FlowSchemaStatus status; + public V1beta3FlowSchema() { + } public V1beta3FlowSchema apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1beta3FlowSchema apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1beta3FlowSchema kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1beta3FlowSchema metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1beta3FlowSchema spec(V1beta3FlowSchemaSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3FlowSchemaSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1beta3FlowSchema status(V1beta3FlowSchemaStatus status) { * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3FlowSchemaStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1beta3FlowSchemaStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3FlowSchema + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3FlowSchema.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3FlowSchema is not found in the empty JSON string", V1beta3FlowSchema.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3FlowSchema.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3FlowSchema` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta3FlowSchemaSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1beta3FlowSchemaStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3FlowSchema.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3FlowSchema' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3FlowSchema.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3FlowSchema value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3FlowSchema read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3FlowSchema given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3FlowSchema + * @throws IOException if the JSON string is invalid with respect to V1beta3FlowSchema + */ + public static V1beta3FlowSchema fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3FlowSchema.class); + } + + /** + * Convert an instance of V1beta3FlowSchema to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java index 68312be96d..39295f8a2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowSchemaCondition describes conditions for a FlowSchema. */ @@ -50,6 +73,8 @@ public class V1beta3FlowSchemaCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta3FlowSchemaCondition() { + } public V1beta3FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1beta3FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransiti * `lastTransitionTime` is the last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1beta3FlowSchemaCondition message(String message) { * `message` is a human-readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1beta3FlowSchemaCondition reason(String reason) { * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,9 +149,7 @@ public V1beta3FlowSchemaCondition status(String status) { * `status` is the status of the condition. Can be True, False, Unknown. Required. * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") - + @jakarta.annotation.Nullable public String getStatus() { return status; } @@ -153,9 +170,7 @@ public V1beta3FlowSchemaCondition type(String type) { * `type` is the type of the condition. Required. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`type` is the type of the condition. Required.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -166,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -187,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +220,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3FlowSchemaCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3FlowSchemaCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3FlowSchemaCondition is not found in the empty JSON string", V1beta3FlowSchemaCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3FlowSchemaCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3FlowSchemaCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3FlowSchemaCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3FlowSchemaCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3FlowSchemaCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3FlowSchemaCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3FlowSchemaCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3FlowSchemaCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3FlowSchemaCondition + * @throws IOException if the JSON string is invalid with respect to V1beta3FlowSchemaCondition + */ + public static V1beta3FlowSchemaCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3FlowSchemaCondition.class); + } + + /** + * Convert an instance of V1beta3FlowSchemaCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java index 65de65e287..564cf78473 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta3FlowSchema; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowSchemaList is a list of FlowSchema objects. */ @@ -49,6 +72,8 @@ public class V1beta3FlowSchemaList implements io.kubernetes.client.common.Kubern @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1beta3FlowSchemaList() { + } public V1beta3FlowSchemaList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1beta3FlowSchemaList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1beta3FlowSchemaList items(List items) { } public V1beta3FlowSchemaList addItemsItem(V1beta3FlowSchema itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1beta3FlowSchemaList addItemsItem(V1beta3FlowSchema itemsItem) { * `items` is a list of FlowSchemas. * @return items **/ - @ApiModelProperty(required = true, value = "`items` is a list of FlowSchemas.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1beta3FlowSchemaList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1beta3FlowSchemaList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3FlowSchemaList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3FlowSchemaList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3FlowSchemaList is not found in the empty JSON string", V1beta3FlowSchemaList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3FlowSchemaList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3FlowSchemaList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3FlowSchemaList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1beta3FlowSchema.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3FlowSchemaList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3FlowSchemaList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3FlowSchemaList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3FlowSchemaList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3FlowSchemaList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3FlowSchemaList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3FlowSchemaList + * @throws IOException if the JSON string is invalid with respect to V1beta3FlowSchemaList + */ + public static V1beta3FlowSchemaList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3FlowSchemaList.class); + } + + /** + * Convert an instance of V1beta3FlowSchemaList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java index cf45f33dfe..0091788aca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1beta3FlowDistinguisherMethod; import io.kubernetes.client.openapi.models.V1beta3PolicyRulesWithSubjects; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowSchemaSpec describes how the FlowSchema's specification looks like. */ @@ -48,8 +71,10 @@ public class V1beta3FlowSchemaSpec { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) - private List rules = null; + private List rules; + public V1beta3FlowSchemaSpec() { + } public V1beta3FlowSchemaSpec distinguisherMethod(V1beta3FlowDistinguisherMethod distinguisherMethod) { @@ -61,9 +86,7 @@ public V1beta3FlowSchemaSpec distinguisherMethod(V1beta3FlowDistinguisherMethod * Get distinguisherMethod * @return distinguisherMethod **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3FlowDistinguisherMethod getDistinguisherMethod() { return distinguisherMethod; } @@ -84,9 +107,7 @@ public V1beta3FlowSchemaSpec matchingPrecedence(Integer matchingPrecedence) { * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. * @return matchingPrecedence **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getMatchingPrecedence() { return matchingPrecedence; } @@ -107,8 +128,7 @@ public V1beta3FlowSchemaSpec priorityLevelConfiguration(V1beta3PriorityLevelConf * Get priorityLevelConfiguration * @return priorityLevelConfiguration **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V1beta3PriorityLevelConfigurationReference getPriorityLevelConfiguration() { return priorityLevelConfiguration; } @@ -137,9 +157,7 @@ public V1beta3FlowSchemaSpec addRulesItem(V1beta3PolicyRulesWithSubjects rulesIt * `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. * @return rules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public List getRules() { return rules; } @@ -150,8 +168,9 @@ public void setRules(List rules) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -170,7 +189,6 @@ public int hashCode() { return Objects.hash(distinguisherMethod, matchingPrecedence, priorityLevelConfiguration, rules); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,11 +205,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("distinguisherMethod"); + openapiFields.add("matchingPrecedence"); + openapiFields.add("priorityLevelConfiguration"); + openapiFields.add("rules"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("priorityLevelConfiguration"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3FlowSchemaSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3FlowSchemaSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3FlowSchemaSpec is not found in the empty JSON string", V1beta3FlowSchemaSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3FlowSchemaSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3FlowSchemaSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3FlowSchemaSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `distinguisherMethod` + if (jsonObj.get("distinguisherMethod") != null && !jsonObj.get("distinguisherMethod").isJsonNull()) { + V1beta3FlowDistinguisherMethod.validateJsonObject(jsonObj.getAsJsonObject("distinguisherMethod")); + } + // validate the required field `priorityLevelConfiguration` + V1beta3PriorityLevelConfigurationReference.validateJsonObject(jsonObj.getAsJsonObject("priorityLevelConfiguration")); + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + V1beta3PolicyRulesWithSubjects.validateJsonObject(jsonArrayrules.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3FlowSchemaSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3FlowSchemaSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3FlowSchemaSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3FlowSchemaSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3FlowSchemaSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3FlowSchemaSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3FlowSchemaSpec + * @throws IOException if the JSON string is invalid with respect to V1beta3FlowSchemaSpec + */ + public static V1beta3FlowSchemaSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3FlowSchemaSpec.class); + } + + /** + * Convert an instance of V1beta3FlowSchemaSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java index ca56d2ea60..f6db20fa3e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3FlowSchemaCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * FlowSchemaStatus represents the current state of a FlowSchema. */ @@ -34,8 +57,10 @@ public class V1beta3FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; + public V1beta3FlowSchemaStatus() { + } public V1beta3FlowSchemaStatus conditions(List conditions) { @@ -55,9 +80,7 @@ public V1beta3FlowSchemaStatus addConditionsItem(V1beta3FlowSchemaCondition cond * `conditions` is a list of the current states of FlowSchema. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`conditions` is a list of the current states of FlowSchema.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -68,8 +91,9 @@ public void setConditions(List conditions) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(conditions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3FlowSchemaStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3FlowSchemaStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3FlowSchemaStatus is not found in the empty JSON string", V1beta3FlowSchemaStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3FlowSchemaStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3FlowSchemaStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1beta3FlowSchemaCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3FlowSchemaStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3FlowSchemaStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3FlowSchemaStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3FlowSchemaStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3FlowSchemaStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3FlowSchemaStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3FlowSchemaStatus + * @throws IOException if the JSON string is invalid with respect to V1beta3FlowSchemaStatus + */ + public static V1beta3FlowSchemaStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3FlowSchemaStatus.class); + } + + /** + * Convert an instance of V1beta3FlowSchemaStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java index 4f2bc34d01..90497fe508 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * GroupSubject holds detailed information for group-kind subject. */ @@ -33,6 +56,8 @@ public class V1beta3GroupSubject { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1beta3GroupSubject() { + } public V1beta3GroupSubject name(String name) { @@ -44,8 +69,7 @@ public V1beta3GroupSubject name(String name) { * name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. * @return name **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3GroupSubject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3GroupSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3GroupSubject is not found in the empty JSON string", V1beta3GroupSubject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3GroupSubject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3GroupSubject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3GroupSubject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3GroupSubject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3GroupSubject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3GroupSubject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3GroupSubject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3GroupSubject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3GroupSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3GroupSubject + * @throws IOException if the JSON string is invalid with respect to V1beta3GroupSubject + */ + public static V1beta3GroupSubject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3GroupSubject.class); + } + + /** + * Convert an instance of V1beta3GroupSubject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java index 761265609c..420c370b6c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3QueuingConfiguration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * LimitResponse defines how to handle requests that can not be executed right now. */ @@ -38,6 +61,8 @@ public class V1beta3LimitResponse { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta3LimitResponse() { + } public V1beta3LimitResponse queuing(V1beta3QueuingConfiguration queuing) { @@ -49,9 +74,7 @@ public V1beta3LimitResponse queuing(V1beta3QueuingConfiguration queuing) { * Get queuing * @return queuing **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3QueuingConfiguration getQueuing() { return queuing; } @@ -72,8 +95,7 @@ public V1beta3LimitResponse type(String type) { * `type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required. * @return type **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -84,8 +106,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +125,6 @@ public int hashCode() { return Objects.hash(queuing, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +139,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("queuing"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3LimitResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3LimitResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3LimitResponse is not found in the empty JSON string", V1beta3LimitResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3LimitResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3LimitResponse` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3LimitResponse.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `queuing` + if (jsonObj.get("queuing") != null && !jsonObj.get("queuing").isJsonNull()) { + V1beta3QueuingConfiguration.validateJsonObject(jsonObj.getAsJsonObject("queuing")); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3LimitResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3LimitResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3LimitResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3LimitResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3LimitResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3LimitResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3LimitResponse + * @throws IOException if the JSON string is invalid with respect to V1beta3LimitResponse + */ + public static V1beta3LimitResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3LimitResponse.class); + } + + /** + * Convert an instance of V1beta3LimitResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java index edaedd9399..7257255b30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3LimitResponse; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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? */ @@ -46,6 +69,8 @@ public class V1beta3LimitedPriorityLevelConfiguration { @SerializedName(SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES) private Integer nominalConcurrencyShares; + public V1beta3LimitedPriorityLevelConfiguration() { + } public V1beta3LimitedPriorityLevelConfiguration borrowingLimitPercent(Integer borrowingLimitPercent) { @@ -57,9 +82,7 @@ public V1beta3LimitedPriorityLevelConfiguration borrowingLimitPercent(Integer bo * `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. * @return borrowingLimitPercent **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getBorrowingLimitPercent() { return borrowingLimitPercent; } @@ -80,9 +103,7 @@ public V1beta3LimitedPriorityLevelConfiguration lendablePercent(Integer lendable * `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 ) * @return lendablePercent **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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 )") - + @jakarta.annotation.Nullable public Integer getLendablePercent() { return lendablePercent; } @@ -103,9 +124,7 @@ public V1beta3LimitedPriorityLevelConfiguration limitResponse(V1beta3LimitRespon * Get limitResponse * @return limitResponse **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3LimitResponse getLimitResponse() { return limitResponse; } @@ -139,8 +158,9 @@ public void setNominalConcurrencyShares(Integer nominalConcurrencyShares) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -159,7 +179,6 @@ public int hashCode() { return Objects.hash(borrowingLimitPercent, lendablePercent, limitResponse, nominalConcurrencyShares); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -176,11 +195,101 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("borrowingLimitPercent"); + openapiFields.add("lendablePercent"); + openapiFields.add("limitResponse"); + openapiFields.add("nominalConcurrencyShares"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3LimitedPriorityLevelConfiguration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3LimitedPriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3LimitedPriorityLevelConfiguration is not found in the empty JSON string", V1beta3LimitedPriorityLevelConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3LimitedPriorityLevelConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3LimitedPriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `limitResponse` + if (jsonObj.get("limitResponse") != null && !jsonObj.get("limitResponse").isJsonNull()) { + V1beta3LimitResponse.validateJsonObject(jsonObj.getAsJsonObject("limitResponse")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3LimitedPriorityLevelConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3LimitedPriorityLevelConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3LimitedPriorityLevelConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3LimitedPriorityLevelConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3LimitedPriorityLevelConfiguration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3LimitedPriorityLevelConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3LimitedPriorityLevelConfiguration + * @throws IOException if the JSON string is invalid with respect to V1beta3LimitedPriorityLevelConfiguration + */ + public static V1beta3LimitedPriorityLevelConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3LimitedPriorityLevelConfiguration.class); + } + + /** + * Convert an instance of V1beta3LimitedPriorityLevelConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java index ddcd348bb6..31d81f2e46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -39,6 +62,8 @@ public class V1beta3NonResourcePolicyRule { @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList<>(); + public V1beta3NonResourcePolicyRule() { + } public V1beta3NonResourcePolicyRule nonResourceURLs(List nonResourceURLs) { @@ -47,6 +72,9 @@ public V1beta3NonResourcePolicyRule nonResourceURLs(List nonResourceURLs } public V1beta3NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList<>(); + } this.nonResourceURLs.add(nonResourceURLsItem); return this; } @@ -55,8 +83,7 @@ public V1beta3NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURL * `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. * @return nonResourceURLs **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public List getNonResourceURLs() { return nonResourceURLs; } @@ -74,6 +101,9 @@ public V1beta3NonResourcePolicyRule verbs(List verbs) { } public V1beta3NonResourcePolicyRule addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } this.verbs.add(verbsItem); return this; } @@ -82,8 +112,7 @@ public V1beta3NonResourcePolicyRule addVerbsItem(String verbsItem) { * `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. * @return verbs **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public List getVerbs() { return verbs; } @@ -94,8 +123,9 @@ public void setVerbs(List verbs) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -112,7 +142,6 @@ public int hashCode() { return Objects.hash(nonResourceURLs, verbs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,11 +156,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nonResourceURLs"); + openapiFields.add("verbs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("nonResourceURLs"); + openapiRequiredFields.add("verbs"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3NonResourcePolicyRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3NonResourcePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3NonResourcePolicyRule is not found in the empty JSON string", V1beta3NonResourcePolicyRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3NonResourcePolicyRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3NonResourcePolicyRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3NonResourcePolicyRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("nonResourceURLs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("nonResourceURLs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nonResourceURLs` to be an array in the JSON string but got `%s`", jsonObj.get("nonResourceURLs").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3NonResourcePolicyRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3NonResourcePolicyRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3NonResourcePolicyRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3NonResourcePolicyRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3NonResourcePolicyRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3NonResourcePolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3NonResourcePolicyRule + * @throws IOException if the JSON string is invalid with respect to V1beta3NonResourcePolicyRule + */ + public static V1beta3NonResourcePolicyRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3NonResourcePolicyRule.class); + } + + /** + * Convert an instance of V1beta3NonResourcePolicyRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java index 9edfaf7093..e56293df70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V1beta3NonResourcePolicyRule; import io.kubernetes.client.openapi.models.V1beta3ResourcePolicyRule; import io.kubernetes.client.openapi.models.V1beta3Subject; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -36,16 +59,18 @@ public class V1beta3PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) - private List nonResourceRules = null; + private List nonResourceRules; public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) - private List resourceRules = null; + private List resourceRules; public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) private List subjects = new ArrayList<>(); + public V1beta3PolicyRulesWithSubjects() { + } public V1beta3PolicyRulesWithSubjects nonResourceRules(List nonResourceRules) { @@ -65,9 +90,7 @@ public V1beta3PolicyRulesWithSubjects addNonResourceRulesItem(V1beta3NonResource * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. * @return nonResourceRules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.") - + @jakarta.annotation.Nullable public List getNonResourceRules() { return nonResourceRules; } @@ -96,9 +119,7 @@ public V1beta3PolicyRulesWithSubjects addResourceRulesItem(V1beta3ResourcePolicy * `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. * @return resourceRules **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public List getResourceRules() { return resourceRules; } @@ -116,6 +137,9 @@ public V1beta3PolicyRulesWithSubjects subjects(List subjects) { } public V1beta3PolicyRulesWithSubjects addSubjectsItem(V1beta3Subject subjectsItem) { + if (this.subjects == null) { + this.subjects = new ArrayList<>(); + } this.subjects.add(subjectsItem); return this; } @@ -124,8 +148,7 @@ public V1beta3PolicyRulesWithSubjects addSubjectsItem(V1beta3Subject subjectsIte * 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. * @return subjects **/ - @ApiModelProperty(required = true, value = "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.") - + @jakarta.annotation.Nonnull public List getSubjects() { return subjects; } @@ -136,8 +159,9 @@ public void setSubjects(List subjects) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -155,7 +179,6 @@ public int hashCode() { return Objects.hash(nonResourceRules, resourceRules, subjects); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -171,11 +194,142 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("nonResourceRules"); + openapiFields.add("resourceRules"); + openapiFields.add("subjects"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("subjects"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3PolicyRulesWithSubjects + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3PolicyRulesWithSubjects.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3PolicyRulesWithSubjects is not found in the empty JSON string", V1beta3PolicyRulesWithSubjects.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3PolicyRulesWithSubjects.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3PolicyRulesWithSubjects` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3PolicyRulesWithSubjects.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("nonResourceRules") != null && !jsonObj.get("nonResourceRules").isJsonNull()) { + JsonArray jsonArraynonResourceRules = jsonObj.getAsJsonArray("nonResourceRules"); + if (jsonArraynonResourceRules != null) { + // ensure the json data is an array + if (!jsonObj.get("nonResourceRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nonResourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("nonResourceRules").toString())); + } + + // validate the optional field `nonResourceRules` (array) + for (int i = 0; i < jsonArraynonResourceRules.size(); i++) { + V1beta3NonResourcePolicyRule.validateJsonObject(jsonArraynonResourceRules.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("resourceRules") != null && !jsonObj.get("resourceRules").isJsonNull()) { + JsonArray jsonArrayresourceRules = jsonObj.getAsJsonArray("resourceRules"); + if (jsonArrayresourceRules != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("resourceRules").toString())); + } + + // validate the optional field `resourceRules` (array) + for (int i = 0; i < jsonArrayresourceRules.size(); i++) { + V1beta3ResourcePolicyRule.validateJsonObject(jsonArrayresourceRules.get(i).getAsJsonObject()); + }; + } + } + // ensure the json data is an array + if (!jsonObj.get("subjects").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `subjects` to be an array in the JSON string but got `%s`", jsonObj.get("subjects").toString())); + } + + JsonArray jsonArraysubjects = jsonObj.getAsJsonArray("subjects"); + // validate the required field `subjects` (array) + for (int i = 0; i < jsonArraysubjects.size(); i++) { + V1beta3Subject.validateJsonObject(jsonArraysubjects.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3PolicyRulesWithSubjects.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3PolicyRulesWithSubjects' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3PolicyRulesWithSubjects.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3PolicyRulesWithSubjects value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3PolicyRulesWithSubjects read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3PolicyRulesWithSubjects given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3PolicyRulesWithSubjects + * @throws IOException if the JSON string is invalid with respect to V1beta3PolicyRulesWithSubjects + */ + public static V1beta3PolicyRulesWithSubjects fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3PolicyRulesWithSubjects.class); + } + + /** + * Convert an instance of V1beta3PolicyRulesWithSubjects to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java index ddb3c59b8f..ce34993bc2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationSpec; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfiguration represents the configuration of a priority level. */ @@ -52,6 +75,8 @@ public class V1beta3PriorityLevelConfiguration implements io.kubernetes.client.c @SerializedName(SERIALIZED_NAME_STATUS) private V1beta3PriorityLevelConfigurationStatus status; + public V1beta3PriorityLevelConfiguration() { + } public V1beta3PriorityLevelConfiguration apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V1beta3PriorityLevelConfiguration apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V1beta3PriorityLevelConfiguration kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V1beta3PriorityLevelConfiguration metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V1beta3PriorityLevelConfiguration spec(V1beta3PriorityLevelConfigurationS * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3PriorityLevelConfigurationSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V1beta3PriorityLevelConfiguration status(V1beta3PriorityLevelConfiguratio * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3PriorityLevelConfigurationStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V1beta3PriorityLevelConfigurationStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3PriorityLevelConfiguration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3PriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3PriorityLevelConfiguration is not found in the empty JSON string", V1beta3PriorityLevelConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3PriorityLevelConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3PriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta3PriorityLevelConfigurationSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1beta3PriorityLevelConfigurationStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3PriorityLevelConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3PriorityLevelConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3PriorityLevelConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3PriorityLevelConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3PriorityLevelConfiguration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3PriorityLevelConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3PriorityLevelConfiguration + * @throws IOException if the JSON string is invalid with respect to V1beta3PriorityLevelConfiguration + */ + public static V1beta3PriorityLevelConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3PriorityLevelConfiguration.class); + } + + /** + * Convert an instance of V1beta3PriorityLevelConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java index ab98d926fc..09f1ea4e02 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationCondition defines the condition of priority level. */ @@ -50,6 +73,8 @@ public class V1beta3PriorityLevelConfigurationCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta3PriorityLevelConfigurationCondition() { + } public V1beta3PriorityLevelConfigurationCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V1beta3PriorityLevelConfigurationCondition lastTransitionTime(OffsetDateT * `lastTransitionTime` is the last time the condition transitioned from one status to another. * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V1beta3PriorityLevelConfigurationCondition message(String message) { * `message` is a human-readable message indicating details about last transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V1beta3PriorityLevelConfigurationCondition reason(String reason) { * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,9 +149,7 @@ public V1beta3PriorityLevelConfigurationCondition status(String status) { * `status` is the status of the condition. Can be True, False, Unknown. Required. * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") - + @jakarta.annotation.Nullable public String getStatus() { return status; } @@ -153,9 +170,7 @@ public V1beta3PriorityLevelConfigurationCondition type(String type) { * `type` is the type of the condition. Required. * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`type` is the type of the condition. Required.") - + @jakarta.annotation.Nullable public String getType() { return type; } @@ -166,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -187,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -205,11 +220,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3PriorityLevelConfigurationCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3PriorityLevelConfigurationCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3PriorityLevelConfigurationCondition is not found in the empty JSON string", V1beta3PriorityLevelConfigurationCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3PriorityLevelConfigurationCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3PriorityLevelConfigurationCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3PriorityLevelConfigurationCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3PriorityLevelConfigurationCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3PriorityLevelConfigurationCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3PriorityLevelConfigurationCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3PriorityLevelConfigurationCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3PriorityLevelConfigurationCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3PriorityLevelConfigurationCondition + * @throws IOException if the JSON string is invalid with respect to V1beta3PriorityLevelConfigurationCondition + */ + public static V1beta3PriorityLevelConfigurationCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3PriorityLevelConfigurationCondition.class); + } + + /** + * Convert an instance of V1beta3PriorityLevelConfigurationCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java index 0d2192a07c..5a9ef5d3d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfiguration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. */ @@ -49,6 +72,8 @@ public class V1beta3PriorityLevelConfigurationList implements io.kubernetes.clie @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V1beta3PriorityLevelConfigurationList() { + } public V1beta3PriorityLevelConfigurationList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V1beta3PriorityLevelConfigurationList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V1beta3PriorityLevelConfigurationList items(List(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V1beta3PriorityLevelConfigurationList addItemsItem(V1beta3PriorityLevelCo * `items` is a list of request-priorities. * @return items **/ - @ApiModelProperty(required = true, value = "`items` is a list of request-priorities.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V1beta3PriorityLevelConfigurationList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V1beta3PriorityLevelConfigurationList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3PriorityLevelConfigurationList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3PriorityLevelConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3PriorityLevelConfigurationList is not found in the empty JSON string", V1beta3PriorityLevelConfigurationList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3PriorityLevelConfigurationList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3PriorityLevelConfigurationList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3PriorityLevelConfigurationList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1beta3PriorityLevelConfiguration.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3PriorityLevelConfigurationList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3PriorityLevelConfigurationList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3PriorityLevelConfigurationList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3PriorityLevelConfigurationList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3PriorityLevelConfigurationList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3PriorityLevelConfigurationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3PriorityLevelConfigurationList + * @throws IOException if the JSON string is invalid with respect to V1beta3PriorityLevelConfigurationList + */ + public static V1beta3PriorityLevelConfigurationList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3PriorityLevelConfigurationList.class); + } + + /** + * Convert an instance of V1beta3PriorityLevelConfigurationList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java index 5efe7ead95..48cd382482 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. */ @@ -33,6 +56,8 @@ public class V1beta3PriorityLevelConfigurationReference { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1beta3PriorityLevelConfigurationReference() { + } public V1beta3PriorityLevelConfigurationReference name(String name) { @@ -44,8 +69,7 @@ public V1beta3PriorityLevelConfigurationReference name(String name) { * `name` is the name of the priority level configuration being referenced Required. * @return name **/ - @ApiModelProperty(required = true, value = "`name` is the name of the priority level configuration being referenced Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3PriorityLevelConfigurationReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3PriorityLevelConfigurationReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3PriorityLevelConfigurationReference is not found in the empty JSON string", V1beta3PriorityLevelConfigurationReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3PriorityLevelConfigurationReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3PriorityLevelConfigurationReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3PriorityLevelConfigurationReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3PriorityLevelConfigurationReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3PriorityLevelConfigurationReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3PriorityLevelConfigurationReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3PriorityLevelConfigurationReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3PriorityLevelConfigurationReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3PriorityLevelConfigurationReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3PriorityLevelConfigurationReference + * @throws IOException if the JSON string is invalid with respect to V1beta3PriorityLevelConfigurationReference + */ + public static V1beta3PriorityLevelConfigurationReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3PriorityLevelConfigurationReference.class); + } + + /** + * Convert an instance of V1beta3PriorityLevelConfigurationReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java index ec0b3d46bf..4a04bd2b1c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3ExemptPriorityLevelConfiguration; import io.kubernetes.client.openapi.models.V1beta3LimitedPriorityLevelConfiguration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationSpec specifies the configuration of a priority level. */ @@ -43,6 +66,29 @@ public class V1beta3PriorityLevelConfigurationSpec { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V1beta3PriorityLevelConfigurationSpec() { + } + + public V1beta3PriorityLevelConfigurationSpec exempt(V1beta3ExemptPriorityLevelConfiguration exempt) { + + this.exempt = exempt; + return this; + } + + /** + * Get exempt + * @return exempt + **/ + @jakarta.annotation.Nullable + public V1beta3ExemptPriorityLevelConfiguration getExempt() { + return exempt; + } + + + public void setExempt(V1beta3ExemptPriorityLevelConfiguration exempt) { + this.exempt = exempt; + } + public V1beta3PriorityLevelConfigurationSpec exempt(V1beta3ExemptPriorityLevelConfiguration exempt) { @@ -77,9 +123,7 @@ public V1beta3PriorityLevelConfigurationSpec limited(V1beta3LimitedPriorityLevel * Get limited * @return limited **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3LimitedPriorityLevelConfiguration getLimited() { return limited; } @@ -100,8 +144,7 @@ public V1beta3PriorityLevelConfigurationSpec type(String type) { * `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. * @return type **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -112,8 +155,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -131,7 +175,6 @@ public int hashCode() { return Objects.hash(exempt, limited, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -147,11 +190,115 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("exempt"); + openapiFields.add("limited"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3PriorityLevelConfigurationSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3PriorityLevelConfigurationSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3PriorityLevelConfigurationSpec is not found in the empty JSON string", V1beta3PriorityLevelConfigurationSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3PriorityLevelConfigurationSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3PriorityLevelConfigurationSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3PriorityLevelConfigurationSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `exempt` + if (jsonObj.get("exempt") != null && !jsonObj.get("exempt").isJsonNull()) { + V1beta3ExemptPriorityLevelConfiguration.validateJsonObject(jsonObj.getAsJsonObject("exempt")); + } + // validate the optional field `limited` + if (jsonObj.get("limited") != null && !jsonObj.get("limited").isJsonNull()) { + V1beta3LimitedPriorityLevelConfiguration.validateJsonObject(jsonObj.getAsJsonObject("limited")); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3PriorityLevelConfigurationSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3PriorityLevelConfigurationSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3PriorityLevelConfigurationSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3PriorityLevelConfigurationSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3PriorityLevelConfigurationSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3PriorityLevelConfigurationSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3PriorityLevelConfigurationSpec + * @throws IOException if the JSON string is invalid with respect to V1beta3PriorityLevelConfigurationSpec + */ + public static V1beta3PriorityLevelConfigurationSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3PriorityLevelConfigurationSpec.class); + } + + /** + * Convert an instance of V1beta3PriorityLevelConfigurationSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java index 179f4aa771..5091182501 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationCondition; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". */ @@ -34,8 +57,10 @@ public class V1beta3PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; + public V1beta3PriorityLevelConfigurationStatus() { + } public V1beta3PriorityLevelConfigurationStatus conditions(List conditions) { @@ -55,9 +80,7 @@ public V1beta3PriorityLevelConfigurationStatus addConditionsItem(V1beta3Priority * `conditions` is the current state of \"request-priority\". * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`conditions` is the current state of \"request-priority\".") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -68,8 +91,9 @@ public void setConditions(List condi } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -85,7 +109,6 @@ public int hashCode() { return Objects.hash(conditions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -99,11 +122,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3PriorityLevelConfigurationStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3PriorityLevelConfigurationStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3PriorityLevelConfigurationStatus is not found in the empty JSON string", V1beta3PriorityLevelConfigurationStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3PriorityLevelConfigurationStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3PriorityLevelConfigurationStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1beta3PriorityLevelConfigurationCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3PriorityLevelConfigurationStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3PriorityLevelConfigurationStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3PriorityLevelConfigurationStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3PriorityLevelConfigurationStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3PriorityLevelConfigurationStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3PriorityLevelConfigurationStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3PriorityLevelConfigurationStatus + * @throws IOException if the JSON string is invalid with respect to V1beta3PriorityLevelConfigurationStatus + */ + public static V1beta3PriorityLevelConfigurationStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3PriorityLevelConfigurationStatus.class); + } + + /** + * Convert an instance of V1beta3PriorityLevelConfigurationStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java index 6834ef7615..e1a8c73aef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * QueuingConfiguration holds the configuration parameters for queuing */ @@ -41,6 +64,8 @@ public class V1beta3QueuingConfiguration { @SerializedName(SERIALIZED_NAME_QUEUES) private Integer queues; + public V1beta3QueuingConfiguration() { + } public V1beta3QueuingConfiguration handSize(Integer handSize) { @@ -52,9 +77,7 @@ public V1beta3QueuingConfiguration handSize(Integer handSize) { * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. * @return handSize **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getHandSize() { return handSize; } @@ -75,9 +98,7 @@ public V1beta3QueuingConfiguration queueLengthLimit(Integer queueLengthLimit) { * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. * @return queueLengthLimit **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getQueueLengthLimit() { return queueLengthLimit; } @@ -98,9 +119,7 @@ public V1beta3QueuingConfiguration queues(Integer queues) { * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. * @return queues **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Integer getQueues() { return queues; } @@ -111,8 +130,9 @@ public void setQueues(Integer queues) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +150,6 @@ public int hashCode() { return Objects.hash(handSize, queueLengthLimit, queues); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +165,96 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("handSize"); + openapiFields.add("queueLengthLimit"); + openapiFields.add("queues"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3QueuingConfiguration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3QueuingConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3QueuingConfiguration is not found in the empty JSON string", V1beta3QueuingConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3QueuingConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3QueuingConfiguration` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3QueuingConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3QueuingConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3QueuingConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3QueuingConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3QueuingConfiguration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3QueuingConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3QueuingConfiguration + * @throws IOException if the JSON string is invalid with respect to V1beta3QueuingConfiguration + */ + public static V1beta3QueuingConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3QueuingConfiguration.class); + } + + /** + * Convert an instance of V1beta3QueuingConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java index 62e34383c1..ad62e5d372 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java @@ -19,12 +19,35 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -41,7 +64,7 @@ public class V1beta3ResourcePolicyRule { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = null; + private List namespaces; public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) @@ -51,6 +74,8 @@ public class V1beta3ResourcePolicyRule { @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList<>(); + public V1beta3ResourcePolicyRule() { + } public V1beta3ResourcePolicyRule apiGroups(List apiGroups) { @@ -59,6 +84,9 @@ public V1beta3ResourcePolicyRule apiGroups(List apiGroups) { } public V1beta3ResourcePolicyRule addApiGroupsItem(String apiGroupsItem) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList<>(); + } this.apiGroups.add(apiGroupsItem); return this; } @@ -67,8 +95,7 @@ public V1beta3ResourcePolicyRule addApiGroupsItem(String apiGroupsItem) { * `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. * @return apiGroups **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public List getApiGroups() { return apiGroups; } @@ -89,9 +116,7 @@ public V1beta3ResourcePolicyRule clusterScope(Boolean clusterScope) { * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. * @return clusterScope **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public Boolean getClusterScope() { return clusterScope; } @@ -120,9 +145,7 @@ public V1beta3ResourcePolicyRule addNamespacesItem(String namespacesItem) { * `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. * @return namespaces **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "`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.") - + @jakarta.annotation.Nullable public List getNamespaces() { return namespaces; } @@ -140,6 +163,9 @@ public V1beta3ResourcePolicyRule resources(List resources) { } public V1beta3ResourcePolicyRule addResourcesItem(String resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } this.resources.add(resourcesItem); return this; } @@ -148,8 +174,7 @@ public V1beta3ResourcePolicyRule addResourcesItem(String resourcesItem) { * `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. * @return resources **/ - @ApiModelProperty(required = true, value = "`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.") - + @jakarta.annotation.Nonnull public List getResources() { return resources; } @@ -167,6 +192,9 @@ public V1beta3ResourcePolicyRule verbs(List verbs) { } public V1beta3ResourcePolicyRule addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } this.verbs.add(verbsItem); return this; } @@ -175,8 +203,7 @@ public V1beta3ResourcePolicyRule addVerbsItem(String verbsItem) { * `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. * @return verbs **/ - @ApiModelProperty(required = true, value = "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.") - + @jakarta.annotation.Nonnull public List getVerbs() { return verbs; } @@ -187,8 +214,9 @@ public void setVerbs(List verbs) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -208,7 +236,6 @@ public int hashCode() { return Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -226,11 +253,130 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiGroups"); + openapiFields.add("clusterScope"); + openapiFields.add("namespaces"); + openapiFields.add("resources"); + openapiFields.add("verbs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("apiGroups"); + openapiRequiredFields.add("resources"); + openapiRequiredFields.add("verbs"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3ResourcePolicyRule + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3ResourcePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3ResourcePolicyRule is not found in the empty JSON string", V1beta3ResourcePolicyRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3ResourcePolicyRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3ResourcePolicyRule` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3ResourcePolicyRule.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the required json array is present + if (jsonObj.get("apiGroups") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("apiGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `apiGroups` to be an array in the JSON string but got `%s`", jsonObj.get("apiGroups").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); + } + // ensure the required json array is present + if (jsonObj.get("resources") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3ResourcePolicyRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3ResourcePolicyRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3ResourcePolicyRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3ResourcePolicyRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3ResourcePolicyRule read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3ResourcePolicyRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3ResourcePolicyRule + * @throws IOException if the JSON string is invalid with respect to V1beta3ResourcePolicyRule + */ + public static V1beta3ResourcePolicyRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3ResourcePolicyRule.class); + } + + /** + * Convert an instance of V1beta3ResourcePolicyRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java index 0994bdb850..5f5824d492 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ServiceAccountSubject holds detailed information for service-account-kind subject. */ @@ -37,6 +60,8 @@ public class V1beta3ServiceAccountSubject { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; + public V1beta3ServiceAccountSubject() { + } public V1beta3ServiceAccountSubject name(String name) { @@ -48,8 +73,7 @@ public V1beta3ServiceAccountSubject name(String name) { * `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. * @return name **/ - @ApiModelProperty(required = true, value = "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -70,8 +94,7 @@ public V1beta3ServiceAccountSubject namespace(String namespace) { * `namespace` is the namespace of matching ServiceAccount objects. Required. * @return namespace **/ - @ApiModelProperty(required = true, value = "`namespace` is the namespace of matching ServiceAccount objects. Required.") - + @jakarta.annotation.Nonnull public String getNamespace() { return namespace; } @@ -82,8 +105,9 @@ public void setNamespace(String namespace) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -100,7 +124,6 @@ public int hashCode() { return Objects.hash(name, namespace); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -115,11 +138,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("namespace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("namespace"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3ServiceAccountSubject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3ServiceAccountSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3ServiceAccountSubject is not found in the empty JSON string", V1beta3ServiceAccountSubject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3ServiceAccountSubject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3ServiceAccountSubject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3ServiceAccountSubject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3ServiceAccountSubject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3ServiceAccountSubject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3ServiceAccountSubject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3ServiceAccountSubject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3ServiceAccountSubject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3ServiceAccountSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3ServiceAccountSubject + * @throws IOException if the JSON string is invalid with respect to V1beta3ServiceAccountSubject + */ + public static V1beta3ServiceAccountSubject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3ServiceAccountSubject.class); + } + + /** + * Convert an instance of V1beta3ServiceAccountSubject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java index f30bc17af6..b45e9c9897 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1beta3GroupSubject; import io.kubernetes.client.openapi.models.V1beta3ServiceAccountSubject; import io.kubernetes.client.openapi.models.V1beta3UserSubject; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -48,6 +71,8 @@ public class V1beta3Subject { @SerializedName(SERIALIZED_NAME_USER) private V1beta3UserSubject user; + public V1beta3Subject() { + } public V1beta3Subject group(V1beta3GroupSubject group) { @@ -59,9 +84,7 @@ public V1beta3Subject group(V1beta3GroupSubject group) { * Get group * @return group **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3GroupSubject getGroup() { return group; } @@ -82,8 +105,7 @@ public V1beta3Subject kind(String kind) { * `kind` indicates which one of the other fields is non-empty. Required * @return kind **/ - @ApiModelProperty(required = true, value = "`kind` indicates which one of the other fields is non-empty. Required") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -104,9 +126,7 @@ public V1beta3Subject serviceAccount(V1beta3ServiceAccountSubject serviceAccount * Get serviceAccount * @return serviceAccount **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3ServiceAccountSubject getServiceAccount() { return serviceAccount; } @@ -127,9 +147,7 @@ public V1beta3Subject user(V1beta3UserSubject user) { * Get user * @return user **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1beta3UserSubject getUser() { return user; } @@ -140,8 +158,9 @@ public void setUser(V1beta3UserSubject user) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -160,7 +179,6 @@ public int hashCode() { return Objects.hash(group, kind, serviceAccount, user); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -177,11 +195,120 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("group"); + openapiFields.add("kind"); + openapiFields.add("serviceAccount"); + openapiFields.add("user"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3Subject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3Subject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3Subject is not found in the empty JSON string", V1beta3Subject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3Subject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3Subject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3Subject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `group` + if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { + V1beta3GroupSubject.validateJsonObject(jsonObj.getAsJsonObject("group")); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `serviceAccount` + if (jsonObj.get("serviceAccount") != null && !jsonObj.get("serviceAccount").isJsonNull()) { + V1beta3ServiceAccountSubject.validateJsonObject(jsonObj.getAsJsonObject("serviceAccount")); + } + // validate the optional field `user` + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { + V1beta3UserSubject.validateJsonObject(jsonObj.getAsJsonObject("user")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3Subject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3Subject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3Subject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3Subject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3Subject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3Subject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3Subject + * @throws IOException if the JSON string is invalid with respect to V1beta3Subject + */ + public static V1beta3Subject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3Subject.class); + } + + /** + * Convert an instance of V1beta3Subject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java index a4b5e5fa24..1b300c674a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * UserSubject holds detailed information for user-kind subject. */ @@ -33,6 +56,8 @@ public class V1beta3UserSubject { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V1beta3UserSubject() { + } public V1beta3UserSubject name(String name) { @@ -44,8 +69,7 @@ public V1beta3UserSubject name(String name) { * `name` is the username that matches, or \"*\" to match all usernames. Required. * @return name **/ - @ApiModelProperty(required = true, value = "`name` is the username that matches, or \"*\" to match all usernames. Required.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -56,8 +80,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -73,7 +98,6 @@ public int hashCode() { return Objects.hash(name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -87,11 +111,105 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V1beta3UserSubject + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V1beta3UserSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta3UserSubject is not found in the empty JSON string", V1beta3UserSubject.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V1beta3UserSubject.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta3UserSubject` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta3UserSubject.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta3UserSubject.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta3UserSubject' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta3UserSubject.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta3UserSubject value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta3UserSubject read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta3UserSubject given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta3UserSubject + * @throws IOException if the JSON string is invalid with respect to V1beta3UserSubject + */ + public static V1beta3UserSubject fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta3UserSubject.class); + } + + /** + * Convert an instance of V1beta3UserSubject to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java index 6e4a79573a..da4a80db3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricTarget; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -42,6 +65,8 @@ public class V2ContainerResourceMetricSource { @SerializedName(SERIALIZED_NAME_TARGET) private V2MetricTarget target; + public V2ContainerResourceMetricSource() { + } public V2ContainerResourceMetricSource container(String container) { @@ -53,8 +78,7 @@ public V2ContainerResourceMetricSource container(String container) { * container is the name of the container in the pods of the scaling target * @return container **/ - @ApiModelProperty(required = true, value = "container is the name of the container in the pods of the scaling target") - + @jakarta.annotation.Nonnull public String getContainer() { return container; } @@ -75,8 +99,7 @@ public V2ContainerResourceMetricSource name(String name) { * name is the name of the resource in question. * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the resource in question.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -97,8 +120,7 @@ public V2ContainerResourceMetricSource target(V2MetricTarget target) { * Get target * @return target **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricTarget getTarget() { return target; } @@ -109,8 +131,9 @@ public void setTarget(V2MetricTarget target) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +151,6 @@ public int hashCode() { return Objects.hash(container, name, target); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +166,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("container"); + openapiFields.add("name"); + openapiFields.add("target"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("container"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("target"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2ContainerResourceMetricSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2ContainerResourceMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2ContainerResourceMetricSource is not found in the empty JSON string", V2ContainerResourceMetricSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2ContainerResourceMetricSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2ContainerResourceMetricSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2ContainerResourceMetricSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("container").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `container` to be a primitive type in the JSON string but got `%s`", jsonObj.get("container").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the required field `target` + V2MetricTarget.validateJsonObject(jsonObj.getAsJsonObject("target")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2ContainerResourceMetricSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2ContainerResourceMetricSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2ContainerResourceMetricSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2ContainerResourceMetricSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2ContainerResourceMetricSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2ContainerResourceMetricSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2ContainerResourceMetricSource + * @throws IOException if the JSON string is invalid with respect to V2ContainerResourceMetricSource + */ + public static V2ContainerResourceMetricSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2ContainerResourceMetricSource.class); + } + + /** + * Convert an instance of V2ContainerResourceMetricSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java index 807a7c8dc4..c4b307ec29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricValueStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -42,6 +65,8 @@ public class V2ContainerResourceMetricStatus { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V2ContainerResourceMetricStatus() { + } public V2ContainerResourceMetricStatus container(String container) { @@ -53,8 +78,7 @@ public V2ContainerResourceMetricStatus container(String container) { * container is the name of the container in the pods of the scaling target * @return container **/ - @ApiModelProperty(required = true, value = "container is the name of the container in the pods of the scaling target") - + @jakarta.annotation.Nonnull public String getContainer() { return container; } @@ -75,8 +99,7 @@ public V2ContainerResourceMetricStatus current(V2MetricValueStatus current) { * Get current * @return current **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricValueStatus getCurrent() { return current; } @@ -97,8 +120,7 @@ public V2ContainerResourceMetricStatus name(String name) { * name is the name of the resource in question. * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the resource in question.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -109,8 +131,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +151,6 @@ public int hashCode() { return Objects.hash(container, current, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +166,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("container"); + openapiFields.add("current"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("container"); + openapiRequiredFields.add("current"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2ContainerResourceMetricStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2ContainerResourceMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2ContainerResourceMetricStatus is not found in the empty JSON string", V2ContainerResourceMetricStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2ContainerResourceMetricStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2ContainerResourceMetricStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2ContainerResourceMetricStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("container").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `container` to be a primitive type in the JSON string but got `%s`", jsonObj.get("container").toString())); + } + // validate the required field `current` + V2MetricValueStatus.validateJsonObject(jsonObj.getAsJsonObject("current")); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2ContainerResourceMetricStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2ContainerResourceMetricStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2ContainerResourceMetricStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2ContainerResourceMetricStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2ContainerResourceMetricStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2ContainerResourceMetricStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2ContainerResourceMetricStatus + * @throws IOException if the JSON string is invalid with respect to V2ContainerResourceMetricStatus + */ + public static V2ContainerResourceMetricStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2ContainerResourceMetricStatus.class); + } + + /** + * Convert an instance of V2ContainerResourceMetricStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java index ffe2d77c5c..8322da19f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @@ -41,6 +64,8 @@ public class V2CrossVersionObjectReference { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V2CrossVersionObjectReference() { + } public V2CrossVersionObjectReference apiVersion(String apiVersion) { @@ -52,9 +77,7 @@ public V2CrossVersionObjectReference apiVersion(String apiVersion) { * apiVersion is the API version of the referent * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "apiVersion is the API version of the referent") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -75,8 +98,7 @@ public V2CrossVersionObjectReference kind(String kind) { * kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @return kind **/ - @ApiModelProperty(required = true, value = "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nonnull public String getKind() { return kind; } @@ -97,8 +119,7 @@ public V2CrossVersionObjectReference name(String name) { * name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -109,8 +130,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -128,7 +150,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,11 +165,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("kind"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2CrossVersionObjectReference + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2CrossVersionObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2CrossVersionObjectReference is not found in the empty JSON string", V2CrossVersionObjectReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2CrossVersionObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2CrossVersionObjectReference` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2CrossVersionObjectReference.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2CrossVersionObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2CrossVersionObjectReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2CrossVersionObjectReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2CrossVersionObjectReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2CrossVersionObjectReference read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2CrossVersionObjectReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2CrossVersionObjectReference + * @throws IOException if the JSON string is invalid with respect to V2CrossVersionObjectReference + */ + public static V2CrossVersionObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2CrossVersionObjectReference.class); + } + + /** + * Convert an instance of V2CrossVersionObjectReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java index e76eebb587..1ad185c191 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricTarget; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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). */ @@ -39,6 +62,8 @@ public class V2ExternalMetricSource { @SerializedName(SERIALIZED_NAME_TARGET) private V2MetricTarget target; + public V2ExternalMetricSource() { + } public V2ExternalMetricSource metric(V2MetricIdentifier metric) { @@ -50,8 +75,7 @@ public V2ExternalMetricSource metric(V2MetricIdentifier metric) { * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricIdentifier getMetric() { return metric; } @@ -72,8 +96,7 @@ public V2ExternalMetricSource target(V2MetricTarget target) { * Get target * @return target **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricTarget getTarget() { return target; } @@ -84,8 +107,9 @@ public void setTarget(V2MetricTarget target) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +126,6 @@ public int hashCode() { return Objects.hash(metric, target); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +140,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("metric"); + openapiFields.add("target"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("metric"); + openapiRequiredFields.add("target"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2ExternalMetricSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2ExternalMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2ExternalMetricSource is not found in the empty JSON string", V2ExternalMetricSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2ExternalMetricSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2ExternalMetricSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2ExternalMetricSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `metric` + V2MetricIdentifier.validateJsonObject(jsonObj.getAsJsonObject("metric")); + // validate the required field `target` + V2MetricTarget.validateJsonObject(jsonObj.getAsJsonObject("target")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2ExternalMetricSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2ExternalMetricSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2ExternalMetricSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2ExternalMetricSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2ExternalMetricSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2ExternalMetricSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2ExternalMetricSource + * @throws IOException if the JSON string is invalid with respect to V2ExternalMetricSource + */ + public static V2ExternalMetricSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2ExternalMetricSource.class); + } + + /** + * Convert an instance of V2ExternalMetricSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java index bc3be20e18..fd3b052e16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricValueStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. */ @@ -39,6 +62,8 @@ public class V2ExternalMetricStatus { @SerializedName(SERIALIZED_NAME_METRIC) private V2MetricIdentifier metric; + public V2ExternalMetricStatus() { + } public V2ExternalMetricStatus current(V2MetricValueStatus current) { @@ -50,8 +75,7 @@ public V2ExternalMetricStatus current(V2MetricValueStatus current) { * Get current * @return current **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricValueStatus getCurrent() { return current; } @@ -72,8 +96,7 @@ public V2ExternalMetricStatus metric(V2MetricIdentifier metric) { * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricIdentifier getMetric() { return metric; } @@ -84,8 +107,9 @@ public void setMetric(V2MetricIdentifier metric) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +126,6 @@ public int hashCode() { return Objects.hash(current, metric); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +140,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("current"); + openapiFields.add("metric"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("current"); + openapiRequiredFields.add("metric"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2ExternalMetricStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2ExternalMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2ExternalMetricStatus is not found in the empty JSON string", V2ExternalMetricStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2ExternalMetricStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2ExternalMetricStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2ExternalMetricStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `current` + V2MetricValueStatus.validateJsonObject(jsonObj.getAsJsonObject("current")); + // validate the required field `metric` + V2MetricIdentifier.validateJsonObject(jsonObj.getAsJsonObject("metric")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2ExternalMetricStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2ExternalMetricStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2ExternalMetricStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2ExternalMetricStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2ExternalMetricStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2ExternalMetricStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2ExternalMetricStatus + * @throws IOException if the JSON string is invalid with respect to V2ExternalMetricStatus + */ + public static V2ExternalMetricStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2ExternalMetricStatus.class); + } + + /** + * Convert an instance of V2ExternalMetricStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java index 8b865ae6df..f4c0ad9c52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HPAScalingPolicy is a single policy which must hold true for a specified past interval. */ @@ -41,6 +64,8 @@ public class V2HPAScalingPolicy { @SerializedName(SERIALIZED_NAME_VALUE) private Integer value; + public V2HPAScalingPolicy() { + } public V2HPAScalingPolicy periodSeconds(Integer periodSeconds) { @@ -52,8 +77,7 @@ public V2HPAScalingPolicy periodSeconds(Integer periodSeconds) { * 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). * @return periodSeconds **/ - @ApiModelProperty(required = true, value = "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).") - + @jakarta.annotation.Nonnull public Integer getPeriodSeconds() { return periodSeconds; } @@ -74,8 +98,7 @@ public V2HPAScalingPolicy type(String type) { * type is used to specify the scaling policy. * @return type **/ - @ApiModelProperty(required = true, value = "type is used to specify the scaling policy.") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -96,8 +119,7 @@ public V2HPAScalingPolicy value(Integer value) { * value contains the amount of change which is permitted by the policy. It must be greater than zero * @return value **/ - @ApiModelProperty(required = true, value = "value contains the amount of change which is permitted by the policy. It must be greater than zero") - + @jakarta.annotation.Nonnull public Integer getValue() { return value; } @@ -108,8 +130,9 @@ public void setValue(Integer value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -127,7 +150,6 @@ public int hashCode() { return Objects.hash(periodSeconds, type, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -143,11 +165,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("periodSeconds"); + openapiFields.add("type"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("periodSeconds"); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("value"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2HPAScalingPolicy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2HPAScalingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2HPAScalingPolicy is not found in the empty JSON string", V2HPAScalingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2HPAScalingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2HPAScalingPolicy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2HPAScalingPolicy.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2HPAScalingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2HPAScalingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2HPAScalingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2HPAScalingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2HPAScalingPolicy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2HPAScalingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2HPAScalingPolicy + * @throws IOException if the JSON string is invalid with respect to V2HPAScalingPolicy + */ + public static V2HPAScalingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2HPAScalingPolicy.class); + } + + /** + * Convert an instance of V2HPAScalingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java index 283de894d2..a1b681c7f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java @@ -20,12 +20,35 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2HPAScalingPolicy; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -34,7 +57,7 @@ public class V2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; @SerializedName(SERIALIZED_NAME_POLICIES) - private List policies = null; + private List policies; public static final String SERIALIZED_NAME_SELECT_POLICY = "selectPolicy"; @SerializedName(SERIALIZED_NAME_SELECT_POLICY) @@ -44,6 +67,8 @@ public class V2HPAScalingRules { @SerializedName(SERIALIZED_NAME_STABILIZATION_WINDOW_SECONDS) private Integer stabilizationWindowSeconds; + public V2HPAScalingRules() { + } public V2HPAScalingRules policies(List policies) { @@ -63,9 +88,7 @@ public V2HPAScalingRules addPoliciesItem(V2HPAScalingPolicy policiesItem) { * 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 * @return policies **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public List getPolicies() { return policies; } @@ -86,9 +109,7 @@ public V2HPAScalingRules selectPolicy(String selectPolicy) { * selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. * @return selectPolicy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.") - + @jakarta.annotation.Nullable public String getSelectPolicy() { return selectPolicy; } @@ -109,9 +130,7 @@ public V2HPAScalingRules stabilizationWindowSeconds(Integer stabilizationWindowS * 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). * @return stabilizationWindowSeconds **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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).") - + @jakarta.annotation.Nullable public Integer getStabilizationWindowSeconds() { return stabilizationWindowSeconds; } @@ -122,8 +141,9 @@ public void setStabilizationWindowSeconds(Integer stabilizationWindowSeconds) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -141,7 +161,6 @@ public int hashCode() { return Objects.hash(policies, selectPolicy, stabilizationWindowSeconds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -157,11 +176,113 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("policies"); + openapiFields.add("selectPolicy"); + openapiFields.add("stabilizationWindowSeconds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2HPAScalingRules + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2HPAScalingRules.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2HPAScalingRules is not found in the empty JSON string", V2HPAScalingRules.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2HPAScalingRules.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2HPAScalingRules` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("policies") != null && !jsonObj.get("policies").isJsonNull()) { + JsonArray jsonArraypolicies = jsonObj.getAsJsonArray("policies"); + if (jsonArraypolicies != null) { + // ensure the json data is an array + if (!jsonObj.get("policies").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `policies` to be an array in the JSON string but got `%s`", jsonObj.get("policies").toString())); + } + + // validate the optional field `policies` (array) + for (int i = 0; i < jsonArraypolicies.size(); i++) { + V2HPAScalingPolicy.validateJsonObject(jsonArraypolicies.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("selectPolicy") != null && !jsonObj.get("selectPolicy").isJsonNull()) && !jsonObj.get("selectPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `selectPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selectPolicy").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2HPAScalingRules.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2HPAScalingRules' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2HPAScalingRules.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2HPAScalingRules value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2HPAScalingRules read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2HPAScalingRules given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2HPAScalingRules + * @throws IOException if the JSON string is invalid with respect to V2HPAScalingRules + */ + public static V2HPAScalingRules fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2HPAScalingRules.class); + } + + /** + * Convert an instance of V2HPAScalingRules to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java index 4da1e02b51..4589790160 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -52,6 +75,8 @@ public class V2HorizontalPodAutoscaler implements io.kubernetes.client.common.Ku @SerializedName(SERIALIZED_NAME_STATUS) private V2HorizontalPodAutoscalerStatus status; + public V2HorizontalPodAutoscaler() { + } public V2HorizontalPodAutoscaler apiVersion(String apiVersion) { @@ -63,9 +88,7 @@ public V2HorizontalPodAutoscaler apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -86,9 +109,7 @@ public V2HorizontalPodAutoscaler kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -109,9 +130,7 @@ public V2HorizontalPodAutoscaler metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ObjectMeta getMetadata() { return metadata; } @@ -132,9 +151,7 @@ public V2HorizontalPodAutoscaler spec(V2HorizontalPodAutoscalerSpec spec) { * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2HorizontalPodAutoscalerSpec getSpec() { return spec; } @@ -155,9 +172,7 @@ public V2HorizontalPodAutoscaler status(V2HorizontalPodAutoscalerStatus status) * Get status * @return status **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2HorizontalPodAutoscalerStatus getStatus() { return status; } @@ -168,8 +183,9 @@ public void setStatus(V2HorizontalPodAutoscalerStatus status) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -189,7 +205,6 @@ public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -207,11 +222,116 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2HorizontalPodAutoscaler + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2HorizontalPodAutoscaler.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2HorizontalPodAutoscaler is not found in the empty JSON string", V2HorizontalPodAutoscaler.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2HorizontalPodAutoscaler.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscaler` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V2HorizontalPodAutoscalerSpec.validateJsonObject(jsonObj.getAsJsonObject("spec")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V2HorizontalPodAutoscalerStatus.validateJsonObject(jsonObj.getAsJsonObject("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2HorizontalPodAutoscaler.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2HorizontalPodAutoscaler' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2HorizontalPodAutoscaler.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2HorizontalPodAutoscaler value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2HorizontalPodAutoscaler read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2HorizontalPodAutoscaler given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2HorizontalPodAutoscaler + * @throws IOException if the JSON string is invalid with respect to V2HorizontalPodAutoscaler + */ + public static V2HorizontalPodAutoscaler fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2HorizontalPodAutoscaler.class); + } + + /** + * Convert an instance of V2HorizontalPodAutoscaler to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java index f4b5b63c22..deae170ef6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2HPAScalingRules; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). */ @@ -38,6 +61,8 @@ public class V2HorizontalPodAutoscalerBehavior { @SerializedName(SERIALIZED_NAME_SCALE_UP) private V2HPAScalingRules scaleUp; + public V2HorizontalPodAutoscalerBehavior() { + } public V2HorizontalPodAutoscalerBehavior scaleDown(V2HPAScalingRules scaleDown) { @@ -49,9 +74,7 @@ public V2HorizontalPodAutoscalerBehavior scaleDown(V2HPAScalingRules scaleDown) * Get scaleDown * @return scaleDown **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2HPAScalingRules getScaleDown() { return scaleDown; } @@ -72,9 +95,7 @@ public V2HorizontalPodAutoscalerBehavior scaleUp(V2HPAScalingRules scaleUp) { * Get scaleUp * @return scaleUp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2HPAScalingRules getScaleUp() { return scaleUp; } @@ -85,8 +106,9 @@ public void setScaleUp(V2HPAScalingRules scaleUp) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -103,7 +125,6 @@ public int hashCode() { return Objects.hash(scaleDown, scaleUp); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -118,11 +139,103 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("scaleDown"); + openapiFields.add("scaleUp"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2HorizontalPodAutoscalerBehavior + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2HorizontalPodAutoscalerBehavior.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2HorizontalPodAutoscalerBehavior is not found in the empty JSON string", V2HorizontalPodAutoscalerBehavior.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2HorizontalPodAutoscalerBehavior.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerBehavior` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `scaleDown` + if (jsonObj.get("scaleDown") != null && !jsonObj.get("scaleDown").isJsonNull()) { + V2HPAScalingRules.validateJsonObject(jsonObj.getAsJsonObject("scaleDown")); + } + // validate the optional field `scaleUp` + if (jsonObj.get("scaleUp") != null && !jsonObj.get("scaleUp").isJsonNull()) { + V2HPAScalingRules.validateJsonObject(jsonObj.getAsJsonObject("scaleUp")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2HorizontalPodAutoscalerBehavior.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2HorizontalPodAutoscalerBehavior' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2HorizontalPodAutoscalerBehavior.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2HorizontalPodAutoscalerBehavior value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2HorizontalPodAutoscalerBehavior read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2HorizontalPodAutoscalerBehavior given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2HorizontalPodAutoscalerBehavior + * @throws IOException if the JSON string is invalid with respect to V2HorizontalPodAutoscalerBehavior + */ + public static V2HorizontalPodAutoscalerBehavior fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2HorizontalPodAutoscalerBehavior.class); + } + + /** + * Convert an instance of V2HorizontalPodAutoscalerBehavior to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java index 9376e368cb..45ecd6f4c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java @@ -19,11 +19,34 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. */ @@ -50,6 +73,8 @@ public class V2HorizontalPodAutoscalerCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V2HorizontalPodAutoscalerCondition() { + } public V2HorizontalPodAutoscalerCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { @@ -61,9 +86,7 @@ public V2HorizontalPodAutoscalerCondition lastTransitionTime(OffsetDateTime last * lastTransitionTime is the last time the condition transitioned from one status to another * @return lastTransitionTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "lastTransitionTime is the last time the condition transitioned from one status to another") - + @jakarta.annotation.Nullable public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -84,9 +107,7 @@ public V2HorizontalPodAutoscalerCondition message(String message) { * message is a human-readable explanation containing details about the transition * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "message is a human-readable explanation containing details about the transition") - + @jakarta.annotation.Nullable public String getMessage() { return message; } @@ -107,9 +128,7 @@ public V2HorizontalPodAutoscalerCondition reason(String reason) { * reason is the reason for the condition's last transition. * @return reason **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "reason is the reason for the condition's last transition.") - + @jakarta.annotation.Nullable public String getReason() { return reason; } @@ -130,8 +149,7 @@ public V2HorizontalPodAutoscalerCondition status(String status) { * status is the status of the condition (True, False, Unknown) * @return status **/ - @ApiModelProperty(required = true, value = "status is the status of the condition (True, False, Unknown)") - + @jakarta.annotation.Nonnull public String getStatus() { return status; } @@ -152,8 +170,7 @@ public V2HorizontalPodAutoscalerCondition type(String type) { * type describes the current condition * @return type **/ - @ApiModelProperty(required = true, value = "type describes the current condition") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -164,8 +181,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -185,7 +203,6 @@ public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -203,11 +220,119 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lastTransitionTime"); + openapiFields.add("message"); + openapiFields.add("reason"); + openapiFields.add("status"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2HorizontalPodAutoscalerCondition + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2HorizontalPodAutoscalerCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2HorizontalPodAutoscalerCondition is not found in the empty JSON string", V2HorizontalPodAutoscalerCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2HorizontalPodAutoscalerCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerCondition` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2HorizontalPodAutoscalerCondition.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2HorizontalPodAutoscalerCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2HorizontalPodAutoscalerCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2HorizontalPodAutoscalerCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2HorizontalPodAutoscalerCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2HorizontalPodAutoscalerCondition read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2HorizontalPodAutoscalerCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2HorizontalPodAutoscalerCondition + * @throws IOException if the JSON string is invalid with respect to V2HorizontalPodAutoscalerCondition + */ + public static V2HorizontalPodAutoscalerCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2HorizontalPodAutoscalerCondition.class); + } + + /** + * Convert an instance of V2HorizontalPodAutoscalerCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java index 6195235905..8a7b7a6566 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java @@ -21,12 +21,35 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. */ @@ -49,6 +72,8 @@ public class V2HorizontalPodAutoscalerList implements io.kubernetes.client.commo @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; + public V2HorizontalPodAutoscalerList() { + } public V2HorizontalPodAutoscalerList apiVersion(String apiVersion) { @@ -60,9 +85,7 @@ public V2HorizontalPodAutoscalerList apiVersion(String 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 * @return apiVersion **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") - + @jakarta.annotation.Nullable public String getApiVersion() { return apiVersion; } @@ -80,6 +103,9 @@ public V2HorizontalPodAutoscalerList items(List items } public V2HorizontalPodAutoscalerList addItemsItem(V2HorizontalPodAutoscaler itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } this.items.add(itemsItem); return this; } @@ -88,8 +114,7 @@ public V2HorizontalPodAutoscalerList addItemsItem(V2HorizontalPodAutoscaler item * items is the list of horizontal pod autoscaler objects. * @return items **/ - @ApiModelProperty(required = true, value = "items is the list of horizontal pod autoscaler objects.") - + @jakarta.annotation.Nonnull public List getItems() { return items; } @@ -110,9 +135,7 @@ public V2HorizontalPodAutoscalerList kind(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 * @return kind **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") - + @jakarta.annotation.Nullable public String getKind() { return kind; } @@ -133,9 +156,7 @@ public V2HorizontalPodAutoscalerList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1ListMeta getMetadata() { return metadata; } @@ -146,8 +167,9 @@ public void setMetadata(V1ListMeta metadata) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -166,7 +188,6 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,11 +204,125 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2HorizontalPodAutoscalerList + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2HorizontalPodAutoscalerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2HorizontalPodAutoscalerList is not found in the empty JSON string", V2HorizontalPodAutoscalerList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2HorizontalPodAutoscalerList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerList` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2HorizontalPodAutoscalerList.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V2HorizontalPodAutoscaler.validateJsonObject(jsonArrayitems.get(i).getAsJsonObject()); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2HorizontalPodAutoscalerList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2HorizontalPodAutoscalerList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2HorizontalPodAutoscalerList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2HorizontalPodAutoscalerList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2HorizontalPodAutoscalerList read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2HorizontalPodAutoscalerList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2HorizontalPodAutoscalerList + * @throws IOException if the JSON string is invalid with respect to V2HorizontalPodAutoscalerList + */ + public static V2HorizontalPodAutoscalerList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2HorizontalPodAutoscalerList.class); + } + + /** + * Convert an instance of V2HorizontalPodAutoscalerList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java index ee67664ed3..cb43482f90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java @@ -22,12 +22,35 @@ import io.kubernetes.client.openapi.models.V2CrossVersionObjectReference; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior; import io.kubernetes.client.openapi.models.V2MetricSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. */ @@ -44,7 +67,7 @@ public class V2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_METRICS = "metrics"; @SerializedName(SERIALIZED_NAME_METRICS) - private List metrics = null; + private List metrics; public static final String SERIALIZED_NAME_MIN_REPLICAS = "minReplicas"; @SerializedName(SERIALIZED_NAME_MIN_REPLICAS) @@ -54,6 +77,8 @@ public class V2HorizontalPodAutoscalerSpec { @SerializedName(SERIALIZED_NAME_SCALE_TARGET_REF) private V2CrossVersionObjectReference scaleTargetRef; + public V2HorizontalPodAutoscalerSpec() { + } public V2HorizontalPodAutoscalerSpec behavior(V2HorizontalPodAutoscalerBehavior behavior) { @@ -65,9 +90,7 @@ public V2HorizontalPodAutoscalerSpec behavior(V2HorizontalPodAutoscalerBehavior * Get behavior * @return behavior **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2HorizontalPodAutoscalerBehavior getBehavior() { return behavior; } @@ -88,8 +111,7 @@ public V2HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. * @return maxReplicas **/ - @ApiModelProperty(required = true, value = "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.") - + @jakarta.annotation.Nonnull public Integer getMaxReplicas() { return maxReplicas; } @@ -118,9 +140,7 @@ public V2HorizontalPodAutoscalerSpec addMetricsItem(V2MetricSpec metricsItem) { * 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. * @return metrics **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public List getMetrics() { return metrics; } @@ -141,9 +161,7 @@ public V2HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { * 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. * @return minReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getMinReplicas() { return minReplicas; } @@ -164,8 +182,7 @@ public V2HorizontalPodAutoscalerSpec scaleTargetRef(V2CrossVersionObjectReferenc * Get scaleTargetRef * @return scaleTargetRef **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2CrossVersionObjectReference getScaleTargetRef() { return scaleTargetRef; } @@ -176,8 +193,9 @@ public void setScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -197,7 +215,6 @@ public int hashCode() { return Objects.hash(behavior, maxReplicas, metrics, minReplicas, scaleTargetRef); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -215,11 +232,127 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("behavior"); + openapiFields.add("maxReplicas"); + openapiFields.add("metrics"); + openapiFields.add("minReplicas"); + openapiFields.add("scaleTargetRef"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("maxReplicas"); + openapiRequiredFields.add("scaleTargetRef"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2HorizontalPodAutoscalerSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2HorizontalPodAutoscalerSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2HorizontalPodAutoscalerSpec is not found in the empty JSON string", V2HorizontalPodAutoscalerSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2HorizontalPodAutoscalerSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2HorizontalPodAutoscalerSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `behavior` + if (jsonObj.get("behavior") != null && !jsonObj.get("behavior").isJsonNull()) { + V2HorizontalPodAutoscalerBehavior.validateJsonObject(jsonObj.getAsJsonObject("behavior")); + } + if (jsonObj.get("metrics") != null && !jsonObj.get("metrics").isJsonNull()) { + JsonArray jsonArraymetrics = jsonObj.getAsJsonArray("metrics"); + if (jsonArraymetrics != null) { + // ensure the json data is an array + if (!jsonObj.get("metrics").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `metrics` to be an array in the JSON string but got `%s`", jsonObj.get("metrics").toString())); + } + + // validate the optional field `metrics` (array) + for (int i = 0; i < jsonArraymetrics.size(); i++) { + V2MetricSpec.validateJsonObject(jsonArraymetrics.get(i).getAsJsonObject()); + }; + } + } + // validate the required field `scaleTargetRef` + V2CrossVersionObjectReference.validateJsonObject(jsonObj.getAsJsonObject("scaleTargetRef")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2HorizontalPodAutoscalerSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2HorizontalPodAutoscalerSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2HorizontalPodAutoscalerSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2HorizontalPodAutoscalerSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2HorizontalPodAutoscalerSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2HorizontalPodAutoscalerSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2HorizontalPodAutoscalerSpec + * @throws IOException if the JSON string is invalid with respect to V2HorizontalPodAutoscalerSpec + */ + public static V2HorizontalPodAutoscalerSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2HorizontalPodAutoscalerSpec.class); + } + + /** + * Convert an instance of V2HorizontalPodAutoscalerSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java index 351c83e01a..e6cd825db0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java @@ -21,13 +21,36 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition; import io.kubernetes.client.openapi.models.V2MetricStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @@ -36,11 +59,11 @@ public class V2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; + private List conditions; public static final String SERIALIZED_NAME_CURRENT_METRICS = "currentMetrics"; @SerializedName(SERIALIZED_NAME_CURRENT_METRICS) - private List currentMetrics = null; + private List currentMetrics; public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) @@ -58,6 +81,8 @@ public class V2HorizontalPodAutoscalerStatus { @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) private Long observedGeneration; + public V2HorizontalPodAutoscalerStatus() { + } public V2HorizontalPodAutoscalerStatus conditions(List conditions) { @@ -77,9 +102,7 @@ public V2HorizontalPodAutoscalerStatus addConditionsItem(V2HorizontalPodAutoscal * conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. * @return conditions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.") - + @jakarta.annotation.Nullable public List getConditions() { return conditions; } @@ -108,9 +131,7 @@ public V2HorizontalPodAutoscalerStatus addCurrentMetricsItem(V2MetricStatus curr * currentMetrics is the last read state of the metrics used by this autoscaler. * @return currentMetrics **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "currentMetrics is the last read state of the metrics used by this autoscaler.") - + @jakarta.annotation.Nullable public List getCurrentMetrics() { return currentMetrics; } @@ -131,9 +152,7 @@ public V2HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) * currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. * @return currentReplicas **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.") - + @jakarta.annotation.Nullable public Integer getCurrentReplicas() { return currentReplicas; } @@ -154,8 +173,7 @@ public V2HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) * desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. * @return desiredReplicas **/ - @ApiModelProperty(required = true, value = "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.") - + @jakarta.annotation.Nonnull public Integer getDesiredReplicas() { return desiredReplicas; } @@ -176,9 +194,7 @@ public V2HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTim * 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. * @return lastScaleTime **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public OffsetDateTime getLastScaleTime() { return lastScaleTime; } @@ -199,9 +215,7 @@ public V2HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneratio * observedGeneration is the most recent generation observed by this autoscaler. * @return observedGeneration **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "observedGeneration is the most recent generation observed by this autoscaler.") - + @jakarta.annotation.Nullable public Long getObservedGeneration() { return observedGeneration; } @@ -212,8 +226,9 @@ public void setObservedGeneration(Long observedGeneration) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -234,7 +249,6 @@ public int hashCode() { return Objects.hash(conditions, currentMetrics, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -253,11 +267,135 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("conditions"); + openapiFields.add("currentMetrics"); + openapiFields.add("currentReplicas"); + openapiFields.add("desiredReplicas"); + openapiFields.add("lastScaleTime"); + openapiFields.add("observedGeneration"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("desiredReplicas"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2HorizontalPodAutoscalerStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2HorizontalPodAutoscalerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2HorizontalPodAutoscalerStatus is not found in the empty JSON string", V2HorizontalPodAutoscalerStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2HorizontalPodAutoscalerStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2HorizontalPodAutoscalerStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V2HorizontalPodAutoscalerCondition.validateJsonObject(jsonArrayconditions.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("currentMetrics") != null && !jsonObj.get("currentMetrics").isJsonNull()) { + JsonArray jsonArraycurrentMetrics = jsonObj.getAsJsonArray("currentMetrics"); + if (jsonArraycurrentMetrics != null) { + // ensure the json data is an array + if (!jsonObj.get("currentMetrics").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `currentMetrics` to be an array in the JSON string but got `%s`", jsonObj.get("currentMetrics").toString())); + } + + // validate the optional field `currentMetrics` (array) + for (int i = 0; i < jsonArraycurrentMetrics.size(); i++) { + V2MetricStatus.validateJsonObject(jsonArraycurrentMetrics.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2HorizontalPodAutoscalerStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2HorizontalPodAutoscalerStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2HorizontalPodAutoscalerStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2HorizontalPodAutoscalerStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2HorizontalPodAutoscalerStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2HorizontalPodAutoscalerStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2HorizontalPodAutoscalerStatus + * @throws IOException if the JSON string is invalid with respect to V2HorizontalPodAutoscalerStatus + */ + public static V2HorizontalPodAutoscalerStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2HorizontalPodAutoscalerStatus.class); + } + + /** + * Convert an instance of V2HorizontalPodAutoscalerStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java index 84c8db2565..f93a9a3017 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MetricIdentifier defines the name and optionally selector for a metric */ @@ -38,6 +61,8 @@ public class V2MetricIdentifier { @SerializedName(SERIALIZED_NAME_SELECTOR) private V1LabelSelector selector; + public V2MetricIdentifier() { + } public V2MetricIdentifier name(String name) { @@ -49,8 +74,7 @@ public V2MetricIdentifier name(String name) { * name is the name of the given metric * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the given metric") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -71,9 +95,7 @@ public V2MetricIdentifier selector(V1LabelSelector selector) { * Get selector * @return selector **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V1LabelSelector getSelector() { return selector; } @@ -84,8 +106,9 @@ public void setSelector(V1LabelSelector selector) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +125,6 @@ public int hashCode() { return Objects.hash(name, selector); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +139,110 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("selector"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2MetricIdentifier + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2MetricIdentifier.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2MetricIdentifier is not found in the empty JSON string", V2MetricIdentifier.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2MetricIdentifier.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2MetricIdentifier` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2MetricIdentifier.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `selector` + if (jsonObj.get("selector") != null && !jsonObj.get("selector").isJsonNull()) { + V1LabelSelector.validateJsonObject(jsonObj.getAsJsonObject("selector")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2MetricIdentifier.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2MetricIdentifier' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2MetricIdentifier.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2MetricIdentifier value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2MetricIdentifier read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2MetricIdentifier given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2MetricIdentifier + * @throws IOException if the JSON string is invalid with respect to V2MetricIdentifier + */ + public static V2MetricIdentifier fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2MetricIdentifier.class); + } + + /** + * Convert an instance of V2MetricIdentifier to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java index 860b1c433e..045310399f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java @@ -24,10 +24,33 @@ import io.kubernetes.client.openapi.models.V2ObjectMetricSource; import io.kubernetes.client.openapi.models.V2PodsMetricSource; import io.kubernetes.client.openapi.models.V2ResourceMetricSource; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). */ @@ -58,6 +81,8 @@ public class V2MetricSpec { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V2MetricSpec() { + } public V2MetricSpec containerResource(V2ContainerResourceMetricSource containerResource) { @@ -69,9 +94,7 @@ public V2MetricSpec containerResource(V2ContainerResourceMetricSource containerR * Get containerResource * @return containerResource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2ContainerResourceMetricSource getContainerResource() { return containerResource; } @@ -92,9 +115,7 @@ public V2MetricSpec external(V2ExternalMetricSource external) { * Get external * @return external **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2ExternalMetricSource getExternal() { return external; } @@ -115,9 +136,7 @@ public V2MetricSpec _object(V2ObjectMetricSource _object) { * Get _object * @return _object **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2ObjectMetricSource getObject() { return _object; } @@ -138,9 +157,7 @@ public V2MetricSpec pods(V2PodsMetricSource pods) { * Get pods * @return pods **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2PodsMetricSource getPods() { return pods; } @@ -161,9 +178,7 @@ public V2MetricSpec resource(V2ResourceMetricSource resource) { * Get resource * @return resource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2ResourceMetricSource getResource() { return resource; } @@ -184,8 +199,7 @@ public V2MetricSpec type(String type) { * 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 * @return type **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -196,8 +210,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -218,7 +233,6 @@ public int hashCode() { return Objects.hash(containerResource, external, _object, pods, resource, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -237,11 +251,130 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("containerResource"); + openapiFields.add("external"); + openapiFields.add("object"); + openapiFields.add("pods"); + openapiFields.add("resource"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2MetricSpec + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2MetricSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2MetricSpec is not found in the empty JSON string", V2MetricSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2MetricSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2MetricSpec` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2MetricSpec.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `containerResource` + if (jsonObj.get("containerResource") != null && !jsonObj.get("containerResource").isJsonNull()) { + V2ContainerResourceMetricSource.validateJsonObject(jsonObj.getAsJsonObject("containerResource")); + } + // validate the optional field `external` + if (jsonObj.get("external") != null && !jsonObj.get("external").isJsonNull()) { + V2ExternalMetricSource.validateJsonObject(jsonObj.getAsJsonObject("external")); + } + // validate the optional field `object` + if (jsonObj.get("object") != null && !jsonObj.get("object").isJsonNull()) { + V2ObjectMetricSource.validateJsonObject(jsonObj.getAsJsonObject("object")); + } + // validate the optional field `pods` + if (jsonObj.get("pods") != null && !jsonObj.get("pods").isJsonNull()) { + V2PodsMetricSource.validateJsonObject(jsonObj.getAsJsonObject("pods")); + } + // validate the optional field `resource` + if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { + V2ResourceMetricSource.validateJsonObject(jsonObj.getAsJsonObject("resource")); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2MetricSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2MetricSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2MetricSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2MetricSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2MetricSpec read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2MetricSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2MetricSpec + * @throws IOException if the JSON string is invalid with respect to V2MetricSpec + */ + public static V2MetricSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2MetricSpec.class); + } + + /** + * Convert an instance of V2MetricSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java index d10d25a97e..c92af178e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java @@ -24,10 +24,33 @@ import io.kubernetes.client.openapi.models.V2ObjectMetricStatus; import io.kubernetes.client.openapi.models.V2PodsMetricStatus; import io.kubernetes.client.openapi.models.V2ResourceMetricStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MetricStatus describes the last-read state of a single metric. */ @@ -58,6 +81,8 @@ public class V2MetricStatus { @SerializedName(SERIALIZED_NAME_TYPE) private String type; + public V2MetricStatus() { + } public V2MetricStatus containerResource(V2ContainerResourceMetricStatus containerResource) { @@ -69,9 +94,7 @@ public V2MetricStatus containerResource(V2ContainerResourceMetricStatus containe * Get containerResource * @return containerResource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2ContainerResourceMetricStatus getContainerResource() { return containerResource; } @@ -92,9 +115,7 @@ public V2MetricStatus external(V2ExternalMetricStatus external) { * Get external * @return external **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2ExternalMetricStatus getExternal() { return external; } @@ -115,9 +136,7 @@ public V2MetricStatus _object(V2ObjectMetricStatus _object) { * Get _object * @return _object **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2ObjectMetricStatus getObject() { return _object; } @@ -138,9 +157,7 @@ public V2MetricStatus pods(V2PodsMetricStatus pods) { * Get pods * @return pods **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2PodsMetricStatus getPods() { return pods; } @@ -161,9 +178,7 @@ public V2MetricStatus resource(V2ResourceMetricStatus resource) { * Get resource * @return resource **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - + @jakarta.annotation.Nullable public V2ResourceMetricStatus getResource() { return resource; } @@ -184,8 +199,7 @@ public V2MetricStatus type(String type) { * 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 * @return type **/ - @ApiModelProperty(required = true, value = "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") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -196,8 +210,9 @@ public void setType(String type) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -218,7 +233,6 @@ public int hashCode() { return Objects.hash(containerResource, external, _object, pods, resource, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -237,11 +251,130 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("containerResource"); + openapiFields.add("external"); + openapiFields.add("object"); + openapiFields.add("pods"); + openapiFields.add("resource"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2MetricStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2MetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2MetricStatus is not found in the empty JSON string", V2MetricStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2MetricStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2MetricStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2MetricStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `containerResource` + if (jsonObj.get("containerResource") != null && !jsonObj.get("containerResource").isJsonNull()) { + V2ContainerResourceMetricStatus.validateJsonObject(jsonObj.getAsJsonObject("containerResource")); + } + // validate the optional field `external` + if (jsonObj.get("external") != null && !jsonObj.get("external").isJsonNull()) { + V2ExternalMetricStatus.validateJsonObject(jsonObj.getAsJsonObject("external")); + } + // validate the optional field `object` + if (jsonObj.get("object") != null && !jsonObj.get("object").isJsonNull()) { + V2ObjectMetricStatus.validateJsonObject(jsonObj.getAsJsonObject("object")); + } + // validate the optional field `pods` + if (jsonObj.get("pods") != null && !jsonObj.get("pods").isJsonNull()) { + V2PodsMetricStatus.validateJsonObject(jsonObj.getAsJsonObject("pods")); + } + // validate the optional field `resource` + if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { + V2ResourceMetricStatus.validateJsonObject(jsonObj.getAsJsonObject("resource")); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2MetricStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2MetricStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2MetricStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2MetricStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2MetricStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2MetricStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2MetricStatus + * @throws IOException if the JSON string is invalid with respect to V2MetricStatus + */ + public static V2MetricStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2MetricStatus.class); + } + + /** + * Convert an instance of V2MetricStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java index 1fbf604385..38c2dab274 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MetricTarget defines the target value, average value, or average utilization of a specific metric */ @@ -46,6 +69,8 @@ public class V2MetricTarget { @SerializedName(SERIALIZED_NAME_VALUE) private Quantity value; + public V2MetricTarget() { + } public V2MetricTarget averageUtilization(Integer averageUtilization) { @@ -57,9 +82,7 @@ public V2MetricTarget averageUtilization(Integer averageUtilization) { * 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 * @return averageUtilization **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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") - + @jakarta.annotation.Nullable public Integer getAverageUtilization() { return averageUtilization; } @@ -80,9 +103,7 @@ public V2MetricTarget averageValue(Quantity averageValue) { * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return averageValue **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") - + @jakarta.annotation.Nullable public Quantity getAverageValue() { return averageValue; } @@ -103,8 +124,7 @@ public V2MetricTarget type(String type) { * type represents whether the metric type is Utilization, Value, or AverageValue * @return type **/ - @ApiModelProperty(required = true, value = "type represents whether the metric type is Utilization, Value, or AverageValue") - + @jakarta.annotation.Nonnull public String getType() { return type; } @@ -125,9 +145,7 @@ public V2MetricTarget value(Quantity value) { * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return value **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") - + @jakarta.annotation.Nullable public Quantity getValue() { return value; } @@ -138,8 +156,9 @@ public void setValue(Quantity value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -158,7 +177,6 @@ public int hashCode() { return Objects.hash(averageUtilization, averageValue, type, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -175,11 +193,114 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("averageUtilization"); + openapiFields.add("averageValue"); + openapiFields.add("type"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2MetricTarget + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2MetricTarget.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2MetricTarget is not found in the empty JSON string", V2MetricTarget.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2MetricTarget.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2MetricTarget` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2MetricTarget.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("averageValue") != null && !jsonObj.get("averageValue").isJsonNull()) && !jsonObj.get("averageValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `averageValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("averageValue").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2MetricTarget.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2MetricTarget' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2MetricTarget.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2MetricTarget value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2MetricTarget read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2MetricTarget given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2MetricTarget + * @throws IOException if the JSON string is invalid with respect to V2MetricTarget + */ + public static V2MetricTarget fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2MetricTarget.class); + } + + /** + * Convert an instance of V2MetricTarget to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java index 903a4921a8..96c2bdaf53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * MetricValueStatus holds the current value for a metric */ @@ -42,6 +65,8 @@ public class V2MetricValueStatus { @SerializedName(SERIALIZED_NAME_VALUE) private Quantity value; + public V2MetricValueStatus() { + } public V2MetricValueStatus averageUtilization(Integer averageUtilization) { @@ -53,9 +78,7 @@ public V2MetricValueStatus averageUtilization(Integer averageUtilization) { * 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. * @return averageUtilization **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "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.") - + @jakarta.annotation.Nullable public Integer getAverageUtilization() { return averageUtilization; } @@ -76,9 +99,7 @@ public V2MetricValueStatus averageValue(Quantity averageValue) { * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return averageValue **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") - + @jakarta.annotation.Nullable public Quantity getAverageValue() { return averageValue; } @@ -99,9 +120,7 @@ public V2MetricValueStatus value(Quantity value) { * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return value **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") - + @jakarta.annotation.Nullable public Quantity getValue() { return value; } @@ -112,8 +131,9 @@ public void setValue(Quantity value) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -131,7 +151,6 @@ public int hashCode() { return Objects.hash(averageUtilization, averageValue, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -147,11 +166,102 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("averageUtilization"); + openapiFields.add("averageValue"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2MetricValueStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2MetricValueStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2MetricValueStatus is not found in the empty JSON string", V2MetricValueStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2MetricValueStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2MetricValueStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("averageValue") != null && !jsonObj.get("averageValue").isJsonNull()) && !jsonObj.get("averageValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `averageValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("averageValue").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2MetricValueStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2MetricValueStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2MetricValueStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2MetricValueStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2MetricValueStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2MetricValueStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2MetricValueStatus + * @throws IOException if the JSON string is invalid with respect to V2MetricValueStatus + */ + public static V2MetricValueStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2MetricValueStatus.class); + } + + /** + * Convert an instance of V2MetricValueStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java index 384bddef9c..457f45d50c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V2CrossVersionObjectReference; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricTarget; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @@ -44,6 +67,8 @@ public class V2ObjectMetricSource { @SerializedName(SERIALIZED_NAME_TARGET) private V2MetricTarget target; + public V2ObjectMetricSource() { + } public V2ObjectMetricSource describedObject(V2CrossVersionObjectReference describedObject) { @@ -55,8 +80,7 @@ public V2ObjectMetricSource describedObject(V2CrossVersionObjectReference descri * Get describedObject * @return describedObject **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2CrossVersionObjectReference getDescribedObject() { return describedObject; } @@ -77,8 +101,7 @@ public V2ObjectMetricSource metric(V2MetricIdentifier metric) { * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricIdentifier getMetric() { return metric; } @@ -99,8 +122,7 @@ public V2ObjectMetricSource target(V2MetricTarget target) { * Get target * @return target **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricTarget getTarget() { return target; } @@ -111,8 +133,9 @@ public void setTarget(V2MetricTarget target) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +153,6 @@ public int hashCode() { return Objects.hash(describedObject, metric, target); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +168,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("describedObject"); + openapiFields.add("metric"); + openapiFields.add("target"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("describedObject"); + openapiRequiredFields.add("metric"); + openapiRequiredFields.add("target"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2ObjectMetricSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2ObjectMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2ObjectMetricSource is not found in the empty JSON string", V2ObjectMetricSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2ObjectMetricSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2ObjectMetricSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2ObjectMetricSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `describedObject` + V2CrossVersionObjectReference.validateJsonObject(jsonObj.getAsJsonObject("describedObject")); + // validate the required field `metric` + V2MetricIdentifier.validateJsonObject(jsonObj.getAsJsonObject("metric")); + // validate the required field `target` + V2MetricTarget.validateJsonObject(jsonObj.getAsJsonObject("target")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2ObjectMetricSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2ObjectMetricSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2ObjectMetricSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2ObjectMetricSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2ObjectMetricSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2ObjectMetricSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2ObjectMetricSource + * @throws IOException if the JSON string is invalid with respect to V2ObjectMetricSource + */ + public static V2ObjectMetricSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2ObjectMetricSource.class); + } + + /** + * Convert an instance of V2ObjectMetricSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java index b0bf3b6476..932e07beb5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java @@ -22,10 +22,33 @@ import io.kubernetes.client.openapi.models.V2CrossVersionObjectReference; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricValueStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @@ -44,6 +67,8 @@ public class V2ObjectMetricStatus { @SerializedName(SERIALIZED_NAME_METRIC) private V2MetricIdentifier metric; + public V2ObjectMetricStatus() { + } public V2ObjectMetricStatus current(V2MetricValueStatus current) { @@ -55,8 +80,7 @@ public V2ObjectMetricStatus current(V2MetricValueStatus current) { * Get current * @return current **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricValueStatus getCurrent() { return current; } @@ -77,8 +101,7 @@ public V2ObjectMetricStatus describedObject(V2CrossVersionObjectReference descri * Get describedObject * @return describedObject **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2CrossVersionObjectReference getDescribedObject() { return describedObject; } @@ -99,8 +122,7 @@ public V2ObjectMetricStatus metric(V2MetricIdentifier metric) { * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricIdentifier getMetric() { return metric; } @@ -111,8 +133,9 @@ public void setMetric(V2MetricIdentifier metric) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -130,7 +153,6 @@ public int hashCode() { return Objects.hash(current, describedObject, metric); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -146,11 +168,112 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("current"); + openapiFields.add("describedObject"); + openapiFields.add("metric"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("current"); + openapiRequiredFields.add("describedObject"); + openapiRequiredFields.add("metric"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2ObjectMetricStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2ObjectMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2ObjectMetricStatus is not found in the empty JSON string", V2ObjectMetricStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2ObjectMetricStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2ObjectMetricStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2ObjectMetricStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `current` + V2MetricValueStatus.validateJsonObject(jsonObj.getAsJsonObject("current")); + // validate the required field `describedObject` + V2CrossVersionObjectReference.validateJsonObject(jsonObj.getAsJsonObject("describedObject")); + // validate the required field `metric` + V2MetricIdentifier.validateJsonObject(jsonObj.getAsJsonObject("metric")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2ObjectMetricStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2ObjectMetricStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2ObjectMetricStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2ObjectMetricStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2ObjectMetricStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2ObjectMetricStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2ObjectMetricStatus + * @throws IOException if the JSON string is invalid with respect to V2ObjectMetricStatus + */ + public static V2ObjectMetricStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2ObjectMetricStatus.class); + } + + /** + * Convert an instance of V2ObjectMetricStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java index 914d1c5f45..99f1561c12 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricTarget; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -39,6 +62,8 @@ public class V2PodsMetricSource { @SerializedName(SERIALIZED_NAME_TARGET) private V2MetricTarget target; + public V2PodsMetricSource() { + } public V2PodsMetricSource metric(V2MetricIdentifier metric) { @@ -50,8 +75,7 @@ public V2PodsMetricSource metric(V2MetricIdentifier metric) { * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricIdentifier getMetric() { return metric; } @@ -72,8 +96,7 @@ public V2PodsMetricSource target(V2MetricTarget target) { * Get target * @return target **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricTarget getTarget() { return target; } @@ -84,8 +107,9 @@ public void setTarget(V2MetricTarget target) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +126,6 @@ public int hashCode() { return Objects.hash(metric, target); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +140,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("metric"); + openapiFields.add("target"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("metric"); + openapiRequiredFields.add("target"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2PodsMetricSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2PodsMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2PodsMetricSource is not found in the empty JSON string", V2PodsMetricSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2PodsMetricSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2PodsMetricSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2PodsMetricSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `metric` + V2MetricIdentifier.validateJsonObject(jsonObj.getAsJsonObject("metric")); + // validate the required field `target` + V2MetricTarget.validateJsonObject(jsonObj.getAsJsonObject("target")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2PodsMetricSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2PodsMetricSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2PodsMetricSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2PodsMetricSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2PodsMetricSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2PodsMetricSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2PodsMetricSource + * @throws IOException if the JSON string is invalid with respect to V2PodsMetricSource + */ + public static V2PodsMetricSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2PodsMetricSource.class); + } + + /** + * Convert an instance of V2PodsMetricSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java index bf3f975f45..4041737fdd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java @@ -21,10 +21,33 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricValueStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). */ @@ -39,6 +62,8 @@ public class V2PodsMetricStatus { @SerializedName(SERIALIZED_NAME_METRIC) private V2MetricIdentifier metric; + public V2PodsMetricStatus() { + } public V2PodsMetricStatus current(V2MetricValueStatus current) { @@ -50,8 +75,7 @@ public V2PodsMetricStatus current(V2MetricValueStatus current) { * Get current * @return current **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricValueStatus getCurrent() { return current; } @@ -72,8 +96,7 @@ public V2PodsMetricStatus metric(V2MetricIdentifier metric) { * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricIdentifier getMetric() { return metric; } @@ -84,8 +107,9 @@ public void setMetric(V2MetricIdentifier metric) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -102,7 +126,6 @@ public int hashCode() { return Objects.hash(current, metric); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -117,11 +140,108 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("current"); + openapiFields.add("metric"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("current"); + openapiRequiredFields.add("metric"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2PodsMetricStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2PodsMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2PodsMetricStatus is not found in the empty JSON string", V2PodsMetricStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2PodsMetricStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2PodsMetricStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2PodsMetricStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `current` + V2MetricValueStatus.validateJsonObject(jsonObj.getAsJsonObject("current")); + // validate the required field `metric` + V2MetricIdentifier.validateJsonObject(jsonObj.getAsJsonObject("metric")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2PodsMetricStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2PodsMetricStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2PodsMetricStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2PodsMetricStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2PodsMetricStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2PodsMetricStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2PodsMetricStatus + * @throws IOException if the JSON string is invalid with respect to V2PodsMetricStatus + */ + public static V2PodsMetricStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2PodsMetricStatus.class); + } + + /** + * Convert an instance of V2PodsMetricStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java index d8ec14f450..b5c5ec6d3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricTarget; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,6 +61,8 @@ public class V2ResourceMetricSource { @SerializedName(SERIALIZED_NAME_TARGET) private V2MetricTarget target; + public V2ResourceMetricSource() { + } public V2ResourceMetricSource name(String name) { @@ -49,8 +74,7 @@ public V2ResourceMetricSource name(String name) { * name is the name of the resource in question. * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the resource in question.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -71,8 +95,7 @@ public V2ResourceMetricSource target(V2MetricTarget target) { * Get target * @return target **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricTarget getTarget() { return target; } @@ -83,8 +106,9 @@ public void setTarget(V2MetricTarget target) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +125,6 @@ public int hashCode() { return Objects.hash(name, target); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +139,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("target"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("target"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2ResourceMetricSource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2ResourceMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2ResourceMetricSource is not found in the empty JSON string", V2ResourceMetricSource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2ResourceMetricSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2ResourceMetricSource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2ResourceMetricSource.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the required field `target` + V2MetricTarget.validateJsonObject(jsonObj.getAsJsonObject("target")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2ResourceMetricSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2ResourceMetricSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2ResourceMetricSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2ResourceMetricSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2ResourceMetricSource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2ResourceMetricSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2ResourceMetricSource + * @throws IOException if the JSON string is invalid with respect to V2ResourceMetricSource + */ + public static V2ResourceMetricSource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2ResourceMetricSource.class); + } + + /** + * Convert an instance of V2ResourceMetricSource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java index c570415429..4024b13df5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java @@ -20,10 +20,33 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricValueStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * 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. */ @@ -38,6 +61,8 @@ public class V2ResourceMetricStatus { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public V2ResourceMetricStatus() { + } public V2ResourceMetricStatus current(V2MetricValueStatus current) { @@ -49,8 +74,7 @@ public V2ResourceMetricStatus current(V2MetricValueStatus current) { * Get current * @return current **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public V2MetricValueStatus getCurrent() { return current; } @@ -71,8 +95,7 @@ public V2ResourceMetricStatus name(String name) { * name is the name of the resource in question. * @return name **/ - @ApiModelProperty(required = true, value = "name is the name of the resource in question.") - + @jakarta.annotation.Nonnull public String getName() { return name; } @@ -83,8 +106,9 @@ public void setName(String name) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -101,7 +125,6 @@ public int hashCode() { return Objects.hash(current, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -116,11 +139,109 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("current"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("current"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to V2ResourceMetricStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!V2ResourceMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V2ResourceMetricStatus is not found in the empty JSON string", V2ResourceMetricStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!V2ResourceMetricStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V2ResourceMetricStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2ResourceMetricStatus.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `current` + V2MetricValueStatus.validateJsonObject(jsonObj.getAsJsonObject("current")); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2ResourceMetricStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2ResourceMetricStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2ResourceMetricStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2ResourceMetricStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2ResourceMetricStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2ResourceMetricStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2ResourceMetricStatus + * @throws IOException if the JSON string is invalid with respect to V2ResourceMetricStatus + */ + public static V2ResourceMetricStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2ResourceMetricStatus.class); + } + + /** + * Convert an instance of V2ResourceMetricStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java index 7ecabcf6e5..b2dd181faa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java @@ -19,10 +19,33 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + /** * Info contains versioning information. how we'll want to distribute that information. */ @@ -65,6 +88,8 @@ public class VersionInfo { @SerializedName(SERIALIZED_NAME_PLATFORM) private String platform; + public VersionInfo() { + } public VersionInfo buildDate(String buildDate) { @@ -76,8 +101,7 @@ public VersionInfo buildDate(String buildDate) { * Get buildDate * @return buildDate **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getBuildDate() { return buildDate; } @@ -98,8 +122,7 @@ public VersionInfo compiler(String compiler) { * Get compiler * @return compiler **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getCompiler() { return compiler; } @@ -120,8 +143,7 @@ public VersionInfo gitCommit(String gitCommit) { * Get gitCommit * @return gitCommit **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getGitCommit() { return gitCommit; } @@ -142,8 +164,7 @@ public VersionInfo gitTreeState(String gitTreeState) { * Get gitTreeState * @return gitTreeState **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getGitTreeState() { return gitTreeState; } @@ -164,8 +185,7 @@ public VersionInfo gitVersion(String gitVersion) { * Get gitVersion * @return gitVersion **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getGitVersion() { return gitVersion; } @@ -186,8 +206,7 @@ public VersionInfo goVersion(String goVersion) { * Get goVersion * @return goVersion **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getGoVersion() { return goVersion; } @@ -208,8 +227,7 @@ public VersionInfo major(String major) { * Get major * @return major **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getMajor() { return major; } @@ -230,8 +248,7 @@ public VersionInfo minor(String minor) { * Get minor * @return minor **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getMinor() { return minor; } @@ -252,8 +269,7 @@ public VersionInfo platform(String platform) { * Get platform * @return platform **/ - @ApiModelProperty(required = true, value = "") - + @jakarta.annotation.Nonnull public String getPlatform() { return platform; } @@ -264,8 +280,9 @@ public void setPlatform(String platform) { } + @Override - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) { return true; } @@ -289,7 +306,6 @@ public int hashCode() { return Objects.hash(buildDate, compiler, gitCommit, gitTreeState, gitVersion, goVersion, major, minor, platform); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -311,11 +327,145 @@ public String toString() { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(java.lang.Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("buildDate"); + openapiFields.add("compiler"); + openapiFields.add("gitCommit"); + openapiFields.add("gitTreeState"); + openapiFields.add("gitVersion"); + openapiFields.add("goVersion"); + openapiFields.add("major"); + openapiFields.add("minor"); + openapiFields.add("platform"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("buildDate"); + openapiRequiredFields.add("compiler"); + openapiRequiredFields.add("gitCommit"); + openapiRequiredFields.add("gitTreeState"); + openapiRequiredFields.add("gitVersion"); + openapiRequiredFields.add("goVersion"); + openapiRequiredFields.add("major"); + openapiRequiredFields.add("minor"); + openapiRequiredFields.add("platform"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to VersionInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!VersionInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in VersionInfo is not found in the empty JSON string", VersionInfo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!VersionInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `VersionInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : VersionInfo.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("buildDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `buildDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("buildDate").toString())); + } + if (!jsonObj.get("compiler").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `compiler` to be a primitive type in the JSON string but got `%s`", jsonObj.get("compiler").toString())); + } + if (!jsonObj.get("gitCommit").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `gitCommit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gitCommit").toString())); + } + if (!jsonObj.get("gitTreeState").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `gitTreeState` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gitTreeState").toString())); + } + if (!jsonObj.get("gitVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `gitVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gitVersion").toString())); + } + if (!jsonObj.get("goVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `goVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("goVersion").toString())); + } + if (!jsonObj.get("major").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `major` to be a primitive type in the JSON string but got `%s`", jsonObj.get("major").toString())); + } + if (!jsonObj.get("minor").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `minor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minor").toString())); + } + if (!jsonObj.get("platform").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `platform` to be a primitive type in the JSON string but got `%s`", jsonObj.get("platform").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!VersionInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'VersionInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(VersionInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, VersionInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public VersionInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of VersionInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of VersionInfo + * @throws IOException if the JSON string is invalid with respect to VersionInfo + */ + public static VersionInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, VersionInfo.class); + } + + /** + * Convert an instance of VersionInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } }